Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要创建一个交互式散点图,并且需要使用色调选项(在 SEABORN 中使用)。我正在使用 Plotly 和袖扣来创建散点图,但我无法在其中获得色调选项。任何人都可以帮忙。
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()
绘图文档
请参阅px.scatter 中的颜色,类似于 hue。