Description | If one wants to "hop" between several coordinate systems, displayed in one and the same window, one has to store the specifications (position and scalings) of each coordinate system separately, using this function.
The address of a struct VCOORDSYSTEM is needed as the argument. VCOORDSYSTEM is defined in <Vgraph.h> (C/C++) or the unit Vgraph (Pascal/Delphi). |
Example C/C++ | VCOORDSYSTEM csys1;
....
/* create the first plot: */
V_setPlotRegion( 0, 0, 339, 200 );
VF_xyAutoPlot( X1, Y1, size1, PS_SOLID, LightGreen );
V_getCoordSystem( &csys1 ); /* store for later */
/* create the second plot: */
V_setPlotRegion( 340, 0, 679, 200 );
VF_xyAutoPlot( X2, Y2, size2, PS_SOLID, LightRed );
/* go back to the first plot: */
VF_setCoordSystem( &csys1 );
/* add an additional DataPlot: */
VF_xyDataPlot( X1, Z1, size1, PS_SOLID, LightBlue ); |
Example Pascal/Delphi | var cxyx1: VCOORDSYSTEM;
begin
....
(* create the first plot: *)
V_setPlotRegion( 0, 0, 339, 200 );
VF_xyAutoPlot( X1, Y1, size1, PS_SOLID, LightGreen );
V_getCoordSystem( csys1 ); (* store for later *)
(* create the second plot: *)
V_setPlotRegion( 340, 0, 679, 200 );
VF_xyAutoPlot( X2, Y2, size2, PS_SOLID, LightRed );
(* go back to the first plot: *)
VF_setCoordSystem( csys1 );
(* add an additional DataPlot: *)
VF_xyDataPlot( X1, Z1, size1, PS_SOLID, LightBlue );
end; |
|