How do you hide traces initially in Plotly Express?

So all of the go attributes can be applied to any figure (created with go or px) with the update_traces methods on fig. So you can do something like:

px.scatter(…).update_traces(visible=‘legendonly’)
1 Like