Demo for quantiles (with highlight mode).
{
if (ihp == -1) return;
lq->At(ihp)->Draw(
"alp");
if (savepad) savepad->
cd();
}
void hlquantiles() {
for (
Int_t ig = 0; ig < nq; ig++)
TH1F *
h =
new TH1F(
"h",
"demo quantiles",50,-3,3);
for (
Int_t shot=0;shot<nshots;shot++) {
h->FillRandom(
"gaus",50);
h->GetQuantiles(nq,yq,xq);
for (
Int_t ig = 0; ig < nq; ig++)
grq[ig]->SetPoint(shot,shot+1,yq[ig]);
}
c1->HighlightConnect(
"HighlightQuantile(TVirtualPad*,TObject*,Int_t,Int_t)");
gPad->SetFrameFillColor(33);
gr->SetTitle(
"final quantiles");
for (
Int_t ig = 0; ig < nq; ig++) {
}
TText *info =
new TText(0.1, 2.4,
"please move the mouse over the graph");
gPad->SetFrameFillColor(17);
gPad->DrawFrame(0,0,nshots+1,3.2);
}
int Int_t
Signed integer 4 bytes (int).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set current canvas & pad.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
virtual void SetMinimum(Double_t minimum=-1111)
void Draw(Option_t *chopt="") override
Default Draw method for all objects.
void SetTitle(const char *title="") override
Set the title of the TNamed.
virtual void SetMaximum(Double_t maximum=-1111)
1-D histogram with a float per channel (see TH1 documentation)
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
void Draw(Option_t *option="") override
Draw this box with its current attributes.
Mother of all ROOT objects.
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
TVirtualPad is an abstract base class for the Pad and Canvas classes.
virtual TVirtualPad * cd(Int_t subpadnumber=0)=0
virtual TCanvas * GetCanvas() const =0