Created
March 6, 2020 14:31
-
-
Save mashhadazam/a9cd918a0fc64ee03cbce0a8d788dc9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fig = make_subplots(rows=2, cols=2,shared_xaxes=True, | |
subplot_titles=('Italy','Iran','South Korea','Germany')) | |
fig.update_xaxes(title_text="Number of Days since Outbreak", row=2, col=1) | |
fig.update_xaxes(title_text="Number of Days since Outbreak", row=2, col=2) | |
fig.add_trace(go.Scatter(x=ItalyGrowth.index,y=ItalyGrowth['Total Confirmed Cases'], | |
mode='lines+markers', | |
name='Active Cases', | |
line=dict(color=chartcol,width=2)), | |
row=1,col=1) | |
fig.add_trace(go.Scatter(x=IranGrowth.index,y=IranGrowth['Total Confirmed Cases'], | |
mode='lines+markers', | |
name='Active Cases', | |
line=dict(color=chartcol,width=2)), | |
row=1,col=2) | |
fig.add_trace(go.Scatter(x=SKGrowth.index,y=SKGrowth['Total Confirmed Cases'], | |
mode='lines+markers', | |
name='Active Cases', | |
line=dict(color=chartcol,width=2)), | |
row=2,col=1) | |
fig.add_trace(go.Scatter(x=GermanyGrowth.index,y=GermanyGrowth['Total Confirmed Cases'], | |
mode='lines+markers', | |
name='Active Cases', | |
line=dict(color=chartcol,width=2)), | |
row=2,col=2) | |
fig.update_layout(showlegend=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment