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 -- Darren S. Dale, Ph.D. Staff Scientist Cornell High Energy Synchrotron Source Cornell University 275 Wilson Lab Rt. 366 & Pine Tree Road Ithaca, NY 14853 [EMAIL PROTECTED] office: (607) 255-3819 fax: (607) 255-9001 http://www.chess.cornell.edu ------------------------------------------------------------------------- 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