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