Skip to content

Instantly share code, notes, and snippets.

@Raudcu
Created February 6, 2020 18:40
Show Gist options
  • Save Raudcu/8cc4b2d41d052f31886785e26d538d74 to your computer and use it in GitHub Desktop.
Save Raudcu/8cc4b2d41d052f31886785e26d538d74 to your computer and use it in GitHub Desktop.
Plotly minimum
import plotly.graph_objects as go
x = np.linspace(0,10,100)
fig = go.Figure()
fig.add_scatter(x=x, y=np.sin(x))
fig.show()
@Raudcu
Copy link
Author

Raudcu commented Feb 6, 2020

For changing the range of the axes, for example x:

fig.update_xaxes(range=[1.5, 4.5])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment