简体   繁体   中英

Hue in Plotly and cufflinks

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM