def clf(self):
self.suppressComposite = None<EOL>self.callbacks = cbook.CallbackRegistry(('<STR_LIT>', ))<EOL>for ax in tuple(self.axes):  <EOL><INDENT>ax.cla()<EOL>self.delaxes(ax)         <EOL><DEDENT>toolbar = getattr(self.canvas, '<STR_LIT>', None)<EOL>if toolbar is not None:<EOL><INDENT>toolbar.update()<EOL><DEDENT>self._axstack.clear()<EOL>self._seen = {}<EOL>self.artists = []<EOL>self.lines = []<EOL>self.patches = []<EOL>self.texts=[]<EOL>self.images = []<EOL>self.legends = []<EOL>self._axobservers = []<EOL>
Clear the figure