【发布时间】:2020-11-25 01:39:05
【问题描述】:
我想将图例放在子图位置。有什么解决办法吗?如果您能提供任何类型的建议,那就太好了。
您可以在此处找到代码: https://github.com/sjshtura/EWL-DUE/blob/master/figure%207.ipynb
谢谢
【问题讨论】:
标签: python python-3.x legend subplot plotly-python
我想将图例放在子图位置。有什么解决办法吗?如果您能提供任何类型的建议,那就太好了。
您可以在此处找到代码: https://github.com/sjshtura/EWL-DUE/blob/master/figure%207.ipynb
谢谢
【问题讨论】:
标签: python python-3.x legend subplot plotly-python
我的解决方案是使用图例的固定定位来实现这一点。对此解决方案不满意,因为自动换行和其他动态定位不起作用,所以如果有人有更好的答案,请告诉我。
fig.update_layout(..., legend=dict(...,xanchor='center',x=0.5,yanchor='top',y=0.36))
【讨论】: