MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_aitoff_proj

Function test_aitoff_proj

lib/matplotlib/tests/test_axes.py:958–970  ·  view source on GitHub ↗

Test aitoff projection ref.: https://github.com/matplotlib/matplotlib/pull/14451

()

Source from the content-addressed store, hash-verified

956
957@image_comparison(['aitoff_proj.png'], remove_text=True, style='mpl20')
958def 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')

Callers

nothing calls this directly

Calls 3

subplotsMethod · 0.45
gridMethod · 0.45
plotMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…