球员能力:matplotlib绘图时,如写汉字,需要定义utf-8编码,可进行#coding:utf-8,还需导入字体包 from matplotlib import FontProperties,定义字体font=FontProperties(fname=r’路径’,size=大小),.set_xticklabels(fontproperties=font)。
绘制股票k线图:需导入包from matplotlib.finance import quotes_historical_yahoo_ohlc.candlestick_ohlc,quotes=quotes_historical_yahoo_ohlc(‘INTC’,date1,date2)。plt.get_xaxis().set_viaible(False):去掉x轴坐标标签。
数据科学包基础笔记6
猜你喜欢
转载自blog.csdn.net/weixin_46087050/article/details/105640875
今日推荐
周排行