Код: Выделить всё
ValueError: Number of rows must be a positive integer, not GridSpec(2, 1, height_ratios=[1, 3])[1:2, 0:1]
Код: Выделить всё
fig, ax = plt.subplots(figsize = (8,6))
gs = gridspec.GridSpec(2,1,height_ratios = [1,3])
Подробнее здесь: https://stackoverflow.com/questions/631 ... 2-1-height