Skip to content

Commit 4a2222c

Browse files
Merge pull request matplotlib#30985 from rcomer/numpy-shape
MNT: do not assign a numpy array shape
2 parents d1da6fb + 000f898 commit 4a2222c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,9 +2332,8 @@ def test_pcolor_regression(pd):
23322332

23332333
time_axis, y_axis = np.meshgrid(times, y_vals)
23342334
shape = (len(y_vals) - 1, len(times) - 1)
2335-
z_data = np.arange(shape[0] * shape[1])
2335+
z_data = np.arange(shape[0] * shape[1]).reshape(shape)
23362336

2337-
z_data.shape = shape
23382337
try:
23392338
register_matplotlib_converters()
23402339

0 commit comments

Comments
 (0)