Matplotlib.Pyplot does not show output; No Error

前端 未结 3 2056
不思量自难忘°
不思量自难忘° 2020-12-16 01:06

My platform is as follows

Centos 6.x (VirtualBox VM running on Win-7 host), Python 2.6.6, Matplotlib 1.3.1, Numpy 1.8.0, Scipy 0.14.0.dev-bb608ba

I am runnin

3条回答
  •  长情又很酷
    2020-12-16 01:45

    I once had a similar problem. I solved it by adding these lines imediately after import matplotlib.pyplot as plt and after every subsequent plt.show():

    plt.clf()
    plt.cla()
    plt.close()
    

提交回复
热议问题