Example illustrating how to draw TGaxis with labels defined by a function.
void gaxis2(){
TH2F *h2 =
new TH2F(
"h",
"Axes",100,0,10,100,-2,2);
TF1 *f1 =
new TF1(
"f1",
"-x",-10,10);
A1->
SetTitle(
"axis with decreasing values");
TF1 *f2 =
new TF1(
"f2",
"exp(x)",0,2);
TF1 *f3 =
new TF1(
"f3",
"log10(x)",1,1000);
}
- Author
- Olivier Couet
Definition in file gaxis2.C.