1. 程式人生 > 實用技巧 >【優達學城測評】matplotlib 作圖中的title

【優達學城測評】matplotlib 作圖中的title

2019獨角獸企業重金招聘Python工程師標準>>> hot3.png

title 引數好神奇!!

直接貼程式碼

title = 'Histogram of Both Conditions'
kind = 'hist'
alpha = 0.5
plot = stroop.plot(title=title, kind=kind, alpha=alpha, bins=12)
xLabel = plt.xlabel('Time (seconds)')
window = plt.axis([0,40,0,8])

x,y軸長度的限制可以寫在一行程式碼裡的!!great!

轉載於:https://my.oschina.net/Bettyty/blog/754211