@@ -1209,6 +1209,7 @@ def __init__(self, ax, mappable, **kwargs):
12091209 _add_disjoint_kwargs (kwargs , alpha = mappable .get_alpha ())
12101210 ColorbarBase .__init__ (self , ax , ** kwargs )
12111211
1212+ @cbook .deprecated ("3.3" , alternative = "update_normal" )
12121213 def on_mappable_changed (self , mappable ):
12131214 """
12141215 Update this colorbar to match the mappable's properties.
@@ -1249,9 +1250,8 @@ def update_normal(self, mappable):
12491250 """
12501251 Update solid patches, lines, etc.
12511252
1252- Unlike `.update_bruteforce`, this does not clear the axes. This is
1253- meant to be called when the norm of the image or contour plot to which
1254- this colorbar belongs changes.
1253+ This is meant to be called when the norm of the image or contour plot
1254+ to which this colorbar belongs changes.
12551255
12561256 If the norm on the mappable is different than before, this resets the
12571257 locator and formatter for the axis, so if these have been customized,
@@ -1274,6 +1274,7 @@ def update_normal(self, mappable):
12741274 self .add_lines (CS )
12751275 self .stale = True
12761276
1277+ @cbook .deprecated ("3.3" , alternative = "update_normal" )
12771278 def update_bruteforce (self , mappable ):
12781279 """
12791280 Destroy and rebuild the colorbar. This is
@@ -1684,7 +1685,7 @@ def colorbar_factory(cax, mappable, **kwargs):
16841685 else :
16851686 cb = Colorbar (cax , mappable , ** kwargs )
16861687
1687- cid = mappable .callbacksSM .connect ('changed' , cb .on_mappable_changed )
1688+ cid = mappable .callbacksSM .connect ('changed' , cb .update_normal )
16881689 mappable .colorbar = cb
16891690 mappable .colorbar_cid = cid
16901691
0 commit comments