matplotlib 中子圖的創建

from matplotlib import pyplot as m m.figure(「max」,facecolor=‘lightgray’) 子圖1 m.subplot(2,2,1) #設置2行兩列的格式 m.xticks(()) m.yticks(()) m.text(0.5,0.5,‘1’,ha=「center」,va=‘center’,size=36,alpha=0.5) 圖2 m.su
相關文章
相關標籤/搜索