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

Hi,

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!