Example showing an histogram with reverse axis.
More...
Go to the source code of this file.
Example showing an histogram with reverse axis.
void ReverseXAxis (
TH1 *h);
void ReverseYAxis (
TH1 *h);
void reverseaxis ()
{
TH2F *hpxpy =
new TH2F(
"hpxpy",
"py vs px",40,-4,4,40,-4,4);
for (
Int_t i = 0; i < 25000; i++) {
}
ReverseXAxis(hpxpy);
ReverseYAxis(hpxpy);
}
void ReverseXAxis (
TH1 *h)
{
510,"-");
}
void ReverseYAxis (
TH1 *h)
{
510,"+");
}
- Author
- Olivier Couet
Definition in file reverseaxis.C.