Futurebasic/Language/Reference/plot

PLOT

edit

Syntax

edit

PLOT
PLOT TO
PLOT

Description

edit

This 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 recent BOX statement (in any window) that actually specified the h and v parameters;
  • (0,0), if no PLOT statement has yet been executed, and no prior BOX statement that specified h and v 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

edit

PEN; BOX; COORDINATE WINDOW; COLOR; LONG COLOR