Created
June 7, 2020 06:24
-
-
Save pierrelouisbescond/38013233b67689d5b4e3a26bf02ed777 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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