problem with negative numbers on axes in EPS file when using in Latex file

Hello List,

I have a pretty wacky problem.
I create a figure which includes negative values along the y-axis: plot([-1,1]) for example.
I save the figure as EPS.
When I look at the figure with preview on my Mac it looks fine.
When I import the figure in my Latex document the negative values disappear.
My solution has been to use eps2eps on the eps file created by mpl, and this solves the problem. So apparently there is something not quite standard on the EPS file created by MPL.
Is this a bug?
I am running version 0.99.3 (Enthought dis) on a Mac running Leopard.

Thanks for any suggestions,

Mark

mpl by default uses the unicode minus symbol rather than the hyphen to
indicate negative numbers. It looks like your system may not be
recognizing it. The easiest solution is to set

axes.unicode_minus : False

in your matplotlib rc.

JDH

···

On Wed, Nov 10, 2010 at 6:38 AM, Mark Bakker <markbak@...287...> wrote:

I have a pretty wacky problem.
I create a figure which includes negative values along the y-axis:
plot([-1,1]) for example.
I save the figure as EPS.
When I look at the figure with preview on my Mac it looks fine.
When I import the figure in my Latex document the negative values disappear.
My solution has been to use eps2eps on the eps file created by mpl, and this
solves the problem. So apparently there is something not quite standard on
the EPS file created by MPL.
Is this a bug?
I am running version 0.99.3 (Enthought dis) on a Mac running Leopard.

That works great.
Never would have looked there.
Thanks!
Mark

···

On Wed, Nov 10, 2010 at 2:27 PM, John Hunter <jdh2358@…1896…> wrote:

axes.unicode_minus : False