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

Method get_geometry

lib/matplotlib/gridspec.py:620–629  ·  view source on GitHub ↗

Return the subplot geometry as tuple ``(n_rows, n_cols, start, stop)``. The indices *start* and *stop* define the range of the subplot within the `GridSpec`. *stop* is inclusive (i.e. for a single cell ``start == stop``).

(self)

Source from the content-addressed store, hash-verified

618 return self._gridspec
619
620 def get_geometry(self):
621 """
622 Return the subplot geometry as tuple ``(n_rows, n_cols, start, stop)``.
623
624 The indices *start* and *stop* define the range of the subplot within
625 the `GridSpec`. *stop* is inclusive (i.e. for a single cell
626 ``start == stop``).
627 """
628 rows, cols = self.get_gridspec().get_geometry()
629 return rows, cols, self.num1, self.num2
630
631 @property
632 def rowspan(self):

Callers 6

get_margin_from_paddingFunction · 0.45
get_positionMethod · 0.45
get_tight_layout_figureFunction · 0.45
triggerMethod · 0.45
test_subplot_key_hashFunction · 0.45

Calls 1

get_gridspecMethod · 0.95

Tested by 1

test_subplot_key_hashFunction · 0.36