Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a38be52

Browse files
committed
hexbin linear
1 parent e5098e0 commit a38be52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,10 +1008,10 @@ def test_hexbin_log():
10081008
@image_comparison(["hexbin_linear.png"], style="mpl20", remove_text=True)
10091009
def test_hexbin_linear():
10101010
# Issue #21165
1011-
np.random.seed(19680801)
1011+
rng = np.random.default_rng(seed=19680801)
10121012
n = 100000
1013-
x = np.random.standard_normal(n)
1014-
y = 2.0 + 3.0 * x + 4.0 * np.random.standard_normal(n)
1013+
x = rng.standard_normal(n)
1014+
y = 2.0 + 3.0 * x + 4.0 * rng.standard_normal(n)
10151015

10161016
fig, ax = plt.subplots()
10171017
ax.hexbin(x, y, gridsize=(10, 5), marginals=True,

0 commit comments

Comments
 (0)