interactive mode for matplotlib