Browse Source

work on plot

main
parent
commit
5ac82fe776
  1. 10
      tornado/tornado.py

10
tornado/tornado.py

@ -47,8 +47,14 @@ df = df.interpolate(method='spline', order=5)
# df['death_change'] = df['daily_deaths_avg'].diff()
# %%
ax = plt.figure(figsize=cm2inch(15,15), frameon=False)
plt.plot(df['death_change'], df['daily_deaths_avg'])
fig, ax = plt.subplots(figsize=cm2inch(15,15))
ax.plot(df['death_change'], df['daily_deaths_avg'], lw=1)
#plt.plot(df['death_change'], df['daily_deaths_avg'], 'ob') # dots for debugging
ax.axvline(x=0, c='black', lw=1, ls=':')
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
plt.show()
#%%

Loading…
Cancel
Save