Use fig.add_gridspec to make a 2×3 grid whose first column is twice as wide as…
Matplotlib · from Uneven layouts
plt.subplot_mosaicfig.add_gridspecwidth_ratiosfig.add_subplotfig.add_axesPutting the kettle on…
Starting up…
Exercise 3
Use fig.add_gridspec to make a 2×3 grid whose first column is twice as wide as the others, then add one Axes spanning the whole top row. Return [gs.get_width_ratios(), len(fig.axes)].
your answer
stuck? the lesson behind it
Uneven layouts
Draw the arrangement you want and get back Axes named after it