I think what you are looking for is a way to specify the colormap of your
plot.  While the documentation is a little sparse on this topic, there is
plenty of functionality in matplotlib regarding colormaps.

Here is a list of built-in colormaps:
http://matplotlib.sourceforge.net/api/pyplot_api.html?highlight=colormap#matplotlib.pyplot.colormaps

Just about any matplotlib plotting function accepts a cmap keyword where you
can specify a colormap of your choice to override the default.  You can even
create your own colormap if you can't find one to suit your needs.

I hope this is helpful.

Ben Root


On Sat, Jun 5, 2010 at 9:41 PM, per freem <perfr...@gmail.com> wrote:

> Hi all,
>
> How can I plot a matrix of values as a heatmap where values are shown
> from green to red intensities, or blue to yellow intensities, like in
> the following figure?
>
> http://www.coriell.org/images/microarray.gif
>
> I want to have the option of doing this with either green-red maps or
> blue-yellow maps. Is the right function for this imshow, or pcolor?
> Also, how can I get the scale bar to the left of it that shows the
> ranges of the intensities, and how can this scale be adjusted?
>
> Thanks very much.
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to