Delete matplotlib repeted outputs