AttributeError: module 'matplotlib' has no attribute 'plot'

問題描述

AttributeError: module 'matplotlib' has no attribute 'plot'

 

原因

導入包時候是這樣寫的

import matplotlib as plt

應該改成

import matplotlib.pyplot as plt

 

事無鉅細

發佈了59 篇原創文章 · 獲贊 12 · 訪問量 9648
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章