简体   繁体   中英

Generating Reports with Python: PDF or HTML to PDF

Using maptplotlib I have created 9 graphs which are combined in to a single pdf using the command savefig . However I need to be able to show the statistical analysis below each plot with .describe() . What would be the best way to do this?

There are multiple possibilities:

For the last, have a look at https://github.com/JanSchulz/knitpy/tree/master/examples , the docx, pdf and html versions were generated from the .pymd source. The example includes both pandas.DataFrame s and matplotlib figures.

Disclaimer: I'm the author of knitpy

Pandas has the possibility to include a table with a plot. See the table kwarg to pandas.DataFrame.plot . See the docs: http://pandas.pydata.org/pandas-docs/dev/visualization.html#visualization-table

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM