Paul Ivanov <pivanov...@gmail.com> writes: > > Hi Andrea, > > I think Gökhan is pointing out a different feature than the one > you want. You seem to want to adjust the x and y limits of the > plot to be some fraction larger than the data that's plotted. > > You can do this with: > > ax = plt.subplot(111) > ax.plot(range(10)) > ax.set_ymargin(.2) > ax.set_xmargin(.1) > # or ax.margins(.1,.2) > ax.autoscale() > plt.draw() > > see also the docstring for ax.autoscale_view for more. > > best,
Uhm also autoscale and set_xmargin are not implemented in my version of matplotlib, too bad I'll just keep my hack for now... ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users