Hi, I'm trying to generate colored text on my plots, but can only seem to get black and white. I've attached an example python scriptx (test.py) that demonstrates the problem. This produces a plot (test.png) with black and white text even though I've explicitly told latex to use color, and in fact the intermediate image gets colored correctly (attached 25a9904ac88febf5f01477f069213537.png file taken from .matplotlib/tex.cache). I'm currently using matplotlib 0.99.3. Thanks for any help with this issue.
Note that I'm not subscribed to this list, so please CC me on replies. Best wishes, Mike
#!/usr/bin/python import numpy , pylab x = numpy.arange( 0.0 , 5.0 ) pylab.rc( 'text' , usetex=True ) pylab.rc( 'text.latex' , preamble='\usepackage[usenames]{color}' ) pylab.title( '\\textcolor{Blue}{colored title wanted}' ) pylab.plot( x ) pylab.savefig( 'test.png' )
<<attachment: test.png>>
<<attachment: 25a9904ac88febf5f01477f069213537.png>>
------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel