How do i make sublots with fixed absolute row height and dynamic total figure height?


I want to create a plot with a dynamic number of subplots. I want to specify the size (in pixels) of each row, and I want the total figure height to scale based on the number of rows.

Here is a sketch describing the expected behavior:

I can set the total height of the figure manually, but then I need to figure out all the margins and paddings and spaces for axis labels and titles and whatnot, in order to compute the required figure height that will make all the subplots the height I want.

Thanks a lot in advance!

1 Like

I agree that would be a great feature. there is the row_heights argument in make_subplots, but that only changes the relative height. The absolute height must still be provided separately. I run into this quite often.