March 2014
Beginner to intermediate
222 pages
4h 7m
English
In Chapter 4, Working with Figures, saw seen how to compose several figures in one matplotlib graph. This allows you to create very elaborate plots. When using the PDF output, we have to keep in mind that the graph has to fit on one page. However, with some additional work, we can output PDF documents of several pages. Be warned, matplotlib is a scientific plotting package, not a document composition system, such as LaTeX or ReportLab. Thus, support for multiple pages is fairly minimal. In this recipe, we will see how to generate multiple page PDF documents.
To demonstrate multiple page PDF outputs with matplotlib, let's generate 15 bar charts, with five charts per page. The following script will ...
Read now
Unlock full access