problem with saving eps files with large y amplitudes

Updating to the latest svn seems to have solved my problems.

One weird note though, it seems like the version I was using (svn from
a month or so ago) was more tolerant to latex errors. The first time
after I updated, I got errors on some of the scripts I wrote
yesterday. The current version gives a message about Latex not being
able to process my file. The old version made it through. It turns
out that I has omitted open and/or closing 's in the Latex x and y labels\. Some how the old version handled '\\\\beta' and '\\omega'
just fine. It is probably better to just print out the Latex errors
and not try to guess how to fix it, but the older version was guessing
correctly.

FWIH,

Ryan

···

On 5/20/06, Darren Dale <dd55@...163...> wrote:

On Saturday 20 May 2006 12:23, you wrote:
> I am installing the latest svn version right now. We will see what
> happens.

I understand your caution. Dealing with thesis deadlines can be stressful.

I tried your example with svn mpl, with usetex and without, and the eps output
looked fine.

Darren

> On 5/20/06, Ryan Krauss <ryanlists@...287...> wrote:
> > '0.88svn'
> >
> > I am a little nervous about changing versions and having something
> > break at this point, but if that is what it takes.
> >
> > Ryan
> >
> > On 5/20/06, Darren Dale <dd55@...163...> wrote:
> > > On Saturday 20 May 2006 11:36 am, you wrote:
> > > > I have to plot some things that are the results of hyperbolic sines
> > > > and cosines. This leads to large amplitudes on the y-axis. I am
> > > > having trouble saving these plots to eps files. But I have done this
> > > > successfully before.
> > > >
> > > > These lines
> > > >
> > > > b=arange(1,40,0.5)
> > > > y=sinh(b)
> > > > figure(5)
> > > > plot(b,y)
> > > > savefig('test3.eps')
> > > > savefig('test3.png')
> > > >
> > > > where the png is fine and the eps shows only an empty axis.
> > > >
> > > > I have to get my thesis to my committee next week and I am freaking
> > > > out a bit.
> > > >
> > > > Please help me.
> > >
> > > What version are you using

--
Darren S. Dale, Ph.D.
Cornell High Energy Synchrotron Source
Cornell University
200L Wilson Lab
Rt. 366 & Pine Tree Road
Ithaca, NY 14853

dd55@...163...
office: (607) 255-9894
fax: (607) 255-9001

Updating to the latest svn seems to have solved my problems.

Thats good to hear. Your problem may have been caused by the conversion of the
ps backend to use the new api, which may have been incomplete at the time of
your last update. I believe the backend has stabilized.

One weird note though, it seems like the version I was using (svn from
a month or so ago) was more tolerant to latex errors. The first time
after I updated, I got errors on some of the scripts I wrote
yesterday. The current version gives a message about Latex not being
able to process my file. The old version made it through. It turns
out that I has omitted open and/or closing &#39;s in the Latex x and y labels\. Some how the old version handled &#39;\\\\beta&#39; and &#39;\\omega'
just fine. It is probably better to just print out the Latex errors
and not try to guess how to fix it, but the older version was guessing
correctly.

I put some effort into making usetex behave this way. What you are seeing is
latex returning an exit status indicating an error. When that happens, mpl
raises an error and passes along the latex error. I think this is much better
than failing silently and hoping for the best, because often latex would not
guess correctly (\frac{1}{2} vs \\frac\{1\}\{2\} is a good example).

I apologize for any trouble it may cause you, especially considering you are
finishing up your thesis. But this change was necessary in order to help me
track down problems, which was becoming time consuming.

Darren

···

On Saturday 20 May 2006 13:03, Ryan Krauss wrote: