GridSpec.update

GridSpec.update(**kwargs)[source]

Updates the width ratios, height ratios, gridspec margins, and spacing allocated between subplot rows and columns.

The default update tries to update positions for axes on all active figures – but this can fail after successive figure edits if it has been removed from the figure manager. So, we explicitly require that the gridspec is dedicated to a particular Figure instance, and just edit axes positions for axes on that instance.