MCPcopy
hub / github.com/matplotlib/matplotlib / get_subplotspec

Method get_subplotspec

lib/matplotlib/axes/_base.py:842–844  ·  view source on GitHub ↗

Return the `.SubplotSpec` associated with the subplot, or None.

(self)

Source from the content-addressed store, hash-verified

840 return f"<{self.__class__.__name__}: " + ", ".join(fields) + ">"
841
842 def get_subplotspec(self):
843 """Return the `.SubplotSpec` associated with the subplot, or None."""
844 return self._subplotspec
845
846 def set_subplotspec(self, subplotspec):
847 """Set the `.SubplotSpec`. associated with the subplot."""

Callers 15

_make_twin_axesMethod · 0.95
compress_fixed_aspectFunction · 0.45
make_layout_marginsFunction · 0.45
match_submerged_marginsFunction · 0.45
get_cb_parent_spansFunction · 0.45
reposition_axesFunction · 0.45
updateMethod · 0.45
autofmt_xdateMethod · 0.45
add_subplotMethod · 0.45
colorbarMethod · 0.45
subplots_adjustMethod · 0.45

Calls

no outgoing calls

Tested by 5

test_subplotspec_argsFunction · 0.36
test_get_gridspecFunction · 0.36
test_subplot_key_hashFunction · 0.36
test_reused_gridspecFunction · 0.36