Created
November 27, 2022 13:44
-
-
Save Antosser/8aa40594f0df692124207c26dc569b31 to your computer and use it in GitHub Desktop.
Plotpy simple sine wave
This file contains 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
import plotly as pl | |
from math import * | |
from numpy import * | |
trace = { | |
"x": [], | |
"y": [] | |
} | |
for i in arange(0, 10, .1): | |
trace["x"].append(i) | |
trace["y"].append(sin(i)) | |
fig = pl.graph_objs.Figure(data=pl.graph_objs.Data([trace])) | |
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment