MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / __init__

Method __init__

site-packages/matplotlib/transforms.py:2570–2583  ·  view source on GitHub ↗

Create a new :class:`BboxTransform` that linearly transforms points from *boxin* to *boxout*.

(self, boxin, boxout, **kwargs)

Source from the content-addressed store, hash-verified

2568 is_separable = True
2569
2570 def __init__(self, boxin, boxout, **kwargs):
2571 """
2572 Create a new :class:`BboxTransform` that linearly transforms
2573 points from *boxin* to *boxout*.
2574 """
2575 if not boxin.is_bbox or not boxout.is_bbox:
2576 raise ValueError("'boxin' and 'boxout' must be bbox")
2577
2578 Affine2DBase.__init__(self, **kwargs)
2579 self._boxin = boxin
2580 self._boxout = boxout
2581 self.set_children(boxin, boxout)
2582 self._mtx = None
2583 self._inverted = None
2584
2585 def __str__(self):
2586 return ("{}(\n"

Callers

nothing calls this directly

Calls 2

set_childrenMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected