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

Method test_clear

lib/matplotlib/tests/test_transforms.py:40–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 assert_array_equal(trans.get_matrix(), [[42, 0, 0], [0, 1, 0], [0, 0, 1]])
39
40 def test_clear(self):
41 a = Affine2D(np.random.rand(3, 3) + 5) # Anything non-identity.
42 a.clear()
43 assert_array_equal(a.get_matrix(), [[1, 0, 0], [0, 1, 0], [0, 0, 1]])
44
45 def test_rotate(self):
46 r_pi_2 = Affine2D().rotate(np.pi / 2)

Callers

nothing calls this directly

Calls 3

clearMethod · 0.95
get_matrixMethod · 0.95
Affine2DClass · 0.90

Tested by

no test coverage detected