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

Method colspan

lib/matplotlib/gridspec.py:638–644  ·  view source on GitHub ↗

The columns spanned by this subplot, as a `range` object.

(self)

Source from the content-addressed store, hash-verified

636
637 @property
638 def colspan(self):
639 """The columns spanned by this subplot, as a `range` object."""
640 ncols = self.get_gridspec().ncols
641 # We explicitly support num2 referring to a column on num1's *left*, so
642 # we must sort the column indices here so that the range makes sense.
643 c1, c2 = sorted([self.num1 % ncols, self.num2 % ncols])
644 return range(c1, c2 + 1)
645
646 def is_first_row(self):
647 return self.rowspan.start == 0

Callers

nothing calls this directly

Calls 1

get_gridspecMethod · 0.95

Tested by

no test coverage detected