使用面向对象的方式创建子图前,需要创建一个figure对象,如 fig = plt.figure() ,然后在图像布局中绘制子图,下列例子中,我们用 fig.add_subplot(221) 绘制了2行2 ...
確定! 回上一頁