Skip to content

Commit ecfba88

Browse files
efiringanntzer
authored andcommitted
Fix test_colorbar_single_scatter.
1 parent 2b8aaa6 commit ecfba88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/tests/test_colorbar.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,8 @@ def test_colorbar_single_scatter():
197197
# the norm scaling within the colorbar must ensure a
198198
# finite range, otherwise a zero denominator will occur in _locate.
199199
plt.figure()
200-
x = np.arange(4)
201-
y = x.copy()
202-
z = np.ma.masked_greater(np.arange(50, 54), 50)
200+
x = y = [0]
201+
z = [50]
203202
cmap = plt.get_cmap('jet', 16)
204203
cs = plt.scatter(x, y, z, c=z, cmap=cmap)
205204
plt.colorbar(cs)

0 commit comments

Comments
 (0)