I am having a problem setting a line colour to my ntuple - its such a simple task that I must be missing something obvious somewhere…
I set up an ntuple in a macro:
Then I fill it - also within the macro.
When the macro finishes I am now at the ROOT prompt and I can do all the usual stuff with ntuples, e.g.:
where in the above I am using the option l to draw a line through all the points. The problem is that I cannot set the line color from the prompt before I draw it.
I try using
but it makes no difference. If I check that it was set using the GetLineColor() method then sure enough, it returns the value 2.
I’ve even tried
but it sitll makes no difference. The ONLY way that I can change the colour is to manually click on the pad, get the TGraph drop down menu and change the line colour from there. However, I really need to automate this. Note that setting the line colour within the macro also fails.