Hi Eric,
Great that it works!! This is what I was looking for!
There is one thing left, which is that the tick labels are not exactly
at the boundary between the colors. (It is no problem for me, but I am
interested where it comes from). The script below shows that the
colorswitch is not exactly
Hi all,
I want to use imshow to plot an array of floats using
interpolation='nearest' so that every gridbox has a distinct color. Also I
want to limit the number of colors to a rather small number, e.g. 10. The
problem is that the tick labels are not at the edge of each color in the
colorbar, but