ratio of plots
This commit is contained in:
9
app.py
9
app.py
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user