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

Function test_large_arc

lib/matplotlib/tests/test_patches.py:746–762  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

744
745@image_comparison(["large_arc.svg"], style="mpl20")
746def test_large_arc():
747 fig, (ax1, ax2) = plt.subplots(1, 2)
748 x = 210
749 y = -2115
750 diameter = 4261
751 for ax in [ax1, ax2]:
752 a = Arc((x, y), diameter, diameter, lw=2, color='k')
753 ax.add_patch(a)
754 ax.set_axis_off()
755 ax.set_aspect('equal')
756 # force the high accuracy case
757 ax1.set_xlim(7, 8)
758 ax1.set_ylim(5, 6)
759
760 # force the low accuracy case
761 ax2.set_xlim(-25000, 18000)
762 ax2.set_ylim(-20000, 6600)
763
764
765@image_comparison(["all_quadrants_arcs.svg"], style="mpl20")

Callers

nothing calls this directly

Calls 7

ArcClass · 0.90
add_patchMethod · 0.80
subplotsMethod · 0.45
set_axis_offMethod · 0.45
set_aspectMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…