How to make several plots on a single page using matplotlib?

前端 未结 5 2009
离开以前
离开以前 2020-11-27 12:27

I have written code that opens 16 figures at once. Currently they all open as separate graphs. I\'d like them to open all on the same page. Not the same graph. I want 16

5条回答
  •  有刺的猬
    2020-11-27 13:18

    To answer your main question, you want to use the subplot command. I think changing plt.figure(i) to plt.subplot(4,4,i+1) should work.

提交回复
热议问题