Re: [matplotlib-devel] unexpected behaviour of get_xlim

2008-10-10 Thread John Hunter
On Fri, Oct 10, 2008 at 11:31 AM, Gregor Thalhammer <[EMAIL PROTECTED]> wrote: > Is this really an intended behaviour? Wouldn't it be better if > get_xlim() already returns a copy? Or could at least the documentation > be updated to mention this pitfall? I think it should return a copy -- if I do

[matplotlib-devel] unexpected behaviour of get_xlim

2008-10-10 Thread Gregor Thalhammer
Dear developers, the following example shows a somewhat unexpected behaviour of the get_xlim() method of an axis object: it returns a view to the internal data structure used to store the data limits. Because of this saving and restoring the data limits failed in this example (I am using matplo