Did you try to change vmin, vmax? http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.imshow
If this is not what you want, please describe more explicitly why the colorbar is wrong. Regards, -JJ On Mon, Apr 26, 2010 at 11:37 AM, Nikolaus Rath <nikol...@rath.org> wrote: > The problem with imshow is, that it rescales the data so the > colorbar does not show the correct amplitudes (see > www.rath.org/imshow.png): > > ctr = ax.imshow(omega, cmap=cm.YlOrRd, aspect='equal', > interpolation='nearest', > origin='lower', extent=(-(N-1)/2, (N-1)/2, 0, M-1)) > fig.colorbar(ctr) > ax.set_xlim(xmin= -(N - 1) / 2, xmax=(N - 1) / 2) > ax.set_ylim(ymin=0, ymax=M - 1) > fig.show() > > Is there a way to get the proper amplitudes into the colorbar? ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users