|
Contents | Previous | Next | Subchapters |
| Syntax |
g2scale(x1, y1, style1, x2, y2, style2) |
| See Also | gxaxis , gaddview , gaddwin , Tecplot GUI , SigmaPlot link , |
g2scale is called is referred to as the initial viewport,
and the curves corresponding to x1 and y1 are plotted
in this viewport.
The current viewport when g2scale returns is the final viewport,
and the curves corresponding to x2 and y2 are plotted
in this viewport.
The initial and final viewports share the visible plotting region.
Settings in the initial viewport, such as axis titles and scaling,
should be made before the call to g2scale;
settings of the final viewport should be made after the call.
The matrix x1 specifies the x coordinates,
y1 specifies the y coordinates,
and style1 specifies the style for the curves using the
initial scaling.
The values x1 and y1 are integer, real,
or double-precision matrices and have the same dimensions.
The character matrix style1 has the same row dimension
as the column dimension of x1.
The j-th curve with the initial scaling corresponds to the
j-th column of x1,
the j-th column of y1,
and the j-th row of style1.
The matrix x2 specifies the x coordinates,
y2 specifies the y coordinates,
and style2 specifies the style for the curves using the
final scaling.
The values x2 and y2 are integer, real,
or double-precision matrices and have the same dimensions.
The character matrix style2 has the same row dimension
as the column dimension of x2.
The j-th curve with the final scaling corresponds to the
j-th column of x2,
the j-th column of y2,
and the j-th row of style2.
The arguments
style1 and style2
have the same meaning as the first argument to the
gstyle
function.
Any gintercept
settings for the initial viewport
are overridden by g2scale.
x1 = 0:.1:10.
x2 = x1 / 2
y1 = x1^2
y2 = x2^3
gaddview(.25, .25, .5, .5)
gxtitle("x1 solid")
gytitle("y1 solid")
g2scale(x1, y1, "solid", x2, y2, "dashed")
gxtitle("x2 dashed")
gytitle("y2 dashed")
returns the following plot: