python-matplotlib
一、matplotlib绘图要点:
plt.figure(1) #初始化一张画布,自定义图像
plt.subplot(211) #创建单个子图,subplots创建多个子图
plt.plot(A,B) #直接在一张大的画布中画图
plt.show() #显示绘画的图像
figure(num=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, frameon=True)
#num:图像编号或名称,数字为编号 ,字符串为名称
#figsize:指定figure的宽和高,单位为英寸;
#dpi参数指定绘图对象的分辨率,即每英寸多少个像素,缺省值为80 1英寸等于2.5cm,A4纸是 21*30cm的纸张
#facecolor:背景颜色
#edgecolor:边框颜色
#frameon:是否显示边框
subplot(nrows,ncols,sharex,sharey,subplot_kw,**fig_kw)
#nrows:subplot的行数