2021
01-09
01-09
plt.figure()参数使用详解及运行演示
1.figure语法及操作(1)figure语法说明figure(num=None,figsize=None,dpi=None,facecolor=None,edgecolor=None,frameon=True)num:图像编号或名称,数字为编号,字符串为名称figsize:指定figure的宽和高,单位为英寸;dpi参数指定绘图对象的分辨率,即每英寸多少个像素,缺省值为801英寸等于2.5cm,A4纸是21*30cm的纸张facecolor:背景颜色edgecolor:边框颜色frameon:是否显示边框(2)例子:importmatplotlib.pyp...
继续阅读 >