risail
risail

Reputation: 537

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?

Upvotes: 5

Views: 19759

Answers (2)

Jan Katins
Jan Katins

Reputation: 2319

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

Upvotes: 3

Jan Katins
Jan Katins

Reputation: 2319

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.DataFrames and matplotlib figures.

Disclaimer: I'm the author of knitpy

Upvotes: 3

Related Questions