void transpad()
{
TPad *pad1 =
new TPad(
"pad1",
"",0,0,1,1);
TPad *pad2 =
new TPad(
"pad2",
"",0,0,1,1);
TH1F *h2 =
new TH1F(
"h2",
"h2",100,-3,3);
for (
Int_t i=0;i<100000;i++) {
}
h2->Draw("][sames");
}
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
void SetLabelColor(Int_t labelcolor)
1-D histogram with a float per channel (see TH1 documentation)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
TList * GetListOfFunctions() const
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
The most important graphics class in the ROOT system.
void SetFillStyle(Style_t fstyle) override
Override TAttFill::FillStyle for TPad because we want to handle style=0 as style 4000.
void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2) override
Set world coordinate system for the pad.
void Update() override
Update pad.
void Modified(Bool_t flag=true) override
Mark pad modified Will be repainted when TCanvas::Update() will be called next time.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
The histogram statistics painter class.
virtual void SetX1NDC(Double_t x1)
virtual void SetX2NDC(Double_t x2)
This is the base class for the ROOT Random number generators.