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])
>
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
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
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
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