Skip to content

Instantly share code, notes, and snippets.

@databyjp
Created March 17, 2020 07:49
Show Gist options
  • Save databyjp/e070579cfaa401b324454a374a333a4a to your computer and use it in GitHub Desktop.
Save databyjp/e070579cfaa401b324454a374a333a4a to your computer and use it in GitHub Desktop.
fig = px.bar(long_bigram_df_tidy, title='Comparision: ' + ngrams_list[0] + ' | ' + ngrams_list[1], x='ngram', y='value'
, color='variable', template='plotly_white', color_discrete_sequence=px.colors.qualitative.Bold
, labels={'variable': 'Company:', 'ngram': 'N-Gram'})
fig.update_layout(legend_orientation="h")
fig.update_layout(legend=dict(x=0.1, y=1.1))
fig.update_yaxes(title='', showticklabels=False)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment