for the filenames, it works, so i can actually open all files and read data and so on. obviously, the creating of the canvi does not work. so how do i get the “i” in my canvasname?
thanks
wing
ps: i know, this is a basic programming question, but i don’t know what to ask google for… c++ “creating multiple objects” returns only useless links
it seems, that i don’t have the tutorials on my PC. locate can’t find either tutorials or graphs. i obtained root 5.17 from this page: mirror.phy.bnl.gov/debian-root/ubuntu/
I looked through a lot documents and tutorials, but my problem is, that i don’t know where to look. The examples all deal with single graphs (or manually create more than one). I know how to use them, my code works for one. I just can’t get my indexed arrays xi[n] in my i Graphs gr[i].
I don’t think this is a specific TGraph-Problem but a general problem in my understanding of c++. I think I am missing something really simple here.
I just reworked my script and yep, it works! Thanks you VERY much!
one little problem is left:
i draw to graphs with different scaling and want the right y-axis to be completely red. with “axis->SetLabelColor(kRed)” and “SetTitleColor” this works for the text and numbers, but not for the lines. when i try
“axis->SetLineColor(kRed);”
(like in the twoscale example) i get:
139157076
*** Interpreter error recovered ***
is this a new feature in ROOT (i use version 5.17) or what’s my problem here? multifile.C (2.37 KB)
my macro is attached above (i edited right after posting, you’re really quick ), here is also one of the data files for reading (txt instead of tab due to upload restrictions)
if i make the line “rechtsY[i]->SetLineColor(kRed);” a comment, no error occurs wic_1.txt (58.8 KB)