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

Function test_transform_rotates_text

lib/matplotlib/tests/test_text.py:779–785  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

777
778
779def test_transform_rotates_text():
780 ax = plt.gca()
781 transform = mtransforms.Affine2D().rotate_deg(30)
782 text = ax.text(0, 0, 'test', transform=transform,
783 transform_rotates_text=True)
784 result = text.get_rotation()
785 assert_almost_equal(result, 30)
786
787
788def test_update_mutate_input():

Callers

nothing calls this directly

Calls 4

gcaMethod · 0.80
rotate_degMethod · 0.80
textMethod · 0.45
get_rotationMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…