@@ -776,7 +776,11 @@ def figlegend(handles, labels, loc, **kwargs):
776776
777777## Figure and Axes hybrid ##
778778
779- @deprecated ("2.0" )
779+ _hold_msg = """Future behavior will be consistent with the long-time
780+ default: plot commands add elements without first
781+ clearing the Axes and/or Figure."""
782+
783+ @deprecated ("2.0" , message = _hold_msg )
780784def hold (b = None ):
781785 """
782786 Set the hold state. If *b* is None (default), toggle the
@@ -786,12 +790,10 @@ def hold(b=None):
786790 hold(True) # hold is on
787791 hold(False) # hold is off
788792
789- When *hold* is *True*, subsequent plot commands will be added to
793+ When *hold* is *True*, subsequent plot commands will add elements to
790794 the current axes. When *hold* is *False*, the current axes and
791795 figure will be cleared on the next plot command.
792796
793- Deprecated. Future behavior will be consistent with the
794- long-time default of True.
795797 """
796798
797799 fig = gcf ()
@@ -812,17 +814,16 @@ def hold(b=None):
812814 # a second warning, but "Oh, well...".
813815 rc ('axes' , hold = b )
814816
815- @deprecated ("2.0" )
817+ @deprecated ("2.0" , message = _hold_msg )
816818def ishold ():
817819 """
818820 Return the hold status of the current axes.
819821
820- Deprecated.
821822 """
822823 return gca ()._hold
823824
824825
825- @deprecated ("2.0" )
826+ @deprecated ("2.0" , message = _hold_msg )
826827def over (func , * args , ** kwargs ):
827828 """
828829 Call a function with hold(True).
@@ -833,7 +834,6 @@ def over(func, *args, **kwargs):
833834
834835 with ``hold(True)`` and then restores the hold state.
835836
836- Deprecated.
837837 """
838838 ax = gca ()
839839 h = ax ._hold
0 commit comments