Matplotlib: how to show plot again?

后端 未结 1 899
故里飘歌
故里飘歌 2021-01-28 13:16

Let say I make a plot in Ipython Notebook, and after couples of cells, I want to render it again, so I can compare it with other plots.

How can I do it?

1条回答
  •  醉话见心
    2021-01-28 14:22

    You can plot like this:

    a = [1,2,3,4]
    b = [3,4,5,6]
    f = plt.figure()
    f.add_subplot(111).plot(a, b,'-', color='black')
    

    Then render again just by calling f.

    0 讨论(0)
提交回复
热议问题