Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: McBASI Interpreter Commands OPEN Next: McBASI Interpreter Commands POKE

PLOT

Draws lines on the image/graphic display.


Syntax

PLOT line, element, color, frame, width


Parameters

line

frame line coordinate value (no default)

element

frame element coordinate value (no default)

color

graphics color level (no default)

frame

graphics frame to write on (default=current)

width

line width (default=1)


Remark

Each PLOT command draws a line from the previous location to the specified coordinates. Specifying zero for color does not draw a line although it does change the location.


Examples

PLOT 100, 200, 0

This example establishes the drawing position at line 100, element 200 on the current frame.

PLOT A, B, 1, 3

This example draws a line from the previous position to the line/element coordinates specified in the variables A and B, respectively. The line is drawn in graphics color level 1 on frame 3.

PLOT A, A+3, 2

This example draws a line in graphics color level 2 from the previous position to a new line coordinate in the variable A, and an element coordinate equal to A plus 3.

PLOT 1, 1, 0

This example moves the starting coordinate to the upper-left corner of the frame.


Table of contents Previous: McBASI Interpreter Commands OPEN Next: McBASI Interpreter Commands POKE
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690