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

Function test_hist2d_transpose

lib/matplotlib/tests/test_axes.py:2894–2904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2892
2893@image_comparison(['hist2d_transpose.png'], remove_text=True, style='mpl20')
2894def test_hist2d_transpose():
2895 # Remove this line when this test image is regenerated.
2896 plt.rcParams['pcolormesh.snap'] = False
2897
2898 np.random.seed(0)
2899 # make sure the output from np.histogram is transposed before
2900 # passing to pcolorfast
2901 x = np.array([5]*100)
2902 y = np.random.randn(100)-2
2903 fig, ax = plt.subplots()
2904 ax.hist2d(x, y, bins=10, rasterized=True)
2905
2906
2907def test_hist2d_density():

Callers

nothing calls this directly

Calls 2

hist2dMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…