def plot_test():
df = ts.get_hist_data('600415', start='2015-04-01', end='2015-06-18')
# ???????
df.plot()
# ??stock???????
df.high.plot()
# ????????????????
with pd.plot_params.use('x_compat', True):
df.open.plot(color='g')
df.close.plot(color='y')
df.high.plot(color='r')
df.low.plot(color='b')
# ??????????????
with pd.plot_params.use('x_compat', True):
df.high.plot(color='r', figsize=(10, 4), grid='on')
df.low.plot(color='b', figsize=(10, 4), grid='on')
评论列表
文章目录