hwIViewControl Fit

Zooms into the dimensions of the curve in the plot.

Syntax

hwIViewControl_handle Fit

Application

HyperGraph Tcl Modify

Description

This command zooms into or out of the graph based on the dimensions of the curve in the plot. It differs from ZoomIn or ZoomOut in that it zooms to the curve’s dimensions rather than a preset zoom. It also differs from CircleZoom in that it zooms to the curve’s dimensions rather than user-given dimensions.

Example

hwi OpenStack;
hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
plot AddCurve;
plot GetCurveHandle c1 1;
c1 GetVectorHandle x1 x;
x1 SetType Math;
x1 SetExpression (-6:6:1);
c1 GetVectorHandle y1 y;
y1 SetType Math;
y1 SetExpression sin(x);
w1 GetViewControlHandle vc;
vc Fit;
plot Draw;

Error

Returns success (0) or an error code.

Keywords

HyperWorks

XY Plot

Tcl

Modify