13 TPad *pad1 =
new TPad(
"pad1",
"",0,0,1,1);
14 TPad *pad2 =
new TPad(
"pad2",
"",0,0,1,1);
19 TH1F *h1 =
new TH1F(
"h1",
"h1",100,-3,3);
20 TH1F *h2 =
new TH1F(
"h2",
"h2",100,-3,3);
22 for (
Int_t i=0;i<100000;i++) {
25 if (i <1000) h1->
Fill(x1);
42 pad2->
Range(xmin-0.1*dx,ymin-0.1*dy,xmax+0.1*dx,ymax+0.1*dy);
53 TGaxis *axis =
new TGaxis(xmax,ymin,xmax,ymax,ymin,ymax,50510,
"+L");
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
TList * GetListOfFunctions() const
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual void SetX2NDC(Double_t x2)
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
1-D histogram with a float per channel (see TH1 documentation)}
virtual void Update()
Update pad.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual TObject * FindObject(const char *name) const
Find an object in this list using its name.
The histogram statistics painter class.
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
This is the base class for the ROOT Random number generators.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
virtual void SetLineColor(Color_t lcolor)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
virtual void SetX1NDC(Double_t x1)
The most important graphics class in the ROOT system.
virtual void SetFillStyle(Style_t fstyle)
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
void SetLabelColor(Int_t labelcolor)
virtual void SetTextColor(Color_t tcolor=1)
void Modified(Bool_t flag=1)