Fix height of chart

Hello,

I’m trying to fix the plot height (without considering the legend) but I only can fix the whole plot container and plotly decide of the size taken by the plot and the legend inside the container.

How can I decide the height of the graph and the legend takes the space it needs?

Thanks in advance.