MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_subplotspec

Method set_subplotspec

lib/matplotlib/axes/_base.py:846–849  ·  view source on GitHub ↗

Set the `.SubplotSpec`. associated with the subplot.

(self, subplotspec)

Source from the content-addressed store, hash-verified

844 return self._subplotspec
845
846 def set_subplotspec(self, subplotspec):
847 """Set the `.SubplotSpec`. associated with the subplot."""
848 self._subplotspec = subplotspec
849 self._set_position(subplotspec.get_position(self.get_figure(root=False)))
850
851 def get_gridspec(self):
852 """Return the `.GridSpec` associated with the subplot, or None."""

Callers 3

__init__Method · 0.95
removeMethod · 0.45
make_axes_gridspecFunction · 0.45

Calls 3

_set_positionMethod · 0.95
get_positionMethod · 0.45
get_figureMethod · 0.45

Tested by

no test coverage detected