()
| 827 | |
| 828 | @image_comparison(['annulus.png'], style='mpl20') |
| 829 | def 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') |
nothing calls this directly
no test coverage detected
searching dependent graphs…