python-繪圖matplotlib

《Python編程:從入門到實踐》讀書筆記 1.使用plot()繪製簡單的折線圖 import matplotlib.pyplot as plt va=[1,2,3,4,5] sq=[1,4,9,16,25] plt.plot(va,sq,linewidth=1) plt.title("square",fontsize=24) plt.xlabel("value",fontsize=14) pl
相關文章
相關標籤/搜索