【问题标题】:Inscribing Plot window in the console and do not want the plot window popping up separately在控制台中写入绘图窗口,不希望单独弹出绘图窗口
【发布时间】:2020-09-05 19:14:44
【问题描述】:

我面临几个问题。首先,我希望所有的图都在一个单独的窗口中。为此,我成功更改了设置并获得了单独的窗口。问题是,我得到了相同的数字,这很糟糕。第二个问题是,我如何在 Ipconsole 上刻上窗口盘?我不想要一个单独的窗口。我想要控制台内的这个窗口?

【问题讨论】:

    标签: python matplotlib spyder


    【解决方案1】:

    对于第一个问题,您可以通过这种方式使用figure 以不同的图形绘制图表:

    import matplotlib.pyplot as plt
    
    plt.figure()
    # Plot your first graph(s)
    
    plt.figure()
    # Plot your other graph(s)
    
    plt.show()
    

    每次调用figure,都会创建一个新窗口。更多关于figure的信息,可以查看the doc

    【讨论】:

    • 谢谢。知道如何将绘图窗口平移到 ipconsole 吗?
    猜你喜欢
    • 2012-01-02
    • 2012-06-07
    • 2019-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-20
    相关资源
    最近更新 更多