matplotlib.pyplot使用方法

2017-11-27  本文已影响0人  江魁

导入包matplotlib.pyplot as plt

折线图:plt.plot()

散点图:plt.scatter()

直方图:plt.hist()

数轴标签:plt.xlable(’name’);plt.ylable(’name’)

数据标签:plt.xticks([,,,],[‘’,’’,’',])

标题:plt.title

查看帮助:help(函数)

翻转横纵坐标:dataFrame = dataFrame1.sort(["横坐标"],ascending=False)

上一篇 下一篇

猜你喜欢

热点阅读