Hello all, I have looked around on the community and have seen several colorbar posts but none of the examples (or questions) I saw have this problem.
Basically I want to have the colorbar tick labels line up with the changes in the color gradient. For example, the difference is most noticable at "0":
Notice the black ticks do not coincide with the changes in color. I clearly have 21 tick labels and therefore 20 spaces between each division, so I tried
But since it didn't line up I tried 21 and 19 but I cannot seem to get this to line up.
Thanks in advance.