Graphing TLines, makes some Data disappear,


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();

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

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