11 TCanvas *c1 =
new TCanvas(
"c1",
"Examples of TGaxis",10,10,700,500);
13 c1->
Range(-10,-1,10,1);
15 TGaxis *axis1 =
new TGaxis(-4.5,-0.2,5.5,-0.2,-6,8,510,
"");
19 TGaxis *axis2 =
new TGaxis(-4.5,0.2,5.5,0.2,0.001,10000,510,
"G");
23 TGaxis *axis3 =
new TGaxis(-9,-0.8,-9,0.8,-8,8,50510,
"");
29 TGaxis *axis4 =
new TGaxis(-7,-0.8,-7,0.8,1,10000,50510,
"G");
34 TGaxis *axis5 =
new TGaxis(-4.5,-0.6,5.5,-0.6,1.2,1.32,80506,
"-+");
41 TGaxis *axis6 =
new TGaxis(-4.5,0.5,5.5,0.5,100,900,50510,
"-");
44 TGaxis *axis6a =
new TGaxis(-5.5,0.85,5.5,0.85,0,4.3e-6,510,
"");
48 TGaxis *axis7 =
new TGaxis(8,-0.8,8,0.8,0,9000,50510,
"+L");
54 TGaxis *axis8 =
new TGaxis(6.5,0.8,6.499,-0.8,0,90,50510,
"-");
virtual void SetName(const char *name)
Change the name of the axis.
virtual void SetTitle(const char *title="")
Change the title of the axis.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
virtual void SetTextFont(Font_t tfont=62)
void SetLabelSize(Float_t labelsize)
virtual void Range(Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Set world coordinate system for the pad.
void SetTitleOffset(Float_t titleoffset=1)