22 c1 =
new TCanvas(
"c1",
"Examples of Gaxis",10,10,800,400);
23 c1->Range(-6,-0.1,6,0.1);
25 TGaxis *axis =
new TGaxis(-5.5,0.,5.5,0.,0.0,100,510,
"");
45 axis->
ChangeLabel(-2,-1,-1,-1,3,-1,
"2nd to last label");
virtual void SetName(const char *name)
Change the name of the axis.
void SetTitleColor(Int_t titlecolor)
virtual void SetTitle(const char *title="")
Change the title of the axis.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
void SetTitleFont(Int_t titlefont)
void SetTitleSize(Float_t titlesize)
void ChangeLabel(Int_t labNum=0, Double_t labAngle=-1., Double_t labSize=-1., Int_t labAlign=-1, Int_t labColor=-1, Int_t labFont=-1, TString labText="")
Define new text attributes for the label number "labNum".