Considering the following script I would Expect a resulting y range of
(1, 2) but I get (1, 3). Is this a bug or a feature. I'm using python
2.5, matplotlib 0.87.7.
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figure
fig = Figure()
canvas = FigureCanvas(fig)
ax = fig.add_subplot(111)
lines = (ax.plot([1, 2, 3], [1, 2, 3]),)
axes = fig.get_axes()[0]
axes.set_xlim((0, 2))
axes.set_aspect('auto', adjustable='box')
axes.grid(True)
canvas.print_figure('out.eps')
Kind regards
Berthold
--
__ Address:
G / \ L Germanischer Lloyd
phone: +49-40-36149-7374 -+----+- Vorsetzen 35 P.O.Box 111606
fax : +49-40-36149-7320 \__/ D-20459 Hamburg D-20416 Hamburg
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users