Re: [Matplotlib-users] how to express statistical data in colors

2012-10-26 Thread Chloe Lewis

Chloe Lewis 
PhD candidate, Harte Lab
Division of Ecosystem Sciences, ESPM
University of California, Berkeley
137 Mulford Hall
Berkeley, CA  94720
chle...@berkeley.edu

Begin forwarded message:

> From: Chloe Lewis 
> Subject: Re: [Matplotlib-users] how to express statistical data in colors
> Date: October 26, 2012 10:47:54 AM PDT
> To: ran...@0x06.net
> 
> you'll be doing something like the second color bar, but making the boundary 
> and color definitions a lot more flexible. Where the discrete color bar uses
> 
> cmap = mpl.colors.ListedColormap(['r', 'g', 'b', 'c'])
> bounds = [1, 2, 4, 7, 8]
> you'll be making a whole LinearSegmentedColormap, see
> http://matplotlib.org/api/colors_api.html#matplotlib.colors.LinearSegmentedColormap
> and check out specifically the ascii-art explanation of interpolation between 
> row[i] and row[i+1]. Red, green, blue will break based on your data density 
> and how you want to express 'intensity'. And depending on whether you'll make 
> it red-green-colorblindness neutral!
> Interesting problem. Has it been implemented in some other software?
> 
> Chloe Lewis 
> PhD candidate, Harte Lab
> Division of Ecosystem Sciences, ESPM
> University of California, Berkeley
> 137 Mulford Hall
> Berkeley, CA  94720
> chle...@berkeley.edu
> 

--
The Windows 8 Center 
In partnership with Sourceforge
Your idea - your app - 30 days. Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] rasterized colorbar

2012-10-26 Thread Jody Klymak

Hi all,

So I figured out the magic of "rasterized=True", which is *really* helpful!

However, the colorbar doesn't seem to accept rasterized=True, so there are 
little lines every facet (zoom on the attached pdf).  Is there another way to 
get the colorbar colors rasterized?

Thanks Jody

x = linspace(0,1,1000)
X = outer(x,x)
pcolormesh(X,cmap=get_cmap('RdBu_r',lut=32),rasterized=True)
colorbar()
savefig('Test.pdf',dpi=50)




Test.pdf
Description: Adobe PDF document

--
Jody Klymak
http://web.uvic.ca/~jklymak/




--
WINDOWS 8 is here. 
Millions of people.  Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users