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

Function test_arc_in_collection

lib/matplotlib/tests/test_patches.py:947–955  ·  view source on GitHub ↗
(fig_test, fig_ref)

Source from the content-addressed store, hash-verified

945
946@check_figures_equal(extensions=["png", 'svg', 'pdf', 'eps'])
947def test_arc_in_collection(fig_test, fig_ref):
948 arc1 = Arc([.5, .5], .5, 1, theta1=0, theta2=60, angle=20)
949 arc2 = Arc([.5, .5], .5, 1, theta1=0, theta2=60, angle=20)
950 col = mcollections.PatchCollection(patches=[arc2], facecolors='none',
951 edgecolors='k')
952 ax_ref = fig_ref.subplots()
953 ax_ref.add_patch(arc1)
954 ax_ref.autoscale_view()
955 fig_test.subplots().add_collection(col)
956
957
958@check_figures_equal(extensions=["png", 'svg', 'pdf', 'eps'])

Callers

nothing calls this directly

Calls 5

ArcClass · 0.90
add_patchMethod · 0.80
add_collectionMethod · 0.80
subplotsMethod · 0.45
autoscale_viewMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…