hwI2DViewControl PickCenter
Makes the given dimensions the center of the plot and changes the axes accordingly.
Syntax
hwI2DViewControl_handle PickCenter x y
Application
HyperGraph Tcl Modify
Description
This command makes the given x and y values the center of the plot, and shifts the x axis and y axis accordingly.
Inputs
- x
- The x value that you choose; this value becomes the center of the plot, moving the x axis to make this x value the center.
- y
- The y value that you choose; this value becomes the center of the plot, moving the y axis to make this y value the center.
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;
Error
If either the x or y value, or both, are not present, an error message is displayed. Otherwise, success (0) is returned.
Keywords
HyperWorks
XY plot
Tcl
Modify