matplotlib
starter_zheng
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
matplotlib —— 绘制条形图,直方图,散点图和饼图
# -*- coding: UTF-8 -*-import matplotlib.pyplot as pltplt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签plt.rcParams['axes.unicode_minus']=False #用来正常显示负号plt.figure(1) # 创建第一个画板# 绘制条形图p...原创 2018-01-30 00:48:31 · 3029 阅读 · 0 评论 -
matplotlib —— subplot子图
创建subplot1、使用add_subplot( )创建In [121]: fig=plt.figure()In [122]: ax1=fig.add_subplot(2,2,1)In [123]: ax2=fig.add_subplot(2,2,2)In [124]: ax3=fig.add_subplot(2,2,3)In [125]: fig.show()...原创 2018-01-29 23:41:17 · 2098 阅读 · 0 评论
分享