@@ -367,10 +367,6 @@ def __init__(self,
367367 self ._set_artist_props (self .patch )
368368 self .patch .set_aa (False )
369369
370- self ._hold = rcParams ['axes.hold' ]
371- if self ._hold is None :
372- self ._hold = True
373-
374370 self .canvas = None
375371 self ._suptitle = None
376372
@@ -780,25 +776,6 @@ def set_canvas(self, canvas):
780776 """
781777 self .canvas = canvas
782778
783- @cbook .deprecated ("2.0" )
784- def hold (self , b = None ):
785- """
786- Set the hold state. If hold is None (default), toggle the
787- hold state. Else set the hold state to boolean value b.
788-
789- e.g.::
790-
791- hold() # toggle hold
792- hold(True) # hold is on
793- hold(False) # hold is off
794-
795- All "hold" machinery is deprecated.
796- """
797- if b is None :
798- self ._hold = not self ._hold
799- else :
800- self ._hold = b
801-
802779 def figimage (self , X , xo = 0 , yo = 0 , alpha = None , norm = None , cmap = None ,
803780 vmin = None , vmax = None , origin = None , resize = False , ** kwargs ):
804781 """
@@ -868,10 +845,6 @@ def figimage(self, X, xo=0, yo=0, alpha=None, norm=None, cmap=None,
868845 plt.show()
869846
870847 """
871-
872- if not self ._hold :
873- self .clf ()
874-
875848 if resize :
876849 dpi = self .get_dpi ()
877850 figsize = [x / dpi for x in (X .shape [1 ], X .shape [0 ])]
@@ -1922,7 +1895,6 @@ def colorbar(self, mappable, cax=None, ax=None, use_gridspec=True, **kw):
19221895 cax , kw = cbar .make_axes_gridspec (ax , ** kw )
19231896 else :
19241897 cax , kw = cbar .make_axes (ax , ** kw )
1925- cax ._hold = True
19261898
19271899 # need to remove kws that cannot be passed to Colorbar
19281900 NON_COLORBAR_KEYS = ['fraction' , 'pad' , 'shrink' , 'aspect' , 'anchor' ,
0 commit comments