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 <chle...@berkeley.edu>
> 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