()
| 110 | @image_comparison(['plot_masked_units.png'], remove_text=True, style='mpl20', |
| 111 | tol=0 if platform.machine() == 'x86_64' else 0.02) |
| 112 | def test_plot_masked_units(): |
| 113 | data = np.linspace(-5, 5) |
| 114 | data_masked = np.ma.array(data, mask=(data > -2) & (data < 2)) |
| 115 | data_masked_units = Quantity(data_masked, 'meters') |
| 116 | |
| 117 | fig, ax = plt.subplots() |
| 118 | ax.plot(data_masked_units) |
| 119 | |
| 120 | |
| 121 | def test_empty_set_limits_with_units(quantity_converter): |