Skip to content

Instantly share code, notes, and snippets.

@Ddedalus
Created December 8, 2019 22:00
Show Gist options
  • Select an option

  • Save Ddedalus/bc39da28ef1e7e7e3829e1994ae41752 to your computer and use it in GitHub Desktop.

Select an option

Save Ddedalus/bc39da28ef1e7e7e3829e1994ae41752 to your computer and use it in GitHub Desktop.
Plotly: markers on line plot with express
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