@@ -1007,18 +1007,6 @@ def _central_N(self):
1007
1007
nb -= 1
1008
1008
return nb
1009
1009
1010
- def _extended_N (self ):
1011
- """
1012
- Based on the colormap and extend variable, return the
1013
- number of boundaries.
1014
- """
1015
- N = self .cmap .N + 1
1016
- if self .extend == 'both' :
1017
- N += 2
1018
- elif self .extend in ('min' , 'max' ):
1019
- N += 1
1020
- return N
1021
-
1022
1010
def _get_extension_lengths (self , frac , automin , automax , default = 0.05 ):
1023
1011
"""
1024
1012
Return the lengths of colorbar extensions.
@@ -1267,13 +1255,7 @@ def add_lines(self, CS, erase=True):
1267
1255
raise ValueError ('add_lines is only for a ContourSet of lines' )
1268
1256
tcolors = [c [0 ] for c in CS .tcolors ]
1269
1257
tlinewidths = [t [0 ] for t in CS .tlinewidths ]
1270
- # The following was an attempt to get the colorbar lines
1271
- # to follow subsequent changes in the contour lines,
1272
- # but more work is needed: specifically, a careful
1273
- # look at event sequences, and at how
1274
- # to make one object track another automatically.
1275
- #tcolors = [col.get_colors()[0] for col in CS.collections]
1276
- #tlinewidths = [col.get_linewidth()[0] for lw in CS.collections]
1258
+ # Wishlist: Make colorbar lines auto-follow changes in contour lines.
1277
1259
ColorbarBase .add_lines (self , CS .levels , tcolors , tlinewidths ,
1278
1260
erase = erase )
1279
1261
0 commit comments