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

Method __init__

lib/matplotlib/transforms.py:1214–1241  ·  view source on GitHub ↗

Parameters ---------- bbox : `Bbox` The child bounding box to wrap. x0 : float or None The locked value for x0, or None to leave unlocked. y0 : float or None The locked value for y0, or None to leave unlocked. x1

(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs)

Source from the content-addressed store, hash-verified

1212 accordingly with the exception of the locked elements.
1213 """
1214 def __init__(self, bbox, x0=None, y0=None, x1=None, y1=None, **kwargs):
1215 """
1216 Parameters
1217 ----------
1218 bbox : `Bbox`
1219 The child bounding box to wrap.
1220
1221 x0 : float or None
1222 The locked value for x0, or None to leave unlocked.
1223
1224 y0 : float or None
1225 The locked value for y0, or None to leave unlocked.
1226
1227 x1 : float or None
1228 The locked value for x1, or None to leave unlocked.
1229
1230 y1 : float or None
1231 The locked value for y1, or None to leave unlocked.
1232
1233 """
1234 _api.check_isinstance(BboxBase, bbox=bbox)
1235 super().__init__(**kwargs)
1236 self._bbox = bbox
1237 self.set_children(bbox)
1238 self._points = None
1239 fp = [x0, y0, x1, y1]
1240 mask = [val is None for val in fp]
1241 self._locked_points = np.ma.array(fp, float, mask=mask).reshape((2, 2))
1242
1243 __str__ = _make_str_method("_bbox", "_locked_points")
1244

Callers

nothing calls this directly

Calls 2

set_childrenMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected