Home | Trees | Indices | Help |
|
---|
|
Simple PDF reports using reportlab Named report 'report' generates 'report.pdf' and directory 'report/' with images which were requested to be included in the report You can attach report to the existing 'verbose' with report = Report() verbose.handlers += [report] and then all verbose messages present on the screen will also be recorded in the report. Use report.text("string") to add arbitrary text report.xml("<H1>skajdsf</H1>") to add XML snippet or report.figure() to add the current figure to the report. report.figures() to add existing figures to the report, but they might not be properly interleaved with verbose messages if there were any between the creations of the figures. Inspired by Andy Connolly
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
|
|
Add a figure to the report :Parameters: fig : None or string or `figure.Figure` Figure to place into report string : treat as a filename Figure : stores it into a file under directory and embedds into the report None : takes the current figure savefig_kwargs : dict Additional keyword arguments to provide savefig with (e.g. dpi) **kwargs Passed to :class:`reportlab.platypus.Image` constructor |
Adds all present figures at once If called twice, it might add the same figure multiple times, so make sure to close all previous figures if you use figures() multiple times |
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 23 23:09:16 2012 | http://epydoc.sourceforge.net |