Created
February 6, 2020 18:40
-
-
Save Raudcu/8cc4b2d41d052f31886785e26d538d74 to your computer and use it in GitHub Desktop.
Plotly minimum
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.graph_objects as go | |
x = np.linspace(0,10,100) | |
fig = go.Figure() | |
fig.add_scatter(x=x, y=np.sin(x)) | |
fig.show() |
Author
Raudcu
commented
Feb 6, 2020
If you don't want the image to strech to windows size:
fig.update_layout(autosize=False)
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