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

Method __init__

lib/matplotlib/transforms.py:1139–1156  ·  view source on GitHub ↗

Parameters ---------- bbox : `Bbox` transform : `Transform`

(self, bbox, transform, **kwargs)

Source from the content-addressed store, hash-verified

1137 """
1138
1139 def __init__(self, bbox, transform, **kwargs):
1140 """
1141 Parameters
1142 ----------
1143 bbox : `Bbox`
1144 transform : `Transform`
1145 """
1146 _api.check_isinstance(BboxBase, bbox=bbox)
1147 _api.check_isinstance(Transform, transform=transform)
1148 if transform.input_dims != 2 or transform.output_dims != 2:
1149 raise ValueError(
1150 "The input and output dimensions of 'transform' must be 2")
1151
1152 super().__init__(**kwargs)
1153 self._bbox = bbox
1154 self._transform = transform
1155 self.set_children(bbox, transform)
1156 self._points = None
1157
1158 __str__ = _make_str_method("_bbox", "_transform")
1159

Callers

nothing calls this directly

Calls 2

set_childrenMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected