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

Function test_hexbin_linear

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

Source from the content-addressed store, hash-verified

1101
1102@image_comparison(["hexbin_linear.png"], style="mpl20", remove_text=True)
1103def test_hexbin_linear():
1104 # Issue #21165
1105 np.random.seed(19680801)
1106 n = 100000
1107 x = np.random.standard_normal(n)
1108 y = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n)
1109
1110 fig, ax = plt.subplots()
1111 ax.hexbin(x, y, gridsize=(10, 5), marginals=True,
1112 reduce_C_function=np.sum)
1113
1114
1115def test_hexbin_log_clim():

Callers

nothing calls this directly

Calls 2

hexbinMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…