void hlquantiles() {
for (
Int_t ig = 0; ig < nq; ig++) grq[ig] =
new TGraph(nshots);
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]);
}
gPad->SetFrameFillColor(33);
for (
Int_t ig = 0; ig < nq; ig++) {
}
TText *info =
new TText(0.1, 2.4,
"please move the mouse over the graph");
c1->HighlightConnect(
"HighlightQuantile(TVirtualPad*,TObject*,Int_t,Int_t)");
gPad->SetFrameFillColor(17);
gPad->DrawFrame(0,0,nshots+1,3.2);
}
{
if (ihp == -1) return;
lq->At(ihp)->Draw(
"alp");
}
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual Color_t GetMarkerColor() const
Return the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
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)
Set current canvas & pad.
A TGraph is an object made of two arrays X and Y with npoints each.
virtual void SetPoint(Int_t i, Double_t x, Double_t y)
Set x and y values for point number i.
virtual void SetMaximum(Double_t maximum=-1111)
Set the maximum of the graph.
virtual void SetTitle(const char *title="")
Change (i.e.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
virtual void SetHighlight(Bool_t set=kTRUE)
Set highlight (enable/disble) mode for the graph by default highlight mode is disable.
TAxis * GetYaxis() const
Get y axis of the graph.
virtual void SetMinimum(Double_t minimum=-1111)
Set the minimum of the graph.
1-D histogram with a float per channel (see TH1 documentation)}
This class displays a legend box (TPaveText) containing several legend entries.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *option="")
Draw this legend 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.
Base class for several text objects.
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