plget
return the value of a global variable
parameter | type | units | description |
---|---|---|---|
name | int | -- | alias for an internal variable to be retrieved |
returns: | float |
Description
plget delivers current internal values to the user. For name the following values are predefined in simplot.h:global | description \b |
ANGLE | symbol plotting direction in degrees |
HEIGHT | symbol height in mm |
LINESKIP | distance between lines in plformat, in units of symbolheight |
OPAQUETEXT | TRUE if text is plotted opaquely, FALSE if text is transparant |
PENDIA | linewidth in mm |
PLOTMODE | plot mode (GXxor or GXcopy) |
PLOTTER | plotter-name |
RESOLUTION | resolution in plits per millimeter |
VERSION | simplot version number (print with format %.2f) |
XANGLE | direction of the x-axis in degrees |
YANGLE | direction of the y-axis in degrees |
XCROSS | x-coordinate for the intersection of axes to be plotted |
YCROSS | y-coordinate for the intersection of axes to be plotted |
XLOG | true if an x-axis will be defined logarithmically, else false |
YLOG | true if an y-axis will be defined logarithmically, else false |
XPEN | x-coordinate of the pen in user units |
YPEN | y-coordinate of the pen in user units |
XU2M | mm-scaling factor in the x-direction (size of the user unit in mm) |
YU2M | mm-scaling factor in the y-direction (size of the user unit in mm) |
XU2P | plit-scaling factor in the x-direction (size of the user unit in plits) |
YU2P | plit-scaling factor in the y-direction (size of the user unit in plits) |
XSIZE | paper size in mm in the x-direction |
YSIZE | paper size in mm in the y-direction |
EVENT_ASCII | TRUE if the last X-event was caused by an ASCII key |
EVENT_BUTTON | TRUE if the last X-event was caused by a mouse button |
EVENT_DOWN | TRUE if the last X-event was caused by a key or button being pressed |
EVENT_FUNCTION | TRUE if the last X-event was caused by a function key |
EVENT_UP | TRUE if the last X-event was caused by a key or button release |