Example showing an histogram with reverse axis.
{
TH2F *
hpxpy =
new TH2F(
"hpxpy",
"py vs px", 40, -4, 4, 40, -4, 4);
for (
Int_t i = 0; i < 25000; i++) {
}
}
{
h->GetXaxis()->SetLabelOffset(999);
h->GetXaxis()->SetTickLength(0);
h->GetXaxis()->GetXmin(),
h->GetXaxis()->GetXmax(), 510,
"-");
}
{
h->GetYaxis()->SetLabelOffset(999);
h->GetYaxis()->SetTickLength(0);
h->GetYaxis()->GetXmin(),
h->GetYaxis()->GetXmax(), 510,
"+");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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
TH1 is the base class of all histogram classes in ROOT.
2-D histogram with a float per channel (see TH1 documentation)
This is the base class for the ROOT Random number generators.
- Date
- July 2016
- Author
- Olivier Couet
Definition in file hist021_TH2_reverse_axis.C.