[英]Swarm plots in Plotly / plotly.express
To my knowledge, no, but there is an option points="all"
to the px.box
function that would add the swarm plot to the left side of the box.据我所知,没有,但是px.box
function 有一个选项points="all"
可以将群 plot 添加到框的左侧。 The example below is taken from the plotly documentation page about boxplot下面的示例取自plotly 文档页面关于箱线图
import plotly.express as px
df = px.data.tips()
fig = px.box(df, x="time", y="total_bill", points="all")
fig.show()
Output: Output:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.