pltIViewControl Fit

Fits the plot in the window.

Syntax

pltIViewControl_handle Fit

Application

HyperWorks 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 the fact that it zooms to the curve’s dimensions rather than user-given dimensions.

Example

hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
w1 GetViewControlHandle vc;
vc Fit;
plot Draw;

Errors

Returns success (0) or an error code.

Keywords

HyperWorks

XY plot

Tcl

Modify