ratio of plots

This commit is contained in:
Daniel Weschke
2026-05-04 10:24:00 +02:00
parent 196cb7d507
commit 91b707a1ff

9
app.py
View File

@@ -198,7 +198,8 @@ def index():
# initialize objects
pio.templates.default = 'plotly_dark'
ELM['fig'] = prs.FigureResampler(pgo.Figure()).set_subplots(
rows=2, cols=1, specs = [[{'t': 0.0}], [{}]], shared_xaxes=True,
rows=2, cols=1, row_heights=[0.7, 0.3],
specs = [[{'t': 0.0}], [{}]], shared_xaxes=True,
vertical_spacing=0.025)
# render header
@@ -280,6 +281,12 @@ def index():
yaxis2_title='Power, %',
yaxis2_range=[0, 100],
xaxis2_title='Time',
legend={
'orientation': 'h',
'xanchor': 'left',
'yanchor': 'bottom',
'y': 1.01,
},
)
ELM['fig'].update_yaxes(
row=1, col=1, range=[ELM['number_temp_min'].value, ELM['number_temp_max'].value],