On Thu, Sep 25, 2008 at 7:15 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote:
> De Pauw Antoine wrote:
>> Hi Jeff,
>>
>> I finally found out how to fill my figure with a background color using
>> axes.set_axis_bgcolor(color), but I'm facing the following problem now:
>>
>> How could I get the lower color of a colormap? This is quite undocumented
>> and I don't know the colormap properties I could use for that
>>
>> I know there must be an accessible value somewhere, like for the
>> ax.get_yticklabels() you gave me
>>
>> If someone had the clue, my problems would then be completely solved

You can get the lowest color of a colormap by evaluating it at zero, eg


In [1]: import matplotlib.cm as cm

In [2]: cm.jet(0)
Out[2]: (0.0, 0.0, 0.5, 1.0)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to