GridSpec.get_grid_positions

GridSpec.get_grid_positions(figure=None)[source]

Return the subplot grid positions allowing for variable inter-subplot spacing and using physical units for the spacing terms. The resulting positions include “hidden” panel rows and columns.

Note

The physical units for positioning grid cells are converted from em-widths to inches when the GridSpec is instantiated. This means that subsequent changes to rc['font.size'] will have no effect on the spaces. This is consistent with rc['font.size'] having no effect on already-instantiated figures.