diff --git a/COVID-19/Project/.vs/Project/v16/.suo b/COVID-19/Project/.vs/Project/v16/.suo index 99f0b38..7b09948 100644 Binary files a/COVID-19/Project/.vs/Project/v16/.suo and b/COVID-19/Project/.vs/Project/v16/.suo differ diff --git a/COVID-19/Project/Project/Project.py b/COVID-19/Project/Project/Project.py index 57a6980..97ed667 100644 --- a/COVID-19/Project/Project/Project.py +++ b/COVID-19/Project/Project/Project.py @@ -46,16 +46,12 @@ recovered = [dfChinaJan['Recovered'].sum(),dfChinaFeb['Recovered'].sum(),dfChina recoverPoss = [] for i in range(len(confirmed)): recoverPoss.append(recovered[i] / confirmed[i]) - date = pd.date_range(start='2020-01', periods=12, freq="m").strftime('%Y-%m') -data_1={ - 'confirmed':confirmed, - 'recovered':recovered, - 'recoverPoss':recoverPoss - } -data_1_df = pd.DataFrame(data_1, index=date) -ax = data_1_df.plot(secondary_y=['recovery possibility'], x_compat=True, grid=True) -ax.set_ylabel('confirmed/recovered') -ax.grid(linestyle="--", alpha=0.3) + +fig = plt.figure() +ax1 = fig.add_subplot(111) +ax1.plot(date,confirmed,recovered) +ax2 = ax1.twinx() +ax2.plot(date,recoverPoss) plt.show() \ No newline at end of file