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

Function test_va_for_angle

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

Source from the content-addressed store, hash-verified

1145
1146
1147def test_va_for_angle():
1148 text_instance = Text()
1149 angles = np.arange(0, 360.1, 0.1)
1150 for angle in angles:
1151 alignment = text_instance._va_for_angle(angle)
1152 assert alignment in ['center', 'top', 'baseline']
1153
1154
1155@image_comparison(['xtick_rotation_mode.png'], remove_text=False, style='mpl20')

Callers

nothing calls this directly

Calls 2

_va_for_angleMethod · 0.95
TextClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…