Skip to content

Commit 000f898

Browse files
committed
MNT: do not assign a numpy array shape
1 parent d1da6fb commit 000f898

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)