|
|
@ -43,7 +43,7 @@ def delete_text_object(gidtxt, figure=None, axis=None, verbose=False):
|
|
|
|
def lmatchfun(x):
|
|
|
|
def lmatchfun(x):
|
|
|
|
return _matchfun(x, gidtxt)
|
|
|
|
return _matchfun(x, gidtxt)
|
|
|
|
|
|
|
|
|
|
|
|
for handle in [axis, figure]:
|
|
|
|
def _delete_gid_objects(handle, gidtxt, verbose):
|
|
|
|
objs = handle.findobj(lmatchfun)
|
|
|
|
objs = handle.findobj(lmatchfun)
|
|
|
|
name = handle.__name__
|
|
|
|
name = handle.__name__
|
|
|
|
msg = "Tried to delete a non-existing {0} from {1}".format(gidtxt,
|
|
|
|
msg = "Tried to delete a non-existing {0} from {1}".format(gidtxt,
|
|
|
@ -55,6 +55,9 @@ def delete_text_object(gidtxt, figure=None, axis=None, verbose=False):
|
|
|
|
if verbose:
|
|
|
|
if verbose:
|
|
|
|
warnings.warn(msg)
|
|
|
|
warnings.warn(msg)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for handle in [axis, figure]:
|
|
|
|
|
|
|
|
_delete_gid_objects(handle, gidtxt, verbose)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def cltext(levels, percent=False, n=4, xs=0.036, ys=0.94, zs=0, figure=None,
|
|
|
|
def cltext(levels, percent=False, n=4, xs=0.036, ys=0.94, zs=0, figure=None,
|
|
|
|
axis=None):
|
|
|
|
axis=None):
|
|
|
|