try:
import matplotlib.pyplot as plt
matplotWorking = True
- except Exception:
- print "Cannot initialize matplotlib!"
- print "Check that you have properly installet matplotlib."
+ except ImportError:
+ print(RED("Cannot initialize matplotlib!"))
+ print(RED("Check that you have properly installed matplotlib.\n"))
matplotWorking = False
+ sys.argv.pop(sys.argv.index(arg))
+
if arg == "--no-color":
green_start = ""
color_stop = ""