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

Function test_arc_unwrap_partial_turn

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

Source from the content-addressed store, hash-verified

535
536
537def test_arc_unwrap_partial_turn():
538 # A span comfortably more than a whole number of turns (not near-integer)
539 # is unwrapped to the equivalent shortest arc within 360 degrees.
540 np.testing.assert_allclose(Path.arc(0, 410).vertices,
541 Path.arc(0, 50).vertices)
542 np.testing.assert_allclose(Path.arc(0, 540).vertices,
543 Path.arc(0, 180).vertices)
544 # A span a clear fraction of a degree past a full turn is the caller's
545 # explicit request and must NOT be snapped to a circle (tolerance guard).
546 np.testing.assert_allclose(Path.arc(0, 360.001).vertices,
547 Path.arc(0, 0.001).vertices)
548
549
550def test_disjoint_zero_length_segment():

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…