next up previous contents index
Next: Getting Hardcopies Up: GreG CookBook Previous: Demonstration Procedure for GREG   Contents   Index

Annotations or Using the Cursor

Most additional annotations can be done using the cursor, which is called by command DRAW. In command DRAW, the user can specify coordinates in three available systems :

By typing DRAW, the cursor appears on the screen. By hitting the appropriate key on your keyboard, you can obtain different actions :

After each of the precedent action but EXIT, the cursor position becomes the current pen position. Anything else usually gives you the cursor coordinates. However some letters may be used to add new possibilities in command DRAW. Never press RETURN or ^Z while the cursor is on, as this causes sometimes dramatic effects...

Note that by default, clipping within the box is turned off when you use command DRAW. Clipping can be enforced for the actions LINE, ARROW or MARKER by using the /CLIP option when you type the command. The action TEXT is never clipped.

When there is no cursor available (no graphic device active, or no cursor on the graphic device), to use command DRAW you must type explicitly the complete command as follows :

This explicit form can also be used on interactive devices. The cursor will not be called in such case. There is no explicit form for D and E. In interactive mode, the explicit command corresponding to the cursor action is written to the Log File and to the internal stack. Accordingly, the stack can be replayed to produce the same results without any interaction with the cursor. The choice of the coordinate system is beyond the scope of this cookbook; for a single plot it should not matter.


next up previous contents index
Next: Getting Hardcopies Up: GreG CookBook Previous: Demonstration Procedure for GREG   Contents   Index
Gildas manager 2014-07-01