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

Function test_annulus_setters

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

Source from the content-addressed store, hash-verified

827
828@image_comparison(['annulus.png'], style='mpl20')
829def test_annulus_setters():
830
831 fig, ax = plt.subplots()
832 cir = Annulus((0., 0.), 0.2, 0.01, fc='g') # circular annulus
833 ell = Annulus((0., 0.), (1, 2), 0.1, 0, # elliptical
834 fc='m', ec='b', alpha=0.5, hatch='xxx')
835 ax.add_patch(cir)
836 ax.add_patch(ell)
837 ax.set_aspect('equal')
838
839 cir.center = (0.5, 0.5)
840 cir.radii = 0.2
841 cir.width = 0.05
842
843 ell.center = (0.5, 0.5)
844 ell.radii = (0.5, 0.3)
845 ell.width = 0.1
846 ell.angle = 45
847
848
849@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…