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

Class _BlendedMixin

lib/matplotlib/transforms.py:2213–2228  ·  view source on GitHub ↗

Common methods for `BlendedGenericTransform` and `BlendedAffine2D`.

Source from the content-addressed store, hash-verified

2211
2212
2213class _BlendedMixin:
2214 """Common methods for `BlendedGenericTransform` and `BlendedAffine2D`."""
2215
2216 def __eq__(self, other):
2217 if isinstance(other, (BlendedAffine2D, BlendedGenericTransform)):
2218 return (self._x == other._x) and (self._y == other._y)
2219 elif self._x == self._y:
2220 return self._x == other
2221 else:
2222 return NotImplemented
2223
2224 def contains_branch_separately(self, transform):
2225 return (self._x.contains_branch(transform),
2226 self._y.contains_branch(transform))
2227
2228 __str__ = _make_str_method("_x", "_y")
2229
2230
2231class BlendedGenericTransform(_BlendedMixin, Transform):

Callers

nothing calls this directly

Calls 1

_make_str_methodFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…