If you read the documentation for the fill() function, it says the following:
"The same color strings that plot supports are supported by the fill format string." The plot() documentation says this: "In addition, you can specify colors in many weird and wonderful ways, including full names 'green', hex strings '#008000', RGB or RGBA tuples (0,1,0,1) or grayscale intensities as a string '0.8'. Of these, the string specifications can be used in place of a fmt group, but the tuple forms can be used only as kwargs." Through experimentation, I determined this: plot(array([1,2,3,4]),array([1,2,3,4]),'r') => works plot(array([1,2,3,4]),array([1,2,3,4]),'#FF0000') => does NOT work plot(array([1,2,3,4]),array([1,2,3,4]),color='#FF0000') => works plot(array([1,2,3,4]),array([1,2,3,4]),color=(1,0,0)) => works My second example would seem to contradict the documentation. However, my real question has to do with fill - the only color strings that it seems to support are the ones that plot does - namely, defined colors like 'r', 'g','b', etc. Assuming I have an axes set up as follows: f=figure(); ax = gca() None of the following seem to work: ax.fill(array([0.25,0.75,0.75,0.25,0.25]),array ([0.75,0.75,0.25,0.25,0.75]),'#FF0000') ax.fill(array([0.25,0.75,0.75,0.25,0.25]),array ([0.75,0.75,0.25,0.25,0.75]),color='#FF0000') ax.fill(array([0.25,0.75,0.75,0.25,0.25]),array ([0.75,0.75,0.25,0.25,0.75]),color=(1,0,0)) How can I specify an non-predefined color for the fill() function? I am using matplotlib version 0.90.1, I think. I don't know the best way to get my matplotlib version information. ------------------------------------------------------ Michael Hearne [EMAIL PROTECTED] (303) 273-8620 USGS National Earthquake Information Center 1711 Illinois St. Golden CO 80401 Senior Software Engineer Synergetics, Inc. ------------------------------------------------------ ------------------------------------------------------------------------- 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