Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
MNT: do not assign a numpy array shape
  • Loading branch information
rcomer committed Jan 17, 2026
commit 000f898ab7af73e018e6616807ee79d1a4fe2e4f
3 changes: 1 addition & 2 deletions lib/matplotlib/tests/test_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2332,9 +2332,8 @@ def test_pcolor_regression(pd):

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

z_data.shape = shape
try:
register_matplotlib_converters()

Expand Down