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

Skip to content

Commit 60b91bd

Browse files
committed
FIX: y scaling correction
1 parent ee7ce5f commit 60b91bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/mplot3d/tests/test_axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_gaussian_hexs(mu=(0, 0),
5959
np.random.seed(seed)
6060
xy = np.random.multivariate_normal(mu, sigma, n)
6161
xyz, (xmin, xmax), (ymin, ymax), (nx, ny) = hexbin(*xy.T, gridsize=res)
62-
dxy = np.array([(xmax - xmin) / nx, (ymax - ymin) / ny]) * 0.9
62+
dxy = np.array([(xmax - xmin) / nx, (ymax - ymin) / ny / np.sqrt(3)]) * 0.9
6363
return *xyz, dxy
6464

6565

0 commit comments

Comments
 (0)