| 928 | @image_comparison(["autoscale_arc"], extensions=['png', 'svg'], |
| 929 | style="mpl20", remove_text=True) |
| 930 | def 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']) |