Home | News | Documentation | Download

Graphing TLines, makes some Data disappear,


#1

ROOT Version: 06.14.02
Platform: Mac OS
Compiler: Not Provided


I am currently graphing my data, but I included TLines in order to guide the eye, I’ve done this before successfully but it’s not working right now, instead, it seems like the TLine is erasing the data.

This is my data without the lines

this is with the lines

here is my code

TCanvas *c4 = new TCanvas;
   c4->cd();
   bitChannels.Draw("colz");
   c4->Update();
   for (int i = 0; i <13; i++)
   {
	c4->cd();
        TLine *W = new TLine(0,pow(2,i),8256,pow(2,i));
       W->Draw("same");
       gStyle->SetLineStyleString(10);
       W->SetLineColorAlpha(15,0.35);
   }
   c4->cd();

#2

Once i changed the width of all the lines, it worked!