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

Function test_autoscale_arc

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

Source from the content-addressed store, hash-verified

928@image_comparison(["autoscale_arc"], extensions=['png', 'svg'],
929 style="mpl20", remove_text=True)
930def test_autoscale_arc():
931 fig, axs = plt.subplots(1, 3, figsize=(4, 1))
932 arc_lists = (
933 [Arc((0, 0), 1, 1, theta1=0, theta2=90)],
934 [Arc((0.5, 0.5), 1.5, 0.5, theta1=10, theta2=20)],
935 [Arc((0.5, 0.5), 1.5, 0.5, theta1=10, theta2=20),
936 Arc((0.5, 0.5), 2.5, 0.5, theta1=110, theta2=120),
937 Arc((0.5, 0.5), 3.5, 0.5, theta1=210, theta2=220),
938 Arc((0.5, 0.5), 4.5, 0.5, theta1=310, theta2=320)])
939
940 for ax, arcs in zip(axs, arc_lists):
941 for arc in arcs:
942 ax.add_patch(arc)
943 ax.autoscale()
944
945
946@check_figures_equal(extensions=["png", 'svg', 'pdf', 'eps'])

Callers

nothing calls this directly

Calls 4

ArcClass · 0.90
add_patchMethod · 0.80
subplotsMethod · 0.45
autoscaleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…