Module Drawing :: Class PostScript
[hide private]
[frames] | no frames]

Class PostScript

source code

OutputLanguage --+
                 |
                PostScript

PostScript backend.

Instance Methods [hide private]
 
__init__(self) source code
 
bbox(self) source code
 
_clearState(self) source code
 
view(self, bbox, **ignore) source code
 
comment(self, text) source code
 
setlinewidth(self, width) source code
 
setrgbcolor(self, r, g, b) source code
 
setgray(self, gray) source code
 
setgrayorrgb(self, x) source code
 
setlinecap(self, linecap) source code
 
path(self, **ignore) source code
 
setfont(self, font, scale) source code
 
text(self, x, y, text, **ignore) source code
 
group(self, **ignore) source code
 
defineSymbol(self, name)
Define a stored procedure named 'name'.
source code
 
refSymbol(self, name, x, y) source code
 
esc(self, str)
Escape a string so that it is safe for postscript.
source code
 
escId(self, str)
Make a valid postscript entity from an arbitrary string.
source code
 
__str__(self) source code

Inherited from OutputLanguage: fill, rotate, stroke, translate, write

Method Details [hide private]

defineSymbol(self, name)

source code 

Define a stored procedure named 'name'.

with out.defineSymbol('foo'):
out.moveto(0,0) # etc