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

Method __str__

lib/matplotlib/transforms.py:1965–1970  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1963 _base_str = _make_str_method("_mtx")
1964
1965 def __str__(self):
1966 return (self._base_str()
1967 if (self._mtx != np.diag(np.diag(self._mtx))).any()
1968 else f"Affine2D().scale({self._mtx[0, 0]}, {self._mtx[1, 1]})"
1969 if self._mtx[0, 0] != self._mtx[1, 1]
1970 else f"Affine2D().scale({self._mtx[0, 0]})")
1971
1972 @staticmethod
1973 def from_values(a, b, c, d, e, f):

Callers

nothing calls this directly

Calls 1

diagMethod · 0.80

Tested by

no test coverage detected