Hi,
could anyone show me how to create a legend for the top graph in a TRatioPlot
? I can’t seem to find any examples in the Class Reference.
Hi,
could anyone show me how to create a legend for the top graph in a TRatioPlot
? I can’t seem to find any examples in the Class Reference.
// ...
ratioplot->Draw();
gPad->Modified(); gPad->Update(); // make sure it’s really (re)drawn
TPad *p = ratioplot->GetUpperPad();
TLegend *l = p->BuildLegend();
// l->DoWhateverYouWantWithIt();
p->Modified(); p->Update(); // make sure it’s really (re)drawn
// ...
@Wile_E_Coyote thanks for the hint!