Created
December 8, 2019 22:00
-
-
Save Ddedalus/bc39da28ef1e7e7e3829e1994ae41752 to your computer and use it in GitHub Desktop.
Plotly: markers on line plot with express
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
| import plotly.express as px | |
| fig = px.line(y=[1,2,3,2,1]) | |
| fig.data[0].update(mode='lines+markers') | |
| fig.show() | |
| # or fig.update_traces(mode='lines+markers') for all traces |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment