Skip to content

Instantly share code, notes, and snippets.

@Antosser
Created November 27, 2022 13:44
Show Gist options
  • Save Antosser/8aa40594f0df692124207c26dc569b31 to your computer and use it in GitHub Desktop.
Save Antosser/8aa40594f0df692124207c26dc569b31 to your computer and use it in GitHub Desktop.
Plotpy simple sine wave
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