DRAW
Keywords: greg

Next: DRAW ARROW Up: GREG1 Language Internal Help Previous: CURVE /VARIABLE Contents Index

##
DRAW

            [GREG1\]DRAW [Action] [Xc Yc] [/CLIP] [/BOX N] [/CHARACTER N] [/USER
        [Unit]]

        This is a powerful command which allows you to make drawings without da-
        ta either by specifying coordinates (Xc,Yc) and action desired (Action),
        or by interactive use of a cursor.

        Interactive mode with explicit action

          If Action is present but Xc and Yc are omitted, the cursor is  invoked
          to select the desired position. The complementary information, if rel-
          evant (e.g. text to be drawn), is prompted in the terminal.  The  com-
          mand terminates after the action.

        Interactive mode without action

          If the Action is also omitted, the cursor is invoked and the action is
          defined by using the proper key stroke at the desired location:
          - R for RELOCATE,
          - L for LINE,
          - M for MARKER,
          - A for ARROW,
          - T for TEXT,
          - C works like T, but prompts for the centering parameter in  addition
            to the text,
          - V for VALUE (map value and cursor coordinates in the current angular
            unit when a projection is defined),
          - 0 1 2 3 work like V except they temporarily (i.e., as long one  does
            not  exit from cursor mode) change the current angular unit in which
            the coordinates are returned,
          - D can be used to DELETE the last operation, and has no action on the
            operations  which  were  plotted previously to the current DRAW com-
            mand,
          - E exits from the cursor mode,
          - ^C will exit AND generate an error, which can be trapped (useful  to
            regain  control  inside of forever SIC loops calling the interactive
            cursor repeatedly),
          - any other key work like V.
          The cursor mode loops indefinitely as long as it is not exited.

          For graphical displays, you may use the mouse buttons for the commands
          RELOCATE  (left  mouse  button),  LINE (middle mouse button), and EXIT
          (right mouse button).

          The complete command (i.e. with action and coordinates) is written  to
          the  LOG_FILE  so that you can replay it easily. The option allows you
          to supersede the default value of the  coordinate  system  defined  by
          SET COORDINATE or to keep clipping.

        Command line mode:

          When using the explicit form, Xc and Yc may be equal to * to reuse the
          current pen position.

          Any "realistic" combination of literal values, 0-d  and  1-dimensional
          variables is accepted for that command. For example,
            DRAW MARKER A B /USER MINUTES
          will  plot  markers  at  each location given by the two arrays A and B
          (provided they are of the same size). A and B must be CHARACTER arrays
          in the case where the "/USER ABSOLUTE" option is used.

Subsections

- DRAW ARROW
- DRAW LINE
- DRAW MARKER
- DRAW RELOCATE
- DRAW TEXT
- DRAW VALUE
- DRAW /BOX
- DRAW /CHARACTER
- DRAW /CLIP
- DRAW /USER