Example illustrating how to draw TGaxis with labels defined by a function.
{
TH2F *h2 =
new TH2F(
"h",
"Axes", 100, 0, 10, 100, -2, 2);
h2->Draw();
A1->SetTitle(
"axis with decreasing values");
TF1 *f2 =
new TF1(
"f2",
"exp(x)", 0, 2);
A2->SetTitle(
"exponential axis");
TF1 *f3 =
new TF1(
"f3",
"log10(x)", 1, 1000);
A3->SetTitle(
"logarithmic axis");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
2-D histogram with a float per channel (see TH1 documentation)
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
- Author
- Olivier Couet
Definition in file gaxis2.C.