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

Function test_annulus

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

Source from the content-addressed store, hash-verified

815
816@image_comparison(['annulus.png'], style='mpl20')
817def test_annulus():
818
819 fig, ax = plt.subplots()
820 cir = Annulus((0.5, 0.5), 0.2, 0.05, fc='g') # circular annulus
821 ell = Annulus((0.5, 0.5), (0.5, 0.3), 0.1, 45, # elliptical
822 fc='m', ec='b', alpha=0.5, hatch='xxx')
823 ax.add_patch(cir)
824 ax.add_patch(ell)
825 ax.set_aspect('equal')
826
827
828@image_comparison(['annulus.png'], style='mpl20')

Callers

nothing calls this directly

Calls 4

AnnulusClass · 0.90
add_patchMethod · 0.80
subplotsMethod · 0.45
set_aspectMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…