130 virtual void SetTitle(
const char *title=
"");
void SetTickLength(Float_t ticklength)
virtual void SetName(const char *name)
Change the name of the axis.
virtual void SetMoreLogLabels(Bool_t more=kTRUE)
Set the kMoreLogLabels bit flag.
Float_t GetLabelOffset() const
Float_t GetTickSize() const
Int_t GetLabelFont() const
void SetTitleColor(Int_t titlecolor)
static Int_t fgMaxDigits
pointer to original TAxis axis (if any)
static void SetExponentOffset(Float_t xoff=0., Float_t yoff=0., Option_t *axis="xy")
Static function to set X and Y offset of the axis 10^n notation.
Float_t GetTitleOffset() const
virtual const char * GetName() const
Returns name of object.
virtual void CenterLabels(Bool_t center=kTRUE)
If center = kTRUE axis labels are centered in the center of the bin.
TGaxis & operator=(const TGaxis &)
Assignment operator.
virtual void SetTitle(const char *title="")
Change the title of the axis.
Int_t GetLabelColor() const
virtual void ImportAxisAttributes(TAxis *axis)
Internal method to import TAxis attributes to this TGaxis.
Float_t GetTitleSize() const
TAxis * fAxis
Pointer to function computing axis values.
void SetTitleFont(Int_t titlefont)
virtual void DrawAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Double_t wmin, Double_t wmax, Int_t ndiv=510, Option_t *chopt="", Double_t gridlength=0)
Draw this axis with new attributes.
const char * Data() const
void SetTitleSize(Float_t titlesize)
virtual void SetTextFont(Font_t tfont=62)
static Float_t fXAxisExpYOffset
Exponent X offset for the X axis.
Double_t dot(const TVector2 &v1, const TVector2 &v2)
static Float_t fYAxisExpYOffset
Exponent X offset for the Y axis.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
void SetOption(Option_t *option="")
To set axis options.
Float_t GetGridLength() const
virtual const char * GetOption() const
void SetTimeFormat(const char *tformat)
Change the format used for time plotting.
virtual ~TGaxis()
TGaxis default destructor.
void SetLabelSize(Float_t labelsize)
virtual void PaintAxis(Double_t xmin, Double_t ymin, Double_t xmax, Double_t ymax, Double_t &wmin, Double_t &wmax, Int_t &ndiv, Option_t *chopt="", Double_t gridlength=0, Bool_t drawGridOnly=kFALSE)
Control function to draw an axis.
Class to manage histogram axis.
static void SetMaxDigits(Int_t maxd=5)
Static function to set fgMaxDigits for axis.
void SetFunction(const char *funcname="")
Specify a function to map the axis values.
void SetGridLength(Float_t gridlength)
void SetWmax(Double_t wmax)
static Float_t fYAxisExpXOffset
Exponent Y offset for the X axis.
virtual void AdjustBinSize(Double_t A1, Double_t A2, Int_t nold, Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BinWidth)
Internal method for axis labels optimisation.
void SetLabelOffset(Float_t labeloffset)
virtual void SetDecimals(Bool_t dot=kTRUE)
Set the decimals flag.
void SetLabelFont(Int_t labelfont)
static Int_t GetMaxDigits()
Static function returning fgMaxDigits (See SetMaxDigits).
virtual void Paint(Option_t *chopt="")
Draw this axis with its current attributes.
virtual void Rotate(Double_t X, Double_t Y, Double_t CFI, Double_t SFI, Double_t XT, Double_t YT, Double_t &U, Double_t &V)
Internal method to rotate axis coordinates.
Float_t GetLabelSize() const
void SetTimeOffset(Double_t toffset, Option_t *option="local")
Change the time offset. If option = "gmt", set display mode to GMT.
void SetTickSize(Float_t ticksize)
void SetLabelColor(Int_t labelcolor)
virtual void SetTextColor(Color_t tcolor=1)
virtual const char * GetTitle() const
Returns title of object.
void SetWmin(Double_t wmin)
void SetTitleOffset(Float_t titleoffset=1)
virtual void SetNoExponent(Bool_t noExponent=kTRUE)
Set the NoExponent flag.
virtual void CenterTitle(Bool_t center=kTRUE)
If center = kTRUE axis title will be centered. The default is right adjusted.
TF1 * GetFunction() const
static Float_t fXAxisExpXOffset
Number of digits above which the 10>N notation is used.
virtual void SetNdivisions(Int_t ndiv)
void LabelsLimits(const char *label, Int_t &first, Int_t &last)
Internal method to find first and last character of a label.