Re: [matplotlib-devel] relim and autoscale_view

2008-01-23 Thread Michael Droettboom
Yep. I fixed that bug in the wrong way -- it needs to ignore existing limits on the first line, and then subsequently not ignore. I think I have it working now with both your old example and this one. (r4890) Cheers, Mike Darren Dale wrote: > I noticed another bug: > > l1,=plot([1,2,3,4]) >

Re: [matplotlib-devel] relim and autoscale_view

2008-01-23 Thread Darren Dale
I noticed another bug: l1,=plot([1,2,3,4]) l2,=plot([2,3,4,5]) l1.set_ydata([3,4,5,6]) l2.set_ydata([5,6,7,8]) gca().relim() gca().autoscale_view() draw() This sets the y limits to 5 and 8, rather than 3 and 8. Even if I change only the ydata for l1, the limits are still calculated according to

Re: [matplotlib-devel] relim and autoscale_view

2008-01-22 Thread Darren Dale
That did it, thanks Mike. On Tuesday 22 January 2008 08:09:37 am Michael Droettboom wrote: > Thanks. The "ignore existing data" flag was not getting set properly. > > Fixed in r4884. Please let me know how that works for you. > > Cheers, > Mike > > Darren Dale wrote: > > In the trunk, I noticed

Re: [matplotlib-devel] relim and autoscale_view

2008-01-22 Thread Michael Droettboom
Thanks. The "ignore existing data" flag was not getting set properly. Fixed in r4884. Please let me know how that works for you. Cheers, Mike Darren Dale wrote: > In the trunk, I noticed that relim() followed by autoscale_view() do not have > the same behavior as they did with the old transfo

[matplotlib-devel] relim and autoscale_view

2008-01-21 Thread Darren Dale
In the trunk, I noticed that relim() followed by autoscale_view() do not have the same behavior as they did with the old transforms branch. For example: l,=plot([1,2,3]) l.set_ydata([4,5,6]) gca().relim() gca().autoscale_view() draw() used to produce the same output as plot([4,5,6]) but now it