Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f08efd4

Browse files
author
Phil Elson
committed
Quick fix to contour labeling.
1 parent 0b27e66 commit f08efd4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ def clabel(self, *args, **kwargs):
151151
self.labelManual=kwargs.get('manual',False)
152152

153153
self.rightside_up = kwargs.get('rightside_up', True)
154-
155154
if len(args) == 0:
156155
levels = self.levels
157-
indices = range(len(levels))
156+
indices = range(len(levels)-1)
158157
elif len(args) == 1:
159158
levlabs = list(args[0])
160159
indices, levels = [], []

0 commit comments

Comments
 (0)