简体   繁体   English

python matplotlib.plot不显示图表

[英]python matplotlib.plot does not show chart

Have recently started playing with Python. 最近开始使用Python。 I have installed Python Spyder app on the Mac. 我已经在Mac上安装了Python Spyder应用程序。 Everything has been working well until recently for some reason the matplotlib charts stopped displaying. 直到最近,由于某种原因,matplotlib图表停止显示,一切都运转良好。 A simple code like this does not work anymore: 像这样的简单代码不再起作用:

import matplotlib.pyplot as plt
x = np.linspace(0.4 * np.pi, 100)
plt.plot(x)

The only output is [] 唯一的输出是[]

I have Spyder 2.3.3, Python 3.4.3 64 Bit. 我有Spyder 2.3.3,Python 3.4.3 64位。

您必须告诉剧情以以下方式展示自己:

plt.show()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM