On Fri, Mar 30, 2012 at 2:47 PM, Skipper Seabold <jsseab...@gmail.com>wrote:

> There is probably a simple answer to this, but I don't see it. How can
> I pad the axis limits automatically? For instance, in the below
> example, the x axis limits are the data points and the y limit is
> close. I want to have a function that pads the axis limit at least, by
> say, 10% of the range of x past the last data point without having to
> take my x values and calculate some sensible x limit. Is this
> possible?
>
>
> import matplotlib.pyplot as plt
> fig = plt.figure()
> ax = fig.add_subplot(111)
> x = [1,2,3]
> y = [8125, 9754, 10855]
> ax.plot(x,y,marker='D',ms=12)
> plt.show()
>
>
A similar 
issue<http://old.nabble.com/Why-are-bars,-errorbars...-clipped-td33525497.html>came
up recently on the list:
http://old.nabble.com/Why-are-bars,-errorbars...-clipped-td33525497.html

I posted a snippet of
code<http://old.nabble.com/Re%3A-Why-are-bars%2C-errorbars...-clipped-p33526197.html>there.
Ben Root also mentioned `padx` and `pady` parameters, but I was not
able to find them.

Best,
-Tony
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to