On Sun, Jan 27, 2013 at 11:51 AM, Neal Becker <ndbeck...@gmail.com> wrote:
> Damon McDougall wrote:
>
>> On Sun, Jan 27, 2013 at 8:56 AM, Neal Becker
>> <ndbeck...@gmail.com> wrote:
>>> Simple example: the bars on the two x axis ends are not visible.
>>>
>>> x = [3, 6, 10]
>>> y = [1, 2, 3]
>>> import matplotlib.pyplot as plt
>>>
>>> plt.errorbar (x, y, 0.2)
>>
>> Try adding a plt.xlim(2, 11) here.
>>
>>> plt.show()
>>>
> Yes that'll fix it - but ideally autoscaling should work correctly.

That behaviour of autoscale appears to be consistent with
plt.plot(range(3)), for example.  That is, the axis limits butt up
against the plotted data.

By 'work correctly', do you mean that the axis limits should be padded
so there is a whitespace border surrounding the data being plotted?

-- 
Damon McDougall
http://www.damon-is-a-geek.com
Institute for Computational Engineering Sciences
201 E. 24th St.
Stop C0200
The University of Texas at Austin
Austin, TX 78712-1229

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to