Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::pylab::hold (   b = None  ) 

Set the hold state.  If hold is None (default), toggle the
hold state.  Else set the hold state to boolean value b.

Eg
hold()      # toggle hold
hold(True)  # hold is on
hold(False) # hold is off

When hold is True, subsequent plot commands will be added to the
current axes.  When hold is False, the current axes and figure
will be cleared on the next plot command

Definition at line 852 of file pylab.py.

00852                 :
    """
    Set the hold state.  If hold is None (default), toggle the
    hold state.  Else set the hold state to boolean value b.

    Eg
    hold()      # toggle hold
    hold(True)  # hold is on
    hold(False) # hold is off

    When hold is True, subsequent plot commands will be added to the
    current axes.  When hold is False, the current axes and figure
    will be cleared on the next plot command
    """

    gcf().hold(b)
    gca().hold(b)
    rc('axes', hold=b)

def ishold():


Generated by  Doxygen 1.6.0   Back to index