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

Method clear

lib/matplotlib/transforms.py:2023–2030  ·  view source on GitHub ↗

Reset the underlying matrix to the identity transform.

(self)

Source from the content-addressed store, hash-verified

2021 self.invalidate()
2022
2023 def clear(self):
2024 """
2025 Reset the underlying matrix to the identity transform.
2026 """
2027 # A bit faster than np.identity(3).
2028 self._mtx = IdentityTransform._mtx.copy()
2029 self.invalidate()
2030 return self
2031
2032 def rotate(self, theta):
2033 """

Callers 1

test_clearMethod · 0.95

Calls 2

copyMethod · 0.45
invalidateMethod · 0.45

Tested by 1

test_clearMethod · 0.76