On 18 March 2012 04:39, klo uo <klo...@gmail.com> wrote: > Assuming IPython in pylab mode: > > a = [0.1, 0.2, 0.1] > errorbar(arange(3), a, yerr=a-sum(a)/len(a), fmt='ro') > > Result MPL output clips limit values in two different ways: > > 1. If GTK backend is used both left and right sides are clipped > 2. If IPyhton inline mode is used, only right side is clipped > > I don't see any obvious argument in bar(), errorbar() doc strings, that > would let me define X range, although I would expect MPL to take care of > this by default, based on data entered. > What is the easiest way I can correct this? >
The xlim command can be used to set the x limits. For example: xlim(-.5, 2.5) will prevent the points lying on the axis boundaries for your case. Angus > > I attached images for both cases: > > 1. GTK: > [image: Inline image 2] > > 2. Inline: > > [image: Inline image 1] > > > > > ------------------------------------------------------------------------------ > 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 > > -- AJC McMorland Post-doctoral research fellow Neurobiology, University of Pittsburgh
<<MPL-GTK.png>>
<<MPL-inline.png>>
------------------------------------------------------------------------------ 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