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

Re: [Matplotlib-users] colormap shift

2012-11-06 Thread Marian Jakubik
Thanks for your reply. It's really nice. But, can you provide the code (part of it) where the colormap start from "very light gray" to "black" in the range (0,1). And all of the points >1 are black one and =0.0 IS NOT white. I have 2D map with defined pair (x,y) and the values for them, but also t

Re: [Matplotlib-users] colormap shift

2012-11-05 Thread Jason Grout
On 11/5/12 3:50 PM, klo uo wrote: > You can see there how to use Gimp and create mpl colormap and then later > there is nifty code that will allow you to shift colormaps with a slider Nice! I couldn't resist doing a Sage interact version of the slider thing: http://aleph.sagemath.org/?q=89b0c945

Re: [Matplotlib-users] colormap shift

2012-11-05 Thread klo uo
I asked same question with different problem here: http://matplotlib.1069221.n5.nabble.com/How-to-shift-colormap-td18451.html You can see there how to use Gimp and create mpl colormap and then later there is nifty code that will allow you to shift colormaps with a slider >From your problem I assu

[Matplotlib-users] colormap shift

2012-11-05 Thread Marian Jakubik
Hi all, I am a newbie in matplotlib and I'd like to use colormap for z-axis. I can use in basic mode but would like to shift the existed colormap - binary - for using in this way: i would not like to set the white color for z=0.0 For describing: I would like to use the binary colormap but with