Skip to content

Instantly share code, notes, and snippets.

@databyjp
Last active November 17, 2021 05:18
Show Gist options
  • Save databyjp/3705684e1fe868e3ccf27498f57f94f3 to your computer and use it in GitHub Desktop.
Save databyjp/3705684e1fe868e3ccf27498f57f94f3 to your computer and use it in GitHub Desktop.
fig = px.scatter(embed_df, x='tsne_1', y='tsne_2', hover_name='bigram', text='bigram', size='count', color='words', size_max=45
, template='plotly_white', title='Bigram similarity and frequency', labels={'words': 'Avg. Length<BR>(words)'}
, color_continuous_scale=px.colors.sequential.Sunsetdark)
fig.update_traces(marker=dict(line=dict(width=1, color='Gray')))
fig.update_xaxes(visible=False)
fig.update_yaxes(visible=False)
fig.show()
@YoonHwa-P
Copy link

^^ nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment