Next: Rectangles, Previous: Drawing the Graph, Up: PostScript Graphing [Contents][Index]
Saves the current graphics state, executes args, then restores to saved graphics state.
color should be a string naming a Resene color, a saturate color, or a number between 0 and 100.
set-color
sets the PostScript color to the color of the given string, or a
grey value between black (0) and white (100).
font should be a (case-sensitive) string naming a PostScript font. height should be a positive real number. encoding should name a PostScript encoding such as ‘ISOLatin1Encoding’.
set-font
Changes the current PostScript font to font with the encoding
encoding, and height equal to height. The default font is
‘Helvetica’ (12pt). The default encoding is
‘StandardEncoding’.
The base set of PostScript fonts is:
Times | Times-Italic | Times-Bold | Times-BoldItalic |
Helvetica | Helvetica-Oblique | Helvetica-Bold | Helvetica-BoldOblique |
Courier | Courier-Oblique | Courier-Bold | Courier-BoldOblique |
Symbol |
The base set of PostScript encodings is:
StandardEncoding | ISOLatin1Encoding | ExpertEncoding |
ExpertSubsetEncoding | SymbolEncoding |
Line parameters do no affect fonts; they do effect glyphs.
The default linewidth is 1. Setting it to 0 makes the lines drawn as skinny as possible. Linewidth must be much smaller than glyphsize for readable glyphs.
Lines are drawn j-on k-off.
Lines are drawn j-on j-off.
Turns off dashing.
Sets the (PostScript) variable glyphsize to w. The default glyphsize is 6.
The effects of clip-to-rect
are also part of the graphic
context.
Next: Rectangles, Previous: Drawing the Graph, Up: PostScript Graphing [Contents][Index]