-1

I need to create an interactive scatter plot and need to use hue option ( AS USED IN SEABORN ). I'm using Plotly and cufflinks to create scatter but I'm unable to get hue option in it. Can anyone pls help.

1 Answers1

0
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
                 size='petal_length', hover_data=['petal_width'])
fig.show()

Plotly Documentation

See Color in px.scatter similar to hue.

ketan gangal
  • 33
  • 1
  • 8