[英]Plotting data points over a box plot with specific colors & jitter in plotly
[英]Adjust the amount of jitter for a Plotly strip plot?
為圖形更新啟用了抖動,盡管它不能在 plotly.express 中直接指定。 1.0 是最大值。 參考示例中啟用了抖動。
import plotly.express as px
df = px.data.tips()
fig = px.strip(df, x="total_bill", y="day",)
fig.update_traces(jitter=1.0)
fig.show()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.