matplotlib-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@...1455...

Michael Droettboom wrote:

Why are you turning autoscaling off and on? When you turn it off, the
autoscale mechanism effectively "ignores" any plots until you turn it
back on. If you remove

gca().set_autoscale_on(False)

all seems to work fine.

Is your question that you want to autoscale to a plot after creating it?

I want to be able to "freeze" the plot when adding another curve (because I
want to compare the added curve and a previous one in a small portion of
the X/Y plane, this portion may have been chosen by a zoom of the user
before adding the curve).

Once this comparison has been performed, the user may want to autoscale the
complete plot. If the added curve is larger than the previous one, the
autoscale should take into account the larger curve.

Julien

ยทยทยท

--
python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.9&1+,\'Z
(55l4('])"

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)