摘要: 请使用手机"扫一扫"x 阅读全文
posted @ 2018-07-30 21:30 菜鸟key 阅读(237) 评论(0) 推荐(0) 编辑
摘要: plt.legend((u'头等舱', u'2等舱', u'3等舱'), loc='best') 阅读全文
posted @ 2018-07-30 19:48 菜鸟key 阅读(1778) 评论(0) 推荐(0) 编辑
摘要: plt.grid(b=None, which='major', axis='both', **kwargs) Turn the axes grids on or off. 显示网格 plt.grid(b=True, which='major', axis='y') Set the axes grid 阅读全文
posted @ 2018-07-30 18:57 菜鸟key 阅读(4874) 评论(0) 推荐(0) 编辑
摘要: import matplotlib.pyplot as plt plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签 plt.rcParams['axes.unicode_minus']=False #用来正常显示负号 #有中文出现的情况,需要 阅读全文
posted @ 2018-07-30 17:28 菜鸟key 阅读(327) 评论(0) 推荐(0) 编辑
摘要: plt.subplot2grid shape : sequence of 2 ints loc : sequence of 2 ints rowspan : int Number of rows for the axis to span to the right. colspan : int Num 阅读全文
posted @ 2018-07-30 17:19 菜鸟key 阅读(6328) 评论(0) 推荐(0) 编辑