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.
1 parent 4d26d74 commit 8589672Copy full SHA for 8589672
lib/matplotlib/contour.py
@@ -1254,11 +1254,11 @@ def _process_colors(self):
1254
i0, i1 = 0, len(self.levels)
1255
if self.filled:
1256
i1 -= 1
1257
- # Out of range indices for over and under:
1258
- if self.extend in ('both', 'min'):
1259
- i0 = -1
1260
- if self.extend in ('both', 'max'):
1261
- i1 += 1
+ # Out of range indices for over and under:
+ if self.extend in ('both', 'min'):
+ i0 -= 1
+ if self.extend in ('both', 'max'):
+ i1 += 1
1262
self.cvalues = list(range(i0, i1))
1263
self.set_norm(colors.NoNorm())
1264
else:
0 commit comments