15 const Int_t nshots = 10;
24 for (
Int_t ig = 0; ig < nq; ig++) grq[ig] =
new TGraph(nshots);
25 TH1F *
h =
new TH1F(
"h",
"demo quantiles",50,-3,3);
27 for (
Int_t shot=0;shot<nshots;shot++) {
28 h->FillRandom(
"gaus",50);
29 h->GetQuantiles(nq,yq,xq);
33 for (
Int_t ig = 0; ig < nq; ig++)
34 grq[ig]->SetPoint(shot,shot+1,yq[ig]);
47 gPad->SetFrameFillColor(33);
58 for (
Int_t ig = 0; ig < nq; ig++) {
67 TText *info =
new TText(0.1, 2.4,
"please move the mouse over the graph");
74 c1->HighlightConnect(
"HighlightQuantile(TVirtualPad*,TObject*,Int_t,Int_t)");
78 gPad->SetFrameFillColor(17);
79 gPad->DrawFrame(0,0,nshots+1,3.2);
103 if (obj !=
gr)
return;
104 if (ihp == -1)
return;
108 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 Graph is a graphics 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