ps backend printing problem with LaTeX

I am having a slight problem with the ps backend and printing the
figure after including it in a LaTeX document. If I run the attached
script psbackend_test.py, it generates a fairly simple semilogx
subplot(212) plot. I generate plots of this format a lot. This
script saves test.eps (the usetex option is true in my matplotlibrc).
If I run epstopdf on just the figure and open it up in acroread and
print just the figure, it prints correctly. But if I include the
figure in a LaTeX document, the frame around the lower sub-figure does
not print. Can anyone else reproduce this behavior and does anyone
know how to fix it?

I printed the LaTeX file from acroread generated using pdflatex and
latex->dvips->ps2pdf with the same lack of frame.

Here are some other parameters from my matplotlibrc that may help
understand the problem:
text.color : black
text.usetex : True # use tex/latex for all text handling.
See http://matplotlib.sf.net/matplotlib.texmanager.html
text.tex.engine : latex # tex is faster, but latex is required to
use special font packages

# ps backend params
ps.papersize : letter # executive, letter, legal, ledger,
A0-A10, B0-B6, C0-C6
ps.useafm : False # use of afm fonts -- breaks mathtext but
results in small files
#ps.usedistiller : False # can be: None, ghostscript or xpdf
ps.usedistiller : xpdf #False # can be: None, ghostscript or xpdf
                                          # Experimental: may produce
smaller files.
                                          # xpdf intended for
production of publication quality files,
                                          # but requires ghostscript,
xpdf and ps2eps
ps.distiller.res : 6000 # dpi

Thanks,

Ryan

psbackend_test.py (245 Bytes)

test.eps (41.7 KB)

subplottest.tex (252 Bytes)

subplottest.pdf (17.4 KB)

Hi Ryan,

I opened your subplottest.pdf with both kpdf and adobe reader, and the figure
looked fine with each.

Darren

···

On Friday 20 January 2006 12:39 am, Ryan Krauss wrote:

I am having a slight problem with the ps backend and printing the
figure after including it in a LaTeX document. If I run the attached
script psbackend_test.py, it generates a fairly simple semilogx
subplot(212) plot. I generate plots of this format a lot. This
script saves test.eps (the usetex option is true in my matplotlibrc).
If I run epstopdf on just the figure and open it up in acroread and
print just the figure, it prints correctly. But if I include the
figure in a LaTeX document, the frame around the lower sub-figure does
not print. Can anyone else reproduce this behavior and does anyone
know how to fix it?

I printed the LaTeX file from acroread generated using pdflatex and
latex->dvips->ps2pdf with the same lack of frame.

Here are some other parameters from my matplotlibrc that may help
understand the problem:
text.color : black
text.usetex : True # use tex/latex for all text handling.
See http://matplotlib.sf.net/matplotlib.texmanager.html
text.tex.engine : latex # tex is faster, but latex is required to
use special font packages

# ps backend params
ps.papersize : letter # executive, letter, legal, ledger,
A0-A10, B0-B6, C0-C6
ps.useafm : False # use of afm fonts -- breaks mathtext but
results in small files
#ps.usedistiller : False # can be: None, ghostscript or xpdf
ps.usedistiller : xpdf #False # can be: None, ghostscript or xpdf
                                          # Experimental: may produce
smaller files.
                                          # xpdf intended for
production of publication quality files,
                                          # but requires ghostscript,
xpdf and ps2eps
ps.distiller.res : 6000 # dpi

Thanks,

Ryan

--
Darren S. Dale, Ph.D.
dd55@...163...