Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4dbc220 + 1749c2e commit 7046022Copy full SHA for 7046022
1 file changed
lib/matplotlib/contour.py
@@ -441,7 +441,7 @@ def calc_label_rot_and_inline(self, slc, ind, lw, lc=None, spacing=5):
441
# Actually break contours
442
if closed:
443
# This will remove contour if shorter than label
444
- if np.all(I != -1):
+ if all(i != -1 for i in I):
445
nlc.append(np.row_stack([xy2, lc[I[1]:I[0]+1], xy1]))
446
else:
447
# These will remove pieces of contour if they have length zero
0 commit comments