LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording Zoom factor and Pan position for intensity graph (LV8.2/8.5)

I'm using the zoom and pan features on the graph palette.  I need a way to determine the zoom factor and pan position so as to reapply these to another intensity graph.  Any way to do this?

Thanks,

Don
0 Kudos
Message 1 of 4
(3,022 Views)
Can't you just copy over the Xscale.range.min|max and yscale.range.max|min?
0 Kudos
Message 2 of 4
(3,020 Views)
I think this would work.

Since I am using an event-based architecture, I probably could take the strategy of using a mouse move event to grab scale information during panning, and a mouse down or up event to grab scale information during zooming.

I'll give this a shot and post a message on my results.

Sincerely,

Don
0 Kudos
Message 3 of 4
(3,018 Views)
Yes, this looks like it will work - I have an additional complication in that I am applying a 2d interpolation upon zooming, but I should be able to calculate the appropriate scale ranges based on the interpolation factor and the initial pan location. I just created one case for both mouse events to record the ranges.

Thanks again for your help.

Sincerely,

Don
0 Kudos
Message 4 of 4
(3,009 Views)