Test aitoff projection ref.: https://github.com/matplotlib/matplotlib/pull/14451
()
| 956 | |
| 957 | @image_comparison(['aitoff_proj.png'], remove_text=True, style='mpl20') |
| 958 | def test_aitoff_proj(): |
| 959 | """ |
| 960 | Test aitoff projection ref.: |
| 961 | https://github.com/matplotlib/matplotlib/pull/14451 |
| 962 | """ |
| 963 | x = np.linspace(-np.pi, np.pi, 20) |
| 964 | y = np.linspace(-np.pi / 2, np.pi / 2, 20) |
| 965 | X, Y = np.meshgrid(x, y) |
| 966 | |
| 967 | fig, ax = plt.subplots(figsize=(8, 4.2), |
| 968 | subplot_kw=dict(projection="aitoff")) |
| 969 | ax.grid() |
| 970 | ax.plot(X.flat, Y.flat, 'o', markersize=4) |
| 971 | |
| 972 | |
| 973 | @image_comparison(['axvspan_epoch.png'], style='mpl20') |