Contents Previous Next Subchapters

Setting The Axis Intercept Point For A Viewport
Syntax gintercept(x-intercepty-intercept)
gintercept(
x-intercepty-intercept,  z-intercept)
See Also gxyzaxis
Menu Command Graphics | Intercepts

Description
Sets the point at which the x-axis, y-axis, and z-axis, intersect, where x-intercept, y-intercept, and z-intercept, are integer, real, or double-precision scalars or character row vectors. (If the z-intercept is not specified, it is 0 by default.) If the argument is a character row vector it must be either "min", "center", or "max".

Numeric Example
If you enter
     ginit
     x = seq(11) - 6
     gplot(x, 5 - x^2)
O-Matrix will plot a parabola. You can set the x-axis along the top of the parabola by entering
     gintercept(0, 5)

Character Example
If you enter
     ginit
     x = seq(11) - 6
     gplot(x, 5 - x^2)
     gintercept("center", "max")
O-Matrix will plot a parabola with the axis intercept point in the middle of the x-axis and at the top of the y-axis.