On Sun, Nov 14, 2010 at 7:25 PM, Jae-Joon Lee <lee.j.j...@gmail.com> wrote:
> Hi,
>
> I just committed a simple change that disables pstoeps in ps backend
> when "xpdf" distiller is used. Without this, output bbox was incorrect
> with "xpdf" distiller and usetex=False.
>
> Getting the correct bbox with the ps backend is very tricky, and it'll
> be appreciated if others help me test this.
>
> Here is a simple test script (this needs to be run with most recent
> svn version of matplotlib, and you need to able to use ustex=True!).
> It will produce 6 eps files. Please check if any of the eps files have
> incorrect bbox. And report which file has wrong bbox and your setup :
> your OS, gs version number (output from "gs -v"), pdftops version
> number (output from "pdftops -v"). It will be also good if you report
> your setup even when everything is okay.
>
> Regards,
>
> -JJ
>
> import matplotlib.pyplot as plt
>
> plt.plot([1,2])
>
> for distiller in ["False", "xpdf", "ghostscript"]:
> for usetex in ["True", "False"]:
> plt.rcParams["ps.usedistiller"]=distiller
> plt.rcParams["text.usetex"]=usetex
>
> plt.savefig("test_bbox_%s_%s.eps" % (distiller, usetex))
>
>
Evince shows a few of the eps files weirdly:
test_bbox_ghostscript_False.eps comes out as 8.5x11 inch while the other
come out as 8x6 inches.
test_bbox_xpdf_False.eps is the correct size, but the graph was placed as if
it was centered on a 8.5x11 page, thereby cutting off the bottom half of the
graph.
The system:
Fedora 13
pdftops 0.12.4
ghostscript 8.71
evince 2.30.3 (using libspectre 0.2.4)
I will try out my Ubuntu system tonight.
Ben Root
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel