Contents | Previous | Next | Subchapters |

Syntax |
`g2scale(` x1`, ` y1`, ` style1`, ` x2`, ` y2`, ` style2`)` |

See Also | gxaxis , gaddview , gaddwin , Tecplot GUI , SigmaPlot link , |

Plots multiple curves with two different scalings in the same region of a plotting window. The current viewport when

`g2scale`

is called is referred to as the initial viewport,
and the curves corresponding to `g2scale`

returns is the final viewport,
and the curves corresponding to `g2scale`

;
settings of the final viewport should be made after the call.

The matrix *x*

coordinates,
*y*

coordinates,
and

The matrix *x*

coordinates,
*y*

coordinates,
and

The arguments
`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: