matplotlib制图——添加注释

摘要: 添加文本 阅读全文
posted @ 2017-12-16 23:32 alimin1987 阅读(1193) 评论(0) 推荐(0) 编辑

matplotlib制图——坐标轴

摘要: 添加坐标轴 阅读全文
posted @ 2017-12-16 22:54 alimin1987 阅读(1460) 评论(0) 推荐(0) 编辑

matplotlib制图——图例legend(线(或者其他图)的名称)

摘要: 另一种写法 面向对象 阅读全文
posted @ 2017-12-16 21:57 alimin1987 阅读(19432) 评论(0) 推荐(1) 编辑

matplotlib制图——网格

摘要: import matplotlib.pyplot as pltimport numpy as npimport pandas as pdy= np.arange(1,5)plt.plot(y,y*y)plt.grid(True)plt.grid(color='r',linestyle='--')#修改网格颜色,类型为虚线plt.show() import matplotlib.pyplot... 阅读全文
posted @ 2017-12-16 21:29 alimin1987 阅读(4588) 评论(0) 推荐(0) 编辑

matplotlib制图——子图-subplot及多图figure

摘要: import matplotlib.pyplot as pltimport numpy as npimport pandas as pdx=np.arange(1,100)fig=plt.figure()ax1=fig.add_subplot(221) #2*2的图形 在第一个位置ax1.plot(x,x)ax2=fig.add_subplot(222)ax2.plot(x,-x)ax3=fig... 阅读全文
posted @ 2017-12-16 21:06 alimin1987 阅读(10300) 评论(0) 推荐(0) 编辑

matplotlib制图——颜色和样式

摘要: 绘图——颜色 阅读全文
posted @ 2017-12-16 20:35 alimin1987 阅读(3213) 评论(0) 推荐(0) 编辑

matplotlib制图——箱形图

摘要: 箱形图——捕获异常值及分散情况 多个箱线图在一张图上 阅读全文
posted @ 2017-12-16 20:04 alimin1987 阅读(1532) 评论(0) 推荐(0) 编辑

matplotlib制图——饼状图

摘要: 饼状图 阅读全文
posted @ 2017-12-16 18:46 alimin1987 阅读(831) 评论(0) 推荐(0) 编辑

matplotlib制图——直方图

摘要: 直方图——两个变量 阅读全文
posted @ 2017-12-16 18:30 alimin1987 阅读(272) 评论(0) 推荐(0) 编辑

matplotlib制图——条形图

摘要: 图2 阅读全文
posted @ 2017-12-16 18:13 alimin1987 阅读(3239) 评论(0) 推荐(0) 编辑