import matplotlib.pyplot as plt
import matplotlib as mpl
import datetime as dt
stocks['AAPL'].plot(figsize=(10,5), color='g')
plt.show()
figsize调整图片长宽,10为水平长度,5为垂直长度
color调整线条颜色
mpl.rc('figure', figsize=(10,4))
fig, ax = plt.subplots(1,3)
ax[0].scatter()
ax[0].set_title()
ax[1].scatter()
ax[1].set_title()
ax[2].scatter()
ax[2].set_title()
plt.suptitle()
plt.show()
分图像显示
fig.savefig('corr_plot.png')
保存图像