fig=plt.figure(figsize=(18,18))
ax = plt.gca()
theRatios.plot(kind='line',x='date',y='ratioCA',color='red',ax=ax)
theRatios.plot(kind='line',x='date',y='ratioDailyCA',color='red',linestyle='dashed', ax=ax)
theRatios.plot(kind='line',x='date',y='ratioON',color='blue',ax=ax)
theRatios.plot(kind='line',x='date',y='ratioDailyON',color='blue',linestyle='dashed', ax=ax)
plt.title('COVID-19 case ratio of test (%)')
plt.xlabel('Date')
plt.ylabel('Percent(%)')
plt.grid(color='k', linestyle='-', linewidth=0.1)
plt.show()
Like this:
Like Loading...