Hi folks,

Is there a way to get the colors assigned with set_under and set over 
besides looking at _rgba_set_under and _rgba_set_over?

Sample code fragment:
from pylab import *
cmap = cm.get_cmap('jet')
cmap.set_over('wheat')

# Make some kind of polygon to fill
x = ...
y = ...
# Use the over-the-top color to fill the polygon
clrstr = rgb2hex(cmap._rgba_over[:3])
fill(x,y,clrstr)

-- 
Ms. Carol A. Leger
SRI International                       Phone: (650) 859-4114
333 Ravenswood Avenue G-273
Menlo Park, CA 94025                    e-mail: [EMAIL PROTECTED]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to