Hoi Peter,

> "$\rm{some label text} (\mu V)$" becomes "somelabeltext\muV"
You could try
r"$\rm{some\ label\ text} (\mu V)$"
instead. (Note the backslashes and the 'raw' r in front of the string.)
This way the string should be interpreted fine. You can use the '\ ' to
force a space, but whether it's necessary depends on the string you want
to display, of course.

Possible statements in the head of your programs might be:
from matplotlib import rcParams
rcParams['text.fontname'] = 'cmr10'
rcParams['lines.markerfacecolor'] = None
from matplotlib import rc
rc('text', usetex=True)
rc('axes', hold=True)

(From a current program of mine. Of course, some statements have nothing
to do with your problem, but they might illustrate some options you
have.)

The wiki/Cookbook has some info (on pitfalls, too):
http://www.scipy.org/Cookbook/Matplotlib/UsingTex
http://www.scipy.org/Cookbook/Matplotlib/LaTeX_Examples

You probably know the mathtex module:
http://matplotlib.sourceforge.net/matplotlib.mathtext.html
the wheeler_demo:
http://matplotlib.sourceforge.net/screenshots/wheeler_demo.py
and the tex_demo:
http://matplotlib.sourceforge.net/screenshots/tex_demo.py
?

As for your eps2pdf-problem:
I don't know any straightforward solution (one that always gives a
pleasant output) for it, but had a similar problem lately. It seems that
MPLs eps-output is not well read in by many viewers / converters (that
statement correct?). Correcting the eps with eps2eps or trying to
convert the eps with some other software did not work well for me. My
solution was:
Producing plots in formats other then eps/ps (e. g. png), with
sufficient resolution and converting to the format the publisher wanted
with other software (e.g. gimp or see what's on our terminal
server ;-) ).
Currently I'm only using eps figures for import into LaTeX - works fine.

HTH
Christian



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to