when running the script in a system with graphic user interface all charts are opened while being generated.