Matplotlib savefig into different pages of a PDF

前端 未结 3 835
眼角桃花
眼角桃花 2020-12-16 19:14

I have a lengthy plot, composed o several horizontal subplots organized into a column.

When I call fig.savefig(\'what.pdf\'), the resulting output file shows all the

3条回答
  •  感动是毒
    2020-12-16 20:09

    I haven't tried myself, but in the matplolib faq there are some instruction to save plots in pdf in several pages.

    • FAQ http://matplotlib.org/faq/howto_faq.html#save-multiple-plots-to-one-pdf-file
    • Example http://matplotlib.org/examples/pylab_examples/multipage_pdf.html

提交回复
热议问题