Function: math[pointgridR3] - plots a grid of points
Calling Sequence:
pointgridR3(h);
pointgridR3(h, plot options);
pointgridR3(h, v);
pointgridR3(h, v, plot options);
Parameters:
h
- horizontal range of the form
x=x1 .. x2
or
x1 .. x2
v
- vertical range of the form
y=y1 .. y2
or
y1 .. y2
Description:
In the first form, pointgridR3 produces a grid of points with the horizontal and vertical range being the same.
In the second form, pointgridR3 produces a grid with different horizontal and vertical ranges.
By default the points are printed in black color and with SYMBOL=POINT. You may specify another color or symbol for the grid by passing the corresponding plot options to cartgridR3.
The default color can be changed by assigning the global variable pointgridR3Color a different color.
The distance between two neighbouring points is 1 by default. If you pass a constant n with the step option, the distance between neighboring horizontal and vertical points is n. n should be a positive rational or integer. You may also pass a list of two positive rational or integer values with step. The first element specifies the distance between two neighboring points with respect to the horizontal range, the second the distance between two neighboring points with respect to the vertical range.
You may move the grid r units to a specific direction using the adjust option. If r is of type realcons and positive, then the grid is moved r units to the right and above. If r is negative, the grid is moved r units to the left and below. If a list of two rational or integer values [r1, r2] is passed with this option, the grid is moved horizontally r1 units and r2 units vertically. Default is 0 or [0, 0].
The return is a PLOT structure generated using plot.
This function is part of the math package, and so can be used only after performing the command with(math) or with(math, pointgridR3).
Examples:
> with(math, pointgridR3):
> pointgridR3(x=-4 .. 4);
> pointgridR3(x=-4 .. 4, y=-5 .. 5);
>
### WARNING: the definition of the type `symbol` has changed'; see help page for details
pointgridR3(x=-4 .. 4, -5 .. 5, step=2, symbol=CROSS);
See Also:
math/gridplot , plots/implicitplot , plot/color , math/cartgridR3 .
Version History:
Version 1.00 - March 13, 1998