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]) > 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 l2. > > Darren > > On Tuesday 22 January 2008 10:11:48 am Darren Dale wrote: >> 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 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 is equivalent to >>>> >>>> plot([4,5,6]) >>>> ylim(1,6) >>>> >>>> Darren >>>> >>>> ----------------------------------------------------------------------- >>>> -- This SF.net email is sponsored by: Microsoft >>>> Defy all challenges. Microsoft(R) Visual Studio 2008. >>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >>>> _______________________________________________ >>>> Matplotlib-devel mailing list >>>> Matplotlib-devel@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > > -- Michael Droettboom Science Software Branch Operations and Engineering Division Space Telescope Science Institute Operated by AURA for NASA ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel