拨开荷叶行,寻梦已然成。仙女莲花里,翩翩白鹭情。
IMG-LOGO
主页 文章列表 Pyplot.plot函式生成实时图。plt.plot()似乎什么都不做

Pyplot.plot函式生成实时图。plt.plot()似乎什么都不做

白鹭 - 2022-02-22 1960 0 0

由于某种原因,当我运行单行(Spyder 中的 F9)时会生成图。因此,在下面的序列中,首先生成一个线图。第二行生成一个空图,但带有 y 标签,而 plt.show() 什么也不做。昨天我尝试制作一个非常简单的影片。使用汇出到档案。从那以后,我进行了全新的安装。重新安装 Anaconda 我正在使用 Anaconda,Python 3.9.7 matplotlib 3.4.3,Ipython 7.29.0,spyder 3.9.7

我错过了什么?

plt.plot([1, 2, 3, 4])  #this line makes a simple line plot
plt.ylabel('some numbers') #executing thins line makes a new empty plot with the label
plt.show()  #nothing happens

Pyplot .plot 函式生成实时图。plt.plot() 似乎什么都不做

标签:

0 评论

发表评论

您的电子邮件地址不会被公开。 必填的字段已做标记 *