time series zoom/pan speedup

Please check and try out revision 7100. For example, with ipython -pylab:

x = np.arange(1000000, dtype=float) * 0.2
y = np.sin(x)
plot(x,y)
xlim(10,20)

Then play around with panning and zooming.

To see what the behavior is like without the changes, just reverse the sign of x, since at present only monotonically increasing x is supported:

plot(-x, y)
xlim(-20,-10)

Notice that in the latter case, panning and zooming is jerky.

Thanks.

Eric

Works great for me here, nice work.

Ryan

···

On Wed, May 13, 2009 at 3:07 PM, Eric Firing <efiring@…229…> wrote:

Please check and try out revision 7100. For example, with ipython -pylab:

x = np.arange(1000000, dtype=float) * 0.2

y = np.sin(x)

plot(x,y)

xlim(10,20)

Then play around with panning and zooming.

To see what the behavior is like without the changes, just reverse the

sign of x, since at present only monotonically increasing x is supported:

plot(-x, y)

xlim(-20,-10)

Notice that in the latter case, panning and zooming is jerky.


Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma