@@ -177,7 +177,7 @@ def __init__(self, norm=None, cmap=None):
177177 #: The last colorbar associated with this ScalarMappable. May be None.
178178 self .colorbar = None
179179 self .callbacksSM = cbook .CallbackRegistry ()
180- self .update_dict = {'array' : False }
180+ self ._update_dict = {'array' : False }
181181
182182 def _scale_norm (self , norm , vmin , vmax ):
183183 """
@@ -279,7 +279,7 @@ def set_array(self, A):
279279 A : ndarray
280280 """
281281 self ._A = A
282- self .update_dict ['array' ] = True
282+ self ._update_dict ['array' ] = True
283283
284284 def get_array (self ):
285285 """Return the data array."""
@@ -386,30 +386,39 @@ def autoscale_None(self):
386386 self .norm .autoscale_None (self ._A )
387387 self .changed ()
388388
389- def add_checker (self , checker ):
389+ def _add_checker (self , checker ):
390390 """
391391 Add an entry to a dictionary of boolean flags
392392 that are set to True when the mappable is changed.
393393 """
394- self .update_dict [checker ] = False
394+ self ._update_dict [checker ] = False
395395
396- def check_update (self , checker ):
397- """
398- If mappable has changed since the last check,
399- return True; else return False
400- """
401- if self .update_dict [checker ]:
402- self .update_dict [checker ] = False
396+ def _check_update (self , checker ):
397+ """Return whether mappable has changed since the last check."""
398+ if self ._update_dict [checker ]:
399+ self ._update_dict [checker ] = False
403400 return True
404401 return False
405402
406403 def changed (self ):
407404 """
408405 Call this whenever the mappable is changed to notify all the
409- callbackSM listeners to the 'changed' signal
406+ callbackSM listeners to the 'changed' signal.
410407 """
411408 self .callbacksSM .process ('changed' , self )
412-
413- for key in self .update_dict :
414- self .update_dict [key ] = True
409+ for key in self ._update_dict :
410+ self ._update_dict [key ] = True
415411 self .stale = True
412+
413+ @cbook .deprecated ("3.3" )
414+ @property
415+ def update_dict (self ):
416+ return self ._update_dict
417+
418+ @cbook .deprecated ("3.3" )
419+ def add_checker (self , checker ):
420+ return self ._add_checker (checker )
421+
422+ @cbook .deprecated ("3.3" )
423+ def check_update (self , checker ):
424+ return self .check_update (checker )
0 commit comments