由于某種原因,當我運行單行(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

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/418151.html
標籤:
