Fixing bug #5645 seems to lead to another issue now.
Following call now ignores the HEIGHT parameter for the Plotly chart:
fig = px.line(data, height=height, width=width)
fig.update_xaxes(visible=False, fixedrange=True)
fig.update_yaxes(visible=False, fixedrange=True)
fig.update_layout(annotations=[], overwrite=True)
fig.update_layout(
showlegend=False,
plot_bgcolor="white",
margin=dict(t=10,l=10,b=10,r=10)
)
fig.update_traces(line_color = line_color)