Mysterious dark lines with multigraph?

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

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 .

We need a script reproducing de problem.

script of the macro or graph?

The macro. Something we can run.

transistor.c (9.0 KB)

At the end do:

   mg->Add(gi3V,"lp");
   mg->Add(gi4V,"lp");
   mg->Draw("AP");

What material would you like your statue ?

1 Like

:slight_smile: 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 ?

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

ok thank you very much

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.