Re: [Matplotlib-users] how to reverse the colorbar and its label at the same time?

2012-11-10 Thread Chao YUE
Thanks, I think cbar.ax.invert_yaxis() is what I am looking for. Chao On Sat, Nov 10, 2012 at 4:51 PM, Damon McDougall wrote: > On Sat, Nov 10, 2012 at 9:41 AM, Paul Hobson wrote: > > On Sat, Nov 10, 2012 at 7:07 AM, Chao YUE wrote: > >> > >> Dear all, > >> > >> Is there a way to reverse the c

Re: [Matplotlib-users] how to put colorbar label beside the handle?

2012-11-10 Thread Paul Hobson
On Sat, Nov 10, 2012 at 6:25 AM, Chao YUE wrote: > Dear all, > > In the colorbar label for contourf or imshow plot, I want the effect like > that in the attached figure. Is there some way to move the position of > colorbar label? could someone give any hints? Chao, It's not clear what you mean.

Re: [Matplotlib-users] how to reverse the colorbar and its label at the same time?

2012-11-10 Thread Damon McDougall
On Sat, Nov 10, 2012 at 9:41 AM, Paul Hobson wrote: > On Sat, Nov 10, 2012 at 7:07 AM, Chao YUE wrote: >> >> Dear all, >> >> Is there a way to reverse the colorbar label, the default is small value at >> the bottom and big value at the top, yet I would like the big value at the >> bottom and sm

Re: [Matplotlib-users] how to reverse the colorbar and its label at the same time?

2012-11-10 Thread Paul Hobson
On Sat, Nov 10, 2012 at 7:07 AM, Chao YUE wrote: > > Dear all, > > Is there a way to reverse the colorbar label, the default is small value at > the bottom and big value at the top, yet I would like the big value at the > bottom and small value at the top. > > all code in pylab mode. > > import

Re: [Matplotlib-users] colormap shift

2012-11-10 Thread ChaoYue
Hi, I once was indicated a way to extract colors from exsiting colormaps: I just answered a question on Stackoverflow and maybe you can have a look. all code in pylab mode a = np.arange(100).reshape(10,10) #here is the image with white and black end imshow(a,cmap=mat.cm.binary) colorbar() #we e

[Matplotlib-users] how to reverse the colorbar and its label at the same time?

2012-11-10 Thread Chao YUE
Dear all, Is there a way to reverse the colorbar label, the default is small value at the bottom and big value at the top, yet I would like the big value at the bottom and small value at the top. all code in pylab mode. import numpy as np import matplotlib as mat a = np.arange(100).reshape(10,1

[Matplotlib-users] how to put colorbar label beside the handle?

2012-11-10 Thread Chao YUE
Dear all, In the colorbar label for contourf or imshow plot, I want the effect like that in the attached figure. Is there some way to move the position of colorbar label? could someone give any hints? Thanks! Chao -- *