| Home | Trees | Indices | Help |
|
|---|
|
|
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
| Properties | |
| centered | |
| colors | |
| comment | |
| filename | |
| landscape | |
| magnification | |
| metric | |
| paperSize | |
| ppi | |
| singlePage | |
| transparentColor | |
|
Inherited from |
|
| Method Details |
|
object is supposed to
be a fig.Object-derived object. CustomColor objects are
appended to self.colors as if addColor() was called.
|
|
Return a color object for the given color, adding a new custom color to this document if it does not yet exist. The color can be given as tuple of R,G,B values or as hex string (e.g. (0, 255, 0) or '#00ff00' for green). The range of valid R,G,B values depends on the type: integer values are expected to be in the range 0..255, while float values are interpreted as percentage values in the closed interval [0.0, 1.0]. If a CustomColor object with the given color is already present, it will be returned. Otherwise, addColor will be called, and the new object is returned. If the optional parameter If |
|
|
figfile.
|
|
Saves the contents of this file in the XFig file format to the file 'filename'. Equivalent to: file(filename, "w").write(str(figfile)) If filename is not given, and figfile was constructed from an existing file, that one is overwritten (-> figfile.filename). If the filename does not end in '.fig', the extension is appended. After saving, the filename becomes the new figfile.filename and would be used for the next save() without filename. The return value is the output file written last, i.e. it depends on whether fig2dev was given:
|
Calls fig2dev on the file Usually, you just call sth. like
figfile = fig.File("myfigfile.fig")
...
figfile.save()
figfile.fig2dev(lang = "pdf")
to produce myfigfile.pdf. It is now even easier to use the following convenience shortcut: figfile.save(fig2dev = "pdf") |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Tue Aug 28 16:31:20 2007 | http://epydoc.sourceforge.net |