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

Function test_polar_neg_theta_lims

lib/matplotlib/tests/test_polar.py:532–537  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

530
531
532def test_polar_neg_theta_lims():
533 fig = plt.figure()
534 ax = fig.add_subplot(projection='polar')
535 ax.set_thetalim(-np.pi, np.pi)
536 labels = [l.get_text() for l in ax.xaxis.get_ticklabels()]
537 assert labels == ['-180°', '-135°', '-90°', '-45°', '0°', '45°', '90°', '135°']
538
539
540@pytest.mark.parametrize("order", ["before", "after"])

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
add_subplotMethod · 0.80
set_thetalimMethod · 0.80
get_ticklabelsMethod · 0.80
get_textMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…