124 virtual void SetTitle(
const char *title=
"");
Int_t GetLabelFont() const
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.
void SetTitleColor(Int_t titlecolor)
static Int_t fgMaxDigits
! Number of digits above which the 10>N notation is used
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 GetLabelSize() const
virtual void CenterLabels(Bool_t center=kTRUE)
If center = kTRUE axis labels are centered in the center of the bin.
TString fTimeFormat
Time format, ex: 09/12/99 12:34:00.
TGaxis & operator=(const TGaxis &)
Assignment operator.
virtual void SetTitle(const char *title="")
Change the title of the axis.
virtual void ImportAxisAttributes(TAxis *axis)
Internal method to import TAxis attributes to this TGaxis.
TAxis * fAxis
! Pointer to original TAxis axis (if any)
TString fChopt
Axis options.
void SetTitleFont(Int_t titlefont)
Float_t fLabelOffset
Offset of label wrt axis.
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.
void ChangeLabelAttributes(Int_t i, Int_t nlabels, TLatex *t, char *c)
void SetTitleSize(Float_t titlesize)
virtual void SetTextFont(Font_t tfont=62)
Set the text font.
static Float_t fXAxisExpYOffset
! Exponent Y offset for the X axis
static Float_t fYAxisExpYOffset
! Exponent Y offset for the Y axis
TString fTitle
Axis title.
#define ClassDef(name, id)
Float_t fGridLength
Length of the grid in NDC.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Int_t fNModLabs
Number of modified labels.
To draw Mathematical Formula.
void SetOption(Option_t *option="")
To set axis options.
virtual const char * GetName() const
Returns name of object.
void SetTimeFormat(const char *tformat)
Change the format used for time plotting.
virtual ~TGaxis()
TGaxis default destructor.
void SetLabelSize(Float_t labelsize)
TList * fModLabs
List of modified labels.
Float_t GetGridLength() const
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.
Double_t fWmin
Lowest value on the axis.
void SetGridLength(Float_t gridlength)
TF1 * fFunction
! Pointer to function computing axis values
void SetWmax(Double_t wmax)
static Float_t fYAxisExpXOffset
! Exponent X offset for the Y axis
void ResetLabelAttributes(TLatex *t)
Reset the label attributes to the value they have before the last call to ChangeLabelAttributes.
Int_t fLabelFont
Font for labels.
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.
Float_t fTitleOffset
Offset of title wrt axis.
TString fFunctionName
Name of mapping function pointed by fFunction.
virtual const char * GetTitle() const
Returns title of object.
void SetLabelFont(Int_t labelfont)
static Int_t GetMaxDigits()
Static function returning fgMaxDigits (See SetMaxDigits).
TGaxis()
TGaxis default constructor.
virtual void Paint(Option_t *chopt="")
Draw this axis with its current attributes.
Float_t GetTitleOffset() const
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 fLabelSize
Size of labels in NDC.
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)
Int_t fLabelColor
Color for labels.
Float_t GetLabelOffset() const
void SetLabelColor(Int_t labelcolor)
TF1 * GetFunction() const
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
void SetWmin(Double_t wmin)
Float_t fTitleSize
Size of title in NDC.
void SetTitleOffset(Float_t titleoffset=1)
Double_t fWmax
Highest value on the axis.
Float_t GetTickSize() const
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.
Float_t fTickSize
Size of primary tick mark in NDC.
static Float_t fXAxisExpXOffset
! Exponent X offset for the X axis
virtual void SetNdivisions(Int_t ndiv)
virtual const char * GetOption() const
void LabelsLimits(const char *label, Int_t &first, Int_t &last)
Internal method to find first and last character of a label.
Int_t GetLabelColor() const
Int_t fNdiv
Number of divisions.
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".
Float_t GetTitleSize() const
const char * Data() const