def _topo_closed(events, ax, lines, fill):
 for line in lines:
  ax.lines.remove(line[0])
 ax.collections.remove(fill)
 ax.get_figure().canvas.draw()

def _topo_closed ( events , ax , lines , fill ) : for line in lines : ax . lines . remove ( line [ 0 ] ) ax . collections . remove ( fill ) ax . get_figure ( ) . canvas . draw ( )
remove lines from evoked plot as topomap is closed .