12void ReverseXAxis(
TH1 *
h);
13void ReverseYAxis(
TH1 *
h);
15void hist021_TH2_reverse_axis()
17 TH2F *hpxpy =
new TH2F(
"hpxpy",
"py vs px", 40, -4, 4, 40, -4, 4);
20 for (
Int_t i = 0; i < 25000; i++) {
30void ReverseXAxis(
TH1 *
h)
33 h->GetXaxis()->SetLabelOffset(999);
34 h->GetXaxis()->SetTickLength(0);
39 h->GetXaxis()->GetXmin(),
h->GetXaxis()->GetXmax(), 510,
"-");
44void ReverseYAxis(
TH1 *
h)
47 h->GetYaxis()->SetLabelOffset(999);
48 h->GetYaxis()->SetTickLength(0);
53 h->GetYaxis()->GetXmin(),
h->GetYaxis()->GetXmax(), 510,
"+");
int Int_t
Signed integer 4 bytes (int).
float Float_t
Float 4 bytes (float).
void SetLabelOffset(Float_t labeloffset)
TH1 is the base class of all histogram classes in ROOT.
void Draw(Option_t *option="") override
Draw this histogram with options.
2-D histogram with a float per channel (see TH1 documentation)
Int_t Fill(Double_t) override
Invalid Fill method.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
This is the base class for the ROOT Random number generators.