1
我最近開始使用sublimetext 3,plt.show()函數在sublimetext中運行時似乎不起作用。Sublime Text中的Matplotlib 3
我已創建以下腳本:
import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()
運行該閒置生成一個情節,但使用不產生輸出sublimetext。
我用下面的編譯系統
{
"cmd": ["/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python",
"shell": true
}
如果有人能告訴我什麼我做錯了,因爲我沒有看到任何構建錯誤,但我仍然沒有看到任何圖形。
如果有人可以請這方面的幫助 - 感謝