How can I reduce the space in between the legend traces:
I tried all parameters specified here: https://plotly.com/python/reference/layout/#layout-showlegend
No luck. Same applies for horizontal layout.
How can I reduce the space in between the legend traces:
I tried all parameters specified here: https://plotly.com/python/reference/layout/#layout-showlegend
No luck. Same applies for horizontal layout.
Hi there,
Try adjusting the tracegroupgap
fig.update_layout(legend_tracegroupgap=5)
Default value is 10
this doesnβt work if legends are same group.
Indentation helped me
layout={{
legend: {
indentation: 30, // defaults to 0. needs to be greater than or equal to -15
},
}}