()
| 1101 | |
| 1102 | @image_comparison(["hexbin_linear.png"], style="mpl20", remove_text=True) |
| 1103 | def 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 | |
| 1115 | def test_hexbin_log_clim(): |