I want plotly.graph_objects.Heatmap to display data as squares. I set height and width but it doesn’t work when the number of columns is much higher than rows
Here example where it works well:
(rows 39, cols 32 => height 574, width 700)
Here squares start showing as rectangles:
(rows 18, cols 34 => height 370, width 700)
And here they’re closer to showing as lines than squares:
(rows 15, cols 42 => height 250, width 700)
I set height and width using:
layout = dict(
yaxis=...,
xaxis=...,
width=plot_width,
height=plot_height,
autosize=False
)
fig = go.Figure(data=data, layout=layout)
What am I doing wrong?