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

Method __init__

lib/matplotlib/transforms.py:773–791  ·  view source on GitHub ↗

Parameters ---------- points : `~numpy.ndarray` A (2, 2) array of the form ``[[x0, y0], [x1, y1]]``.

(self, points, **kwargs)

Source from the content-addressed store, hash-verified

771 """
772
773 def __init__(self, points, **kwargs):
774 """
775 Parameters
776 ----------
777 points : `~numpy.ndarray`
778 A (2, 2) array of the form ``[[x0, y0], [x1, y1]]``.
779 """
780 super().__init__(**kwargs)
781 points = np.asarray(points, float)
782 if points.shape != (2, 2):
783 raise ValueError('Bbox points must be of the form '
784 '"[[x0, y0], [x1, y1]]".')
785 self._points = points
786 self._minpos = _default_minpos.copy()
787 self._ignore = True
788 # it is helpful in some contexts to know if the bbox is a
789 # default or has been mutated; we store the orig points to
790 # support the mutated methods
791 self._points_orig = self._points.copy()
792 if DEBUG:
793 ___init__ = __init__
794

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

_checkMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected