On 6/18/07, Itai Arad <[EMAIL PROTECTED]> wrote: > I am trying to produce a very simple EPS figure, but the EPS file is > different than what I see on the screen in the GTKAgg window, or when > I save the figure as a PNG file. It looks like the coordinate system > in the PS case is different, and so the objects in the figure are > placed in different locations.
There appears to be a problem with Agg -- not sure about PS yet. We recently added support for "true ellipses" using arcs rather than polygons, and it appears we have messed something up. Charlie, take a look at this case -- depending on the y-zoom the x extent of the ellipse is different: from pylab import figure, show from matplotlib.patches import Ellipse xy = 0.38,0.52 props = dict(xy=xy, width=1e-1, height=3e-1, facecolor='red', angle=30.0, linewidth=2, fill=True, alpha=0.5) e1 = Ellipse(**props) e2 = Ellipse(**props) fig = figure() ax1 = fig.add_subplot(211) ax1.add_artist(e1) ax1.set_xlim(-.1, .7) ax1.set_ylim(0.35, .7) ax2 = fig.add_subplot(212, sharex=ax1) ax2.add_artist(e2) ax2.set_ylim(0.4, .6) show() Any ideas? JDH ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users