(fig_test, fig_ref)
| 115 | |
| 116 | @check_figures_equal() |
| 117 | def test_polar_units_1(fig_test, fig_ref): |
| 118 | import matplotlib.testing.jpl_units as units |
| 119 | units.register() |
| 120 | xs = [30.0, 45.0, 60.0, 90.0] |
| 121 | ys = [1.0, 2.0, 3.0, 4.0] |
| 122 | |
| 123 | plt.figure(fig_test) |
| 124 | plt.polar([x * units.deg for x in xs], ys) |
| 125 | |
| 126 | ax = fig_ref.add_subplot(projection="polar") |
| 127 | ax.plot(np.deg2rad(xs), ys) |
| 128 | ax.set(xlabel="deg") |
| 129 | |
| 130 | |
| 131 | @check_figures_equal() |
nothing calls this directly
no test coverage detected
searching dependent graphs…