I think there is at least a set of mistakes. TColor does not provide the enumerator constants kAzure, kRed and so on. The right way to access those is via the ROOT module, e.g.
Changing all TColor to ROOT still results in a crash.
I’m not sure it has anything to do with the code itself, since when putting some prints even at the very beginning of the code, the crash happens before any print.
I confirm this doesn’t work on Windows. Unfortunately, since ROOT 5 is in maintenance mode, I’m afraid this is not going to be fixed… (unless @wlav would like to look at it…)
Well, I’m guessing there’s another way to execute the script through a python interpreter, right?
Could anyone guide me through that? (I’m very new to this)
The main problem now is that “simpleplot.py” imports ROOT, and so I’m not sure how to execute it without moving the script to the folder of the interpreter.
OK, seeing that all of the new good stuff are in root 6, i’ll probably just install a dual boot on my computer with linux as well as windows so I could have root 6.
before I go do that, are there any other suggestions maybe?
Well, executing your script from python just works for me:
C:\Users\bellenot\Downloads>python
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> execfile('simpleplot.py')
Info in <TCanvas::Print>: file var0.png has been created
Info in <TCanvas::Print>: file var1.png has been created
Info in <TCanvas::Print>: file var0var1.png has been created
>>>
However, since the idea is eventually to use TMVA, I now wonder if I should install linux so I can have root6. Is it critical or is working with root5 good enough?