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

Method __init__

lib/mpl_toolkits/axes_grid1/inset_locator.py:90–109  ·  view source on GitHub ↗

Patch showing the shape bounded by a Bbox. Parameters ---------- bbox : `~matplotlib.transforms.Bbox` Bbox to use for the extents of this patch. **kwargs Patch properties. Valid arguments include: %(Patch:kwdoc)s

(self, bbox, **kwargs)

Source from the content-addressed store, hash-verified

88class BboxPatch(Patch):
89 @_docstring.interpd
90 def __init__(self, bbox, **kwargs):
91 """
92 Patch showing the shape bounded by a Bbox.
93
94 Parameters
95 ----------
96 bbox : `~matplotlib.transforms.Bbox`
97 Bbox to use for the extents of this patch.
98
99 **kwargs
100 Patch properties. Valid arguments include:
101
102 %(Patch:kwdoc)s
103 """
104 if "transform" in kwargs:
105 raise ValueError("transform should not be set")
106
107 kwargs["transform"] = IdentityTransform()
108 super().__init__(**kwargs)
109 self.bbox = bbox
110
111 def get_path(self):
112 # docstring inherited

Callers 6

__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 1

IdentityTransformClass · 0.90

Tested by

no test coverage detected