【发布时间】:2018-05-15 23:48:36
【问题描述】:
我尝试在 plotly 中绘制小提琴图,并观察到 plotly 根据宽度而不是每个类别的面积来缩放数据。这个比例参数可以在 seaborn 库中控制,但不能在 plotly 中控制。有没有办法像在seaborn中那样根据面积来缩放小提琴?
#plotly
fig = ff.create_violin(flats, data_header='rent', group_header='type', width =900, height=600, )
#seaborn
sns.violinplot(y='rent',x='type',data=flats,ax = axes, scale='area')
【问题讨论】: