Hi there,
I have a XYPlot displaying some data. I also have an interface (some JSliders) with which the user can adjust the ranges of the axes (and also a JCheckBox to enable autoRange). This all works perfectly fine. Even when I update some displaying series or add new ones.
I also really like the possibility for the user to drag on the plot to zoom in and zoom out again. When zooming out, the "original" range that the user has set in the interface is applied again. Very nice!
Now my problem: The user can also select to use a logarithmic or linear scale. In this case, I have to create a new axis (LogAxis/NumberAxis) and apply it to the plot. Obviously, the range and autorange that is set over the interface can be applied to the new axes, which is fine. But the user zoom state (the one that the user dragged) is lost.
Can I somehow get this zoom state out of the old axes and apply it to the new ones? That would be so nice!
Thanks for your help,
Stefan
take over user zoom state to other axis
-
- Posts: 23
- Joined: Mon Dec 13, 2010 10:23 am
- antibot: No, of course not.