上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: ax3 = plt.subplot2grid((3,3),(2,0))表示把整个figure分为了三行三列,从第二行第0列开始作图 可以就是用网格作图,方便 阅读全文
posted @ 2018-09-04 12:01 BothSavage 阅读(591) 评论(0) 推荐(0) 编辑
摘要: plt.subplot(2,2,3) 和plt.subplot(223)的效果是一样的 均匀分隔和不均匀分隔的区别 就是subplot前后的参数不一样 阅读全文
posted @ 2018-09-04 11:26 BothSavage 阅读(544) 评论(0) 推荐(0) 编辑
摘要: plt.imshow() 记住有这个东西就行 阅读全文
posted @ 2018-09-04 11:09 BothSavage 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 等有需求的时候再深入研究 阅读全文
posted @ 2018-09-04 10:59 BothSavage 阅读(832) 评论(0) 推荐(0) 编辑
摘要: plt.yticks(())隐藏y的刻度 plt.bar(x,-y2) bar是柱状图 阅读全文
posted @ 2018-09-04 10:46 BothSavage 阅读(237) 评论(0) 推荐(0) 编辑
摘要: plt.scatter(x,y,s=.c=,alpha=)#xy是坐标,s是size,c是颜色,alpha是透明度 阅读全文
posted @ 2018-09-04 10:40 BothSavage 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 记住有这个东西 阅读全文
posted @ 2018-09-03 20:39 BothSavage 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 能画虚线,能写注释,注释有两种情况第一种为annotate,第二种为text 阅读全文
posted @ 2018-09-03 20:30 BothSavage 阅读(174) 评论(0) 推荐(0) 编辑
摘要: l1 = plt.plot(x,y1,lable='linear line') 表示l1是一条线,x,y参数确定,lable表示这个线在figure里面的名称 plt.legend(loc='upper right') #plt的图例放置的位置在loc参数中 plt.legend(handles=[ 阅读全文
posted @ 2018-09-03 19:57 BothSavage 阅读(672) 评论(0) 推荐(0) 编辑
摘要: xy坐标的范围可以通过lim来实现,坐标轴名称也很好实现 plt.xticks([-1,2,5])表示设置x轴的刻度,在-1到2之间,有5个刻度 还可以给刻度添加名字 ax = plt.gca()用于获取当前坐标轴的信息 ax.spines('top').set_color('none') 把顶端边 阅读全文
posted @ 2018-09-03 16:56 BothSavage 阅读(2090) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页