16 if (obj !=
gr)
return;
17 if (ihp == -1)
return;
21 lq->At(ihp)->Draw(
"alp");
23 if (savepad) savepad->
cd();
29 const Int_t nshots = 10;
38 for (
Int_t ig = 0; ig < nq; ig++)
39 grq[ig] =
new TGraph(nshots);
40 TH1F *
h =
new TH1F(
"h",
"demo quantiles",50,-3,3);
42 for (
Int_t shot=0;shot<nshots;shot++) {
43 h->FillRandom(
"gaus",50);
44 h->GetQuantiles(nq,yq,xq);
48 for (
Int_t ig = 0; ig < nq; ig++)
49 grq[ig]->SetPoint(shot,shot+1,yq[ig]);
54 c1->HighlightConnect(
"HighlightQuantile(TVirtualPad*,TObject*,Int_t,Int_t)");
63 gPad->SetFrameFillColor(33);
74 for (
Int_t ig = 0; ig < nq; ig++) {
83 TText *info =
new TText(0.1, 2.4,
"please move the mouse over the graph");
93 gPad->SetFrameFillColor(17);
94 gPad->DrawFrame(0,0,nshots+1,3.2);
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) override
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 SetHighlight(Bool_t set=kTRUE)
Set highlight (enable/disable) mode for the graph by default highlight mode is disable.
void Draw(Option_t *chopt="") override
Draw this graph with its current attributes.
TAxis * GetYaxis() const
Get y axis of the graph.
void SetTitle(const char *title="") override
Change (i.e.
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.
void Draw(Option_t *option="") override
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