Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Manual Zooming into a scatter graph

How do I manually zoom into a scatter graph. My major concern is how do I keep track of the depth of current zoom.
What are the scatter graph properties that I can use for that. Also what is the measure for the depth of zoom. I realize there is a zoomfactor property, But I am not sure what it means to say the zoom factor is 2.
 
Thanks
Sreenath
0 Kudos
Message 1 of 4
(3,995 Views)
I should have said programatically instead of manually. SOrry for the mix up.
 
Sreenath
0 Kudos
Message 2 of 4
(3,993 Views)

Hi SreeJonn,

Measurement Studio 7.1 includes the abilities of graph zooming and panning.  With zooming and panning, you can see different views of your data.  You can zoom in and out of your data either programmatically or interactively. 

Run-Time Interaction Options:
     ** Zooming - Hold down <shift> (Notice the mouse pointer changes to a magnifying glass)
     ** Panning - Hold down <Ctrl> (Notice the mouse pointer changes to a hand)
     ** Zooming, panning, and cursor-dragging can be enabled or disabled by the graph's InteractionMode property (Found in the properties window for the graph)

Programmatic Options:
       You can programmatically use the following methods on the graphs for zooming and panning: ZoomAroundPoint(), ZoomXY(), PanXY(), ResetZoomPan(), and UndoZoomPan().  Since the Interaction modes are bit maskable, you can select any combination of interaction modes for the graph. Programmatically in C# for example, you could say
graph.InteractionMode = GraphInteractionModes.DragAnnontationCaption | GraphInteractionModes.DragCursor | GraphInteractionModes.PanX;

We have great online resources and example code for Measurement Studio in our Developer Zone. Click on this Measurement Studio link for all the resources.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 3 of 4
(3,977 Views)

Hi SreeJonn,

The Graph.ZoomFactor property gets or sets the factor used to zoom around a point when zooming interactively.  As you mentioned, the default value is 2.0.  If the value is less than 1.0, this indicates a zoom out, whereas a value greater than 1.0 indicates a zoom in. For example, a value of 0.8, zooms out by 80% and value of 1.5 zooms in by 150%. If the value is set to 1.0, the plot area is not zoomed because a value of 1.0 zooms by 100% of the current view.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 4 of 4
(3,975 Views)