Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pierrelouisbescond/38013233b67689d5b4e3a26bf02ed777 to your computer and use it in GitHub Desktop.
Save pierrelouisbescond/38013233b67689d5b4e3a26bf02ed777 to your computer and use it in GitHub Desktop.
df["sin_x"] = np.sin(df["x_norm"])
import plotly.graph_objects as go
fig = go.Figure()
fig.add_trace(go.Scatter(x=df.x_norm, y=df.cos_x, name='cos_x'))
fig.add_trace(go.Scatter(x=df.x_norm, y=df.sin_x, name='sin_x'))
fig.update_layout(yaxis = dict(scaleanchor = "x", scaleratio = 1))
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment