Futurebasic/Language/Reference/plot
PLOT
editSyntax
editPLOT
PLOT TO
PLOT
Description
editThis function draws a "point," a line, or a series of connected lines, in the current output window, using the current pen size, pen mode, pen pattern and foreground color.
If you use the first syntax, a single "point" is drawn. This will actually be a little rectangular block whose dimensions are the same as the pen's width and height, with its upper-left corner at point (h,v)
.
If you use the second syntax, a line is drawn, having one endpoint at (h,v)
. The line's other endpoint will be one of the following:
- The last point specified in the most recent
PLOT
statement (in any window); - The (
h,v
) coordinates of the most recentBOX
statement (in any window) that actually specified theh
andv
parameters; (0,0)
, if noPLOT
statement has yet been executed, and no priorBOX
statement that specifiedh
andv
has yet been executed.
If you use the third syntax, a line or a series of connected lines is drawn, with endpoints at the specified points.
FB Lite behavior:
When you use the "FB Lite" runtime, PLOT
switches to the Graphics Window before executing. You can't use PLOT
to draw a line in the Text Window, or on the printer; use the Toolbox procedures MOVETO
and LINETO
instead. Alternatively, you can activate the graphics window and select Print from the File menu.
See Also
editPEN; BOX; COORDINATE WINDOW; COLOR; LONG COLOR