折线图
matplotlib
plt.plot(x,y,linestyle,color,marker,markersize,markeredgecolor,markerfactcolor,
markeredgewidth,label)
marker:点形状
wechat.xlsx
#两种x轴显示间隔日期方法
import matplotlib.dates as mates
pd.to_datetime(wechat.Date)
plt.gca().xaxis.set_maior_formatter(mates.Datefometter('%Y-%m-%d))
plt.gca().xaxis.set_major_locator(mates.weekdaylocater())
#fig1 = plt.figure(figsize=(15,5))
#ax1 = fig1.add_subplot(1,1,1)
#ax1.xaxis.set_major_formatter(mates.Dateformatter('%Y-%m-%d'))
#plt.xticks(pd.date_range(wechat.Date.min(),wechat.Date.max(),10),rotation=45)
plt.plot(x=wechat.Date,y=wechat.Counts,
linestyle='-',color='steelblue',
label='阅读人数')
plt.plot(x=wechat.Date,y=wechat.Times,
linestyle='--',color&