Why is my linear taper potentiometer nonlinear at the end points?
Some pots are built on ceramic substrates, with highly conductive strips at either end:

The wiper may have some travel over the highly-conductive (silver-coloured part) for some degrees before it starts wiping the resistive section (grey-coloured part).