PDA

View Full Version : Default axes after calling zoom(0)



Paladin12
8th December 2008, 05:52
Apologies if this has been asked before (it probably has), but when I zoom out using zoom(0) my plot does not return to the original scale, it goes to the default [0,1000][0,1000] scale.

I initialised my plot before the zoomer, and the first plot is fine. However, my plot needs to be redrawn often (due to changing data) and after the first redraw a call to zoom(0) has lost all sense of the appropriate scales. I know about setZoomBase(...) but I've never seen a useful example of it used, if indeed that is the solution to this problem.

Has anyone solved this in the past?

Uwe
8th December 2008, 08:24
Apologies if this has been asked before (it probably has), ...It has.

I know about setZoomBase(...)
Ok, but what is your question then ?

Uwe

Paladin12
8th December 2008, 23:49
Well I guess there are two questions:

1. Is setZoomBase(...) the solution?

and if so

2. Can someone supply an example of how to use it? It's not clear to me.

J

Paladin12
9th December 2008, 00:40
Never mind. I got it.

J