athlonshi
athlonshi

Reputation: 1821

Change plotly marker shape/symbol based on column value

Is there any straightforward way to change plotly marker shape/symbol attribute based on column values? It is quite easy for the color attribute.

Upvotes: 3

Views: 4782

Answers (1)

nicolaskruchten
nicolaskruchten

Reputation: 27370

If you use Plotly Express it’s just a matter of px.scatter(df, x='colname1', y='colname2', symbol='colname3')

Upvotes: 8

Related Questions