Fonts for eps files

Many scientific journals ask that authors submit figures as eps
files, preferably using one of the standard 35 ps fonts--usually
Helvetica or Times. I've been able to tweak the matplotlib.rc
file to make eps plot files that have all the numbers and labels
in Helvetica (or Times), but have a problem dealing with simple
superscipts and subscripts. Is there a way to get simple LaTeX
strings, such as r'ergs cm$^{-2}$ s$^{-1}$', to use only
Helvetica or Times?

John Mariska

If you have "ps.useafm" set to True, (and "text.usetex" set to False), the mathtext renderer will stick to the standard 35 ps fonts, with the obvious limitations in the number of symbols available, and no radical signs, etc. By default, all math is serif (in this case Times). You can force sans-serif (Helvetica), by wrapping the math in \mathsf{}, eg.

  r'ergs cm$\mathsf{^{-2}} s\mathsf{^{-1}}$'

Let me know if the above doesn't work for you. I only tested with SVN head.

Cheers,
Mike

John Mariska wrote:

ยทยทยท

Many scientific journals ask that authors submit figures as eps
files, preferably using one of the standard 35 ps fonts--usually
Helvetica or Times. I've been able to tweak the matplotlib.rc
file to make eps plot files that have all the numbers and labels
in Helvetica (or Times), but have a problem dealing with simple
superscipts and subscripts. Is there a way to get simple LaTeX
strings, such as r'ergs cm$^{-2} s^{-1}$', to use only
Helvetica or Times?

John Mariska

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA