Hi, I have plotted my data (x,y) to line plot without axis adjustments right. But if I scale y axis (with 'axis') and cut some maximal values of y data out, it seems that y is drawn within new margins of y axis, but just translated some way. (small graphs PNG attached). PNG made with savefig has different "zig-zags". My graphs SHOULD NOT have any data line x(0-3.4). It makes no problem if I scale x axis. My script:
import pylab as P P.plot(x, y, 'k-', label='Total', linewidth='2') P.axis([0.0,15,-0.4,0.5]) P.xlabel('Distance, A') P.ylabel('Energy') P.grid(True) P.savefig('scatter_demo',dpi=150) P.show() Arturas P.S. MS XP / python 2.4 / matplotlib-0.87.7 ____________________________________________________________________________________ TV dinner still cooling? Check out "Tonight's Picks" on Yahoo! TV. http://tv.yahoo.com/ ------------------------------------------------------------------------- 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