hwI2DViewControl CircleZoom

Zooms the plot to within the given dimensions.

Syntax

hwI2DViewControl_handle CircleZoom min_x min_y max_x max_y

Application

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 you supply rather than a preset zoom. It also differs from Fit in that it zooms based on the given dimensions rather than zooming to the curve’s dimensions.

Inputs

min_x
The minimum x value of the zoom rectangle.
max_x
The maximum x value of the zoom rectangle.
min_y
The minimum y value of the zoom rectangle.
max_y
The maximum y value of the zoom rectangle.

Example

hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
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

XY plot

Tcl

Modify