We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1da6fb commit 000f898Copy full SHA for 000f898
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -2332,9 +2332,8 @@ def test_pcolor_regression(pd):
2332
2333
time_axis, y_axis = np.meshgrid(times, y_vals)
2334
shape = (len(y_vals) - 1, len(times) - 1)
2335
- z_data = np.arange(shape[0] * shape[1])
+ z_data = np.arange(shape[0] * shape[1]).reshape(shape)
2336
2337
- z_data.shape = shape
2338
try:
2339
register_matplotlib_converters()
2340
0 commit comments