On Wed, Aug 31, 2011 at 8:49 PM, John Hunter <jdh2...@gmail.com> wrote:

>> Note that I'm not subscribed to this list, so please CC me on replies.
>
> That won't work because mpl converts all tex png raster to black and
> white and handles color on its own in post-processing.  The following
> does work:
>
> import numpy , pylab
>
> x = numpy.arange( 0.0 , 5.0 )
> pylab.rc( 'text' , usetex=True )
> pylab.title( r'$\rm{colored\ title\ wanted}$', color='blue' )
> pylab.plot( x )
> pylab.savefig( 'test.png' )
> pylab.show()

But since you set usetex, you shouldn't need the $ escapes and the
literal rm font.  It should be enough to do:

pylab.title( r'colored title wanted 2.5', color='blue' )\

JDH

------------------------------------------------------------------------------
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

Reply via email to