addFigure()
Add a figure to the report.
Usage
addFigure( fileName, justify='center',
caption = None, scale = 1, ref = None )
Parameters
- fileName (string)
- Figure file name. Notice that the full directory of the figure needs to be included.
- justify (string)
- Figure justification. Valid values are flushleft, flushright and center.
- caption (string)
- Caption of the figure.
- scale (integer)
- Image scale.
- ref (string)
- Label of the figure for further reference.
Return Value
None
Description
fname = vis.saveImage( width=600, height=400 )
rep.addFigure( fname, "center", "Geometry of the problem",
1.0, "fig:geom" )
rep.addText( """The geometry is given in Figure \\ref{fig:geom}.""" )