@@ -1218,15 +1218,15 @@ def __init__(self, ax, mappable, **kwargs):
12181218 )
12191219 kwargs .setdefault (
12201220 'ticks' , ticker .FixedLocator (cs .levels , nbins = 10 ))
1221- ColorbarBase .__init__ (self , ax , ** kwargs )
1221+ super () .__init__ (ax , ** kwargs )
12221222 if not cs .filled :
12231223 self .add_lines (cs )
12241224 else :
12251225 if getattr (mappable .cmap , 'colorbar_extend' , False ) is not False :
12261226 kwargs .setdefault ('extend' , mappable .cmap .colorbar_extend )
12271227 if isinstance (mappable , martist .Artist ):
12281228 _add_disjoint_kwargs (kwargs , alpha = mappable .get_alpha ())
1229- ColorbarBase .__init__ (self , ax , ** kwargs )
1229+ super () .__init__ (ax , ** kwargs )
12301230
12311231 @cbook .deprecated ("3.3" , alternative = "update_normal" )
12321232 def on_mappable_changed (self , mappable ):
@@ -1256,8 +1256,7 @@ def add_lines(self, CS, erase=True):
12561256 tcolors = [c [0 ] for c in CS .tcolors ]
12571257 tlinewidths = [t [0 ] for t in CS .tlinewidths ]
12581258 # Wishlist: Make colorbar lines auto-follow changes in contour lines.
1259- ColorbarBase .add_lines (self , CS .levels , tcolors , tlinewidths ,
1260- erase = erase )
1259+ super ().add_lines (CS .levels , tcolors , tlinewidths , erase = erase )
12611260
12621261 def update_normal (self , mappable ):
12631262 """
@@ -1338,7 +1337,7 @@ def remove(self):
13381337 If the colorbar was created with ``use_gridspec=True`` the previous
13391338 gridspec is restored.
13401339 """
1341- ColorbarBase .remove (self )
1340+ super () .remove ()
13421341 self .mappable .callbacksSM .disconnect (self .mappable .colorbar_cid )
13431342 self .mappable .colorbar = None
13441343 self .mappable .colorbar_cid = None
@@ -1606,7 +1605,7 @@ def __init__(self, ax, mappable, **kw):
16061605 # so add a new attribute which will be a list of the
16071606 # colored patches in the colorbar
16081607 self .solids_patches = []
1609- Colorbar .__init__ (self , ax , mappable , ** kw )
1608+ super () .__init__ (ax , mappable , ** kw )
16101609
16111610 def _add_solids (self , X , Y , C ):
16121611 """
0 commit comments