Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 21, 2021 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/972c0871b362ab74088ea35e2698a899 to your computer and use it in GitHub Desktop.
Save amankharwal/972c0871b362ab74088ea35e2698a899 to your computer and use it in GitHub Desktop.
figure = []
figure.append(px.violin(tv_shows_both_ratings, x = 'StreamingOn', y = 'IMDb', color='StreamingOn'))
figure.append(px.violin(tv_shows_both_ratings, x = 'StreamingOn', y = 'Rotten Tomatoes', color='StreamingOn'))
fig = make_subplots(rows=2, cols=4, shared_yaxes=True)
for i in range(2):
for j in range(4):
fig.add_trace(figure[i]['data'][j], row=i+1, col=j+1)
fig.update_layout(autosize=False, width=800, height=800)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment