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

Method __add__

lib/matplotlib/transforms.py:1392–1401  ·  view source on GitHub ↗

Compose two transforms together so that *self* is followed by *other*. ``A + B`` returns a transform ``C`` so that ``C.transform(x) == B.transform(A.transform(x))``.

(self, other)

Source from the content-addressed store, hash-verified

1390 cls.has_inverse = True
1391
1392 def __add__(self, other):
1393 """
1394 Compose two transforms together so that *self* is followed by *other*.
1395
1396 ``A + B`` returns a transform ``C`` so that
1397 ``C.transform(x) == B.transform(A.transform(x))``.
1398 """
1399 return (composite_transform_factory(self, other)
1400 if isinstance(other, Transform) else
1401 NotImplemented)
1402
1403 # Equality is based on object identity for `Transform`s (so we don't
1404 # override `__eq__`), but some subclasses, such as TransformWrapper &

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected