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

Function test_arc_negative_full_circle

lib/matplotlib/tests/test_path.py:529–534  ·  view source on GitHub ↗
(theta1, theta2)

Source from the content-addressed store, hash-verified

527@pytest.mark.parametrize('theta1, theta2', [(0, -360), (0, -720), (360, 0),
528 (10, -350)])
529def test_arc_negative_full_circle(theta1, theta2):
530 # An exact negative multiple of 360 must draw a complete circle.
531 # The result is the same complete circle as the equivalent positive turn
532 # starting from *theta1* (so the assertion holds for non-cardinal starts).
533 np.testing.assert_allclose(Path.arc(theta1, theta2).vertices,
534 Path.arc(theta1, theta1 + 360).vertices)
535
536
537def test_arc_unwrap_partial_turn():

Callers

nothing calls this directly

Calls 1

arcMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…