Hi i have three graphs and i’m trying to put them together with Multigraph but with the last graph root draws this black line ? Why?
For example:
mg->Add(gi1V,“lp2”);
mg->Add(gi2V,“lp3”);
mg->Add(gi3V,“lp0”);
Root draws the black line over gi3V
while if i write :
mg->Add(gi1V,“lp2”);
mg->Add(gi3V,“lp3”);
mg->Add(gi2V,“lp0”);
root will draw the black line over gi2V
Thanks
couet
May 11, 2017, 5:04am
2
It is hard to tell without having a running macro reproducing this, but seems to me this is simply the graph points drawn with a circle marker. This graph seems to have many points close to each-other, therefore the markers touch eachother and draw this “thick line”.
1 Like
No, root connects the points with lines and i don’t know why. This happens only in the multigraph and not in the single graph .
couet
May 11, 2017, 3:08pm
4
We need a script reproducing de problem.
script of the macro or graph?
couet
May 11, 2017, 3:23pm
6
The macro. Something we can run.
couet
May 11, 2017, 3:52pm
8
At the end do:
mg->Add(gi3V,"lp");
mg->Add(gi4V,"lp");
mg->Draw("AP");
What material would you like your statue ?
1 Like
couet
May 11, 2017, 3:57pm
10
It was simple. No statue needed :-). I am happy it works for you.
1 Like
Can you explain me why lp1 or lp2 changes the lines ?
couet
May 11, 2017, 4:00pm
12
Yes sure. You invoked the options described here:
https://root.cern/doc/master/classTGraphPainter.html#GP03
i.e. drawing the errors as band .
1 Like
system
Closed
May 25, 2017, 4:10pm
14
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.