AFMPATH environmental variable

You deserve much thanks for developing such a nice package.

Thanks!

    > An afterthought: perhaps an EPS backend instead of/additional
    > to a PS backend would be more convenient for inclusion into
    > publications. I know very little about postscript programming
    > so I don't know what's the effort involved, though.

Not much at all. As far as I know, the only difference between eps
and ps is a bounding box at the top of the document which gives the
figure dimensions. It shouldn't be hard to check for an extension in
the savefig command and add the bounding box if eps is requested.

I use postscript (*.ps) directly in my LaTeX documents without
trouble, however. Are you using LaTeX?

JDH

John Hunter wrote:
>>>>>>"LUK" == LUK ShunTim <shuntim.luk@...34...> writes:
>
> > You deserve much thanks for developing such a nice package.
>
> Thanks!
>
> > An afterthought: perhaps an EPS backend instead of/additional
> > to a PS backend would be more convenient for inclusion into
> > publications. I know very little about postscript programming
> > so I don't know what's the effort involved, though.
>
> Not much at all. As far as I know, the only difference between eps
> and ps is a bounding box at the top of the document which gives the
> figure dimensions. It shouldn't be hard to check for an extension in
> the savefig command and add the bounding box if eps is requested.
>
> I use postscript (*.ps) directly in my LaTeX documents without
> trouble, however. Are you using LaTeX?
>

Yes, but I think LaTeX requires the bounding box information.

I can think of the quick and dirty way of calling the ps2eps script to
do the conversion but it requires perl and ghostscript. Since the
postscript backend is already there in matplotlib, it'd be nice to have
the eps option directly.

Regards,
ST

···

--

John,

I'd second the request for direct EPS. Sometimes you can get away without
the bounding box, but not always. I've been using ps2epsi to convert my
matplot .ps files into .eps files (.epsi is .eps with a preview, but I
don't need the preview). It does a good job of finding bounding boxes.
That's very important for running epstopdf on the images. That gives me
pdf images so I can run pdflatex and generate a native PDF file from my
LaTeX.

-C

···

--
Charles R. Twardy www.csse.monash.edu.au/~ctwardy
Monash University sarbayes.org
Computer Sci. & Software Eng.
+61(3) 9905 5823 (w) 5146 (fax)