Re: [Matplotlib-users] DIscretization of colorbar

2007-02-09 Thread Claas Teichmann
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

[Matplotlib-users] Wrong colorbar-ticks in imshow-colorbar with 10 colors

2007-02-01 Thread Claas Teichmann
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