Код: Выделить всё
from matplotlib import pyplot as plt
fig = plt.figure()
grid = fig.add_gridspec(2,2)
Рассмотрим теперь следующий код
Код: Выделить всё
from matplotlib import pyplot as plt
fig = plt.figure()
fig.add_gridspec(2,2)
Код: Выделить всё
axes = fig.add_subplot(grid[0])
grid = axes.get_gridspec()
Подробнее здесь: https://stackoverflow.com/questions/745 ... dding-axes