Thanks, Mike.

I've been away from the Windows machine for a couple of days. I did
ps.useafm set and your suggestion solved the problem.

Is there a reason not to use TrueType in all of my figures (since it
wasn't enabled by default)?

Thanks,
Oscar.
On Tue, May 24, 2011 at 11:06:10AM -0400, Michael Droettboom wrote:
> You probably have "ps.useafm" set, right?  Unfortunately, the stock
> Postscript AFM fonts do not have a blackboard style.  Setting
> ps.useafm to False will use Truetype fonts, and it should work.
> 
> Cheers,
> Mike
> 
> On 05/24/2011 10:50 AM, Oscar Benjamin wrote:
> >Hello,
> >
> >I'm getting an error using latex mathbb and exporting to eps. The
> >following script demonstrates:
> >
> >from pylab import figure, show
> >fig = figure()
> >ax = fig.add_subplot(1, 1, 1)
> >ax.set_title(r'$\mathbb{R}$')
> >fig.savefig('mathbb.eps')
> >
> >On Windows the above gives me a long traceback ending with:
> >IOError: [Errno 2] No such file or directory: 
> >'q:\\tools\\Python26\\lib\\site-packages\\matplotlib\\mpl-data\\fonts\\afm\\bb.afm'
> >
> >It works fine if using \mathbf instead of \mathbb or when saving
> >to pdf etc.
> >
> >I thought I had this working on Linux, does anyone know if this is
> >a problem to do with my installation, or maybe an unsupported
> >feature.
> >
> >Thanks,
> >Oscar.
> >
> >
> >------------------------------------------------------------------------------
> >vRanger cuts backup time in half-while increasing security.
> >With the market-leading solution for virtual backup and recovery,
> >you get blazing-fast, flexible, and affordable data protection.
> >Download your free trial now.
> >http://p.sf.net/sfu/quest-d2dcopy1
> >
> >
> >_______________________________________________
> >Matplotlib-users mailing list
> >Matplotlib-users@lists.sourceforge.net
> >https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> 
> 
> -- 
> Michael Droettboom
> Science Software Branch
> Space Telescope Science Institute
> Baltimore, Maryland, USA
> 

> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery, 
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now. 
> http://p.sf.net/sfu/quest-d2dcopy1

> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to