繪製二維折線圖

繪製二維折線圖 %matplotlib inline 先運行 Jupyter Notebook 的魔術命令 %matplotlib inline。這條命令的作用是將 Matplotlib 繪製的圖形嵌入在當前頁面中。 from matplotlib import pyplot as plt 使用 Matplotlib 提供的面向對象 API,需要導入 pyplot 模塊,並約定簡稱爲 plt。 p
相關文章
相關標籤/搜索