STScI Logo

stdgraph plot



stdgraph -- draws a plot on the terminal


stdgraph input


The input metacode, may be a list of files or redirected STDIN.
device = "stdgraph"
The terminal type.
generic = no
The remaining parameters are ignored if generic = yes.
debug = no
When debug = yes, the decoded plotting instructions are printed during processing.
verbose = no
If verbose = yes, elements of polylines and cell array calls are printed in debug mode.
gkiunits = no
In debug mode, coordinates can be printed in GKI rather than NDC units.
txquality = "normal"
The character drawing quality.
xres = 0, yres= 0
The number of resolution elements in x and y


Task stdgraph translates GKI metacode and draws a plot on a graphics terminal. Input to stdgraph is GKI metacode, which can be read from one or more metacode files or redirected from the standard input.

Parameters txquality , xres , and yres are used to override the values for text quality, and x and y resolution already in the metacode. Values for txquality are chosen from normal, low, medium or high. High quality characters are software generated, and can be of any size.

If debug is set to yes, the plotting instructions are printed in readable form as the metacode is processed. In debug mode, GKI instructions can be printed in verbose mode, where the elements of polylines and cell arrays are printed in addition to the default output. Coordinates can be printed in either GKI (0 - 32767) or NDC (0.0 - 1.0) units.


1. Extract the fourth frame from metacode file "" and plot it.

cl> gkiextract 4 | stdgraph

2. Process file "" in debug mode.

cl> stdgraph debug+

3. Plot file "" with high quality text generation.

cl> stdgraph txquality=high


gkiextract, stdplot

Search Form · STSDAS