This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Plot multiple figures into a single PDF with matplotlib, using the | |
object-oriented interface. | |
""" | |
from matplotlib.backends.backend_pdf import FigureCanvasPdf, PdfPages | |
from matplotlib.figure import Figure | |
import numpy as np | |
with PdfPages('multi.pdf') as pages: | |
for i in range(10): |