hwIViewControl CircleZoom

Zooms the plot to within the given dimensions.

Syntax

hwIViewControl_handle CircleZoommin_x, min_y, max_x, max_y

Application

HyperWorks Tcl Query

Description

This command zooms on the graph based on the given dimensions. It differs from ZoomIn or ZoomOut in that it zooms within the specified dimensions rather than a preset zoom. It also differs from Fit in that it zooms based on the user-input dimensions rather than zooming to the curve’s dimensions.

Inputs

min_x
The minimum value of x. This is the lowest possible value of x on the graph (the most left value). This does not mean that the x axis goes down to this exact x value. It does, however, mean that the displayed portion of the x axis will not stop before this value.
max_x
The maximum value of x. This is the highest possible value of x on the graph (the most right value). This does not mean that the x axis goes up to this exact x value. It does, however, mean that the displayed portion of the x axis will not stop before this value.
min_y
The minimum value of y. This is the lowest value of y on the graph (the bottom most value). This does not mean that the y value goes down to this exact y value. It does, however, mean that the displayed portion of the y axis will not stop before this value.
max_y
The maximum value of y. This is the highest value of y on the graph (the upper most value). This does not mean that the y axis goes up to this exact y value. It does, however, mean that the displayed portion of the y axis will not stop before this value.

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 (0:(10*PI):(PI/2));
c1 GetVectorHandle y1 y;
y1 SetType Math;
y2 SetExpression ((cos(x)*sin(x))/2);
w1 GetViewControlHandle vc;
vc CircleZoom 0 -5 6 5;
plot Draw

Error

If the min_x, min_y, max_x, and max_y values are not all present, an error message is displayed. If the values do not make a rectangle, the zoom will not occur.

Keywords

HyperWorks

XY Plot

Tcl

Modify