pltIViewControl PickCenter
Centers the plot based on the chosen point and changes the axes accordingly.
Syntax
pltIViewControl_handle PickCenter x, y
Application
HyperWorks Tcl Modify
Description
This command makes the input x and y values the center of the plot, and shifts the x-axis and y-axis accordingly.
Inputs
- x
- X coordinate of the new center. The x value that you choose; this will be the x value that will become the center of the plot and move the x-axis.
- y
- Y coordinate of the new center. The y value that you choose; this will be the y value that will become the center of the plot, and move the y-axis.
Example
hwi GetSessionHandle sess;
sess GetProjectHandle proj;
proj GetPageHandle p1 1;
p1 GetWindowHandle w1 1;
w1 GetClientHandle plot;
w1 GetViewControlHandle vc;
vc PickCenter 5 0;
plot Draw;
Errors
If either the x or y value, or both, are not present, an error message is returned. Otherwise, success (0) is returned.
Keywords
HyperWorks
XY plot
Tcl
Modify