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

Function test_thetalim_valid_invalid

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

Source from the content-addressed store, hash-verified

381
382
383def test_thetalim_valid_invalid():
384 ax = plt.subplot(projection='polar')
385 ax.set_thetalim(0, 2 * np.pi) # doesn't raise.
386 ax.set_thetalim(thetamin=800, thetamax=440) # doesn't raise.
387 with pytest.raises(ValueError,
388 match='angle range must be less than a full circle'):
389 ax.set_thetalim(0, 3 * np.pi)
390 with pytest.raises(ValueError,
391 match='angle range must be less than a full circle'):
392 ax.set_thetalim(thetamin=800, thetamax=400)
393
394
395def test_thetalim_args():

Callers

nothing calls this directly

Calls 1

set_thetalimMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…