本文共 360 字,大约阅读时间需要 1 分钟。
@author XGan 2019/11/20 周三
import matplotlib.pyplot as pltimport numpy as npimport pandas as pd#读取数据dataset=pd.read_csv('D:\\OtherInstall\\Jupyter\\JupyterWorkspace\\data\\movie.csv')#拿到startop20star = dataset['star']print(star.head(20))#设置画布大小plt.figure(figsize=(12,8),dpi=70)#设置x,y轴plt.xlim(1,20)plt.ylim(0,10)plt.plot(star)plt.show()
转载地址:http://jhqzi.baihongyu.com/