@deprecated(u'2.0', message=_hold_msg)
def over(func, *args, **kwargs):
 ax = gca()
 h = ax._hold
 ax._hold = True
 func(*args, **kwargs)
 ax._hold = h

@ deprecated ( u'2.0' , message = _hold_msg ) def over ( func , * args , ** kwargs ) : ax = gca ( ) h = ax . _hold ax . _hold = True func ( * args , ** kwargs ) ax . _hold = h
over calls:: func with hold and then restores the hold state .