With the script ---- from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from matplotlib.figure import Figure from matplotlib.patches import Rectangle fig = Figure() canvas = FigureCanvas(fig) ax = fig.add_subplot(111) ax.plot([.5,.7],[1.5, 2.5]) ax.add_artist(Rectangle((.5, 1.5), .2, 1, fill=False)) ax.set_aspect("equal") canvas.print_figure('test.eps') ----
I get a file 'test.eps'. Using matplotlib 0.87.7 the PS bounding box of the generated plot is far to wide. Is this a problem with my script or a Problem of FigureCanvasAgg (and FigureCanvasPS)? What can I do to get a tight bounding box? Further, when I leave out the "ax.plot" line, the generated figure is missing the "Rectangle" and is showing only a pair of axes counting from 0 to 1. Is that a bug of matplotlib or something I have to fix in my script? Thanks Berthold -- [EMAIL PROTECTED] / <http://höllmanns.de/> [EMAIL PROTECTED] / <http://starship.python.net/crew/bhoel/> ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users