Hi,
I am using polynomial fit for some data. I don’t want to plot the original data and only want to plot the fitted graph so I set gr2->SetLineWidth(0). But this creates a problem when I am trying to plot the legend for this graph, since it is not showing the dashed lines corresponding to the plot since for the original plot I have set width=0.
gr2->SetLineWidth(0);
gr2->SetLineStyle(9);
gr2->Fit("pol8");
gr2->GetFunction("pol8")->SetTitle(" ");
gr2->GetFunction("pol8")->SetLineColor(kOrange+8);
gr2->GetFunction("pol8")->SetLineWidth(3);
gr2->GetFunction("pol8")->SetLineStyle(9);
In the legend, I am doing something like
leg->AddEntry(gr2,"graph","l");
which writes the graph but without the dashed line associated with it.
Is there any way to hide the original plot but still use the legend for that?
ROOT Version: 6.08/06
Platform: Not Provided
Compiler: OSX
