There was an error while loading. Please reload this page.
2 parents 86a3c94 + ca9502e commit ef5d01aCopy full SHA for ef5d01a
1 file changed
lib/matplotlib/contour.py
@@ -440,7 +440,7 @@ def calc_label_rot_and_inline(self, slc, ind, lw, lc=None, spacing=5):
440
# Actually break contours
441
if closed:
442
# This will remove contour if shorter than label
443
- if np.all(I != -1):
+ if all(i != -1 for i in I):
444
nlc.append(np.row_stack([xy2, lc[I[1]:I[0]+1], xy1]))
445
else:
446
# These will remove pieces of contour if they have length zero
0 commit comments