On Sun, Mar 18, 2012 at 1:50 PM, Angus McMorland <amcmorl@gmail.com> wrote:

For inline ipython, you want to switch to the object-oriented use of
pylab. Something like this should work with xlim.

a = [0.1, 0.2, 0.1]
fig = plt.figure()
ax = fig.add_subplot(111)
ax.errorbar(arange(3), a, yerr=a-sum(a)/len(a), fmt='ro')

I'm not aware of automatic settings for padding, but with this
set_xlim, it's easy enough to roll your own using the data limits.

OK, thanks

It's not very elegant (assuming pylab freedom) but I take it as only way to correct clipping example (or differently put - to use custom range for axis)