10-27-2005 05:10 PM
10-27-2005 05:24 PM
10-28-2005 11:56 AM
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,
10-28-2005 12:31 PM
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,