Ошибка при взаимодействии с графиком plotly. Не меняется row_height
fig = sub_make(2) # subplots 2row x 1col
import time
fig.add_trace(
go.Line(y=[1,2,3,4,5,6]),row=2,col=1)
fig.add_trace(
go.Line(y=[1,2,3,4,5,6][::-1]),row=1,col=1)
steps = []
for i in range(100):
step = dict(
method="restyle",
args=[{"row_heights": [i/100, 1-i/100]}]
)
steps.append(step)
sliders = [dict(
active=50,
currentvalue={"prefix": 'heigh:'},
pad={"l": 100},
steps=steps
)]
fig.update_layout(
sliders=sliders,
template='plotly_dark'
)
fig.show()
при взаимодействии со слайдером, row_height не меняется.