def remove_legend(ax=None):
from pylab import gca, draw<EOL>if ax is None:<EOL><INDENT>ax = gca()<EOL><DEDENT>ax.legend_ = None<EOL>draw()<EOL>
Remove legend for axes or gca.

    See http://osdir.com/ml/python.matplotlib.general/2005-07/msg00285.html