Skip to content

Instantly share code, notes, and snippets.

@pierrelouisbescond
Last active June 7, 2020 06:30
Show Gist options
  • Save pierrelouisbescond/2ad8754dc9e9075ff05da88a1e987947 to your computer and use it in GitHub Desktop.
Save pierrelouisbescond/2ad8754dc9e9075ff05da88a1e987947 to your computer and use it in GitHub Desktop.
df_selected = df[["cos_x","sin_x"]].sample(15).sort_index()
display(df_selected)
fig = go.Figure()
fig.add_trace(go.Scatter(x=df_selected.cos_x, y=df_selected.sin_x, mode="markers"))
fig.update_layout(xaxis = dict(title="cos_x"),
yaxis = dict(title="sin_x", scaleanchor = "x", scaleratio = 1))
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment