matplotlib

设置边宽
self.canvas.fig.subplots_adjust(left=0.05,bottom=0.05,top=0.95)
画矩阵框
self.canvas.drawRectangle(rect)#画一矩阵
self.canvas.drawRectangle(None)#清除矩阵
self.canvas.figure.bbox#当前画布的属性
axes.dataLim#获得数据的最小最大值
axes.viewLim#获得当前视图数据的最小最大值,与axes.get_xlim(),axes.get_ylim()结果是已知的

figure.mpl_connect('button_press_event',self.mousePress)#信号槽

Seaborn是基于matplotlib的Python可视化库。 它提供了一个高级界面来绘制有吸引力的统计图形。
Seaborn其实是在matplotlib的基础上进行了更高级的API封装,从而使得作图更加容易,不需要经过大量的调整就能使你的图变得精致。
应该把Seaborn视为matplotlib的补充,而不是替代物。

plt.figure(figsize(12,8))#创建一figure
sns.displot()集合了matplotlib的hist()与核函数估计kdeplot的功能,增加了rugplot分布观测条显示与利用scipy库fit拟合参数分布的新颖用途。
plt.show()

posted @ 2018-05-21 15:58  blog_hfg  阅读(204)  评论(0)    收藏  举报