130 virtual const char *
GetTicks()
const;
148 void SaveAttributes(std::ostream &out,
const char *
name,
const char *subname)
override;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h offset
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
Array of doubles (64 bits per element).
Manages histogram axis attributes.
TAxis helper class used to store the modified labels.
Class to manage histogram axis.
virtual void GetCenter(Double_t *center) const
Return an array with the center of all bins.
virtual void SetTimeOffset(Double_t toffset, Option_t *option="local")
Change the time offset If option = "gmt", set display mode to GMT.
virtual void LabelsOption(Option_t *option="h")
Set option(s) to draw axis with labels option can be:
virtual void SetDefaults()
Set axis default values (from TStyle)
void SetDecimals(Bool_t dot=kTRUE)
Sets the decimals flag By default, blank characters are stripped, and then the label is correctly ali...
virtual void SetBinLabel(Int_t bin, const char *label)
Set label for bin.
void Delete(Option_t *="") override
Delete this object.
Int_t fLast
Last bin to display.
void CenterLabels(Bool_t center=kTRUE)
Center axis labels.
virtual Bool_t GetTimeDisplay() const
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, const TString &labText="")
Define new text attributes for the label number "labNum".
Bool_t IsAlphanumeric() const
Bool_t GetRotateTitle() const
Bool_t IsVariableBinSize() const
virtual void ZoomOut(Double_t factor=0, Double_t offset=0)
Zoom out by a factor of 'factor' (default =2) uses previous zoom factor by default Keep center define...
const char * GetTitle() const override
Returns title of object.
Int_t GetNlabels() const
Return the number of axis labels.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
TObject * fParent
! Object owning this axis
Double_t fXmax
Upper edge of last bin.
void SetNoAlphanumeric(Bool_t noalpha=kTRUE)
Bool_t GetCenterTitle() const
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to an axis.
void SetMoreLogLabels(Bool_t more=kTRUE)
Set the kMoreLogLabels bit flag When this option is selected more labels are drawn when in log scale ...
TArrayD fXbins
Bin edges array in X.
virtual void SetParent(TObject *obj)
TAxis()
Default constructor.
TObject * DrawClone(Option_t *="") const override
Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
UInt_t GetTimeOffset()
Return the time offset in GMT.
void ExecuteEvent(Int_t event, Int_t px, Int_t py) override
Execute action corresponding to one event.
virtual void UnZoom()
Reset first & last bin to the full range.
THashList * fLabels
List of labels.
const TArrayD * GetXbins() const
Bool_t GetMoreLogLabels() const
void SetCanExtend(Bool_t canExtend)
void Copy(TObject &axis) const override
Copy axis structure to another axis.
virtual void SetTicks(Option_t *option="+")
Set ticks orientation.
EStatusBits
TAxis status bits.
@ kCenterLabels
Bit 13 is used by TObject.
Bool_t fTimeDisplay
On/off displaying time values instead of numerics.
Bool_t GetNoExponent() const
TList * fModLabs
List of modified labels.
const char * GetBinLabel(Int_t bin) const
Return label for bin.
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Int_t fNbins
Number of bins.
@ kAlphanumeric
Axis is alphanumeric.
@ kNotAlpha
Axis is forced to be not alphanumeric.
@ kCanExtend
Axis can be extended.
virtual void SetTimeDisplay(Int_t value)
Double_t fXmin
Low edge of first bin.
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
Bool_t HasBinWithoutLabel() const
This helper function checks if there is a bin without a label if all bins have labels,...
void RotateTitle(Bool_t rotate=kTRUE)
Rotate title by 180 degrees.
TAxisModLab * FindModLab(Int_t num, Double_t v=0., Double_t eps=0.) const
Search for axis modifier by index or value.
void CenterTitle(Bool_t center=kTRUE)
Center axis title.
virtual Int_t FindFixBin(Double_t x) const
Find bin number corresponding to abscissa x.
const char * ChooseTimeFormat(Double_t axislength=0)
Choose a reasonable time format from the coordinates in the active pad and the number of divisions in...
void SetDrawOption(Option_t *="") override
Set drawing option for object.
void SetNoExponent(Bool_t noExponent=kTRUE)
Set the NoExponent flag By default, an exponent of the form 10^N is used when the label value are eit...
void SaveAttributes(std::ostream &out, const char *name, const char *subname) override
Save axis attributes as C++ statement(s) on output stream out.
Bool_t GetDecimals() const
Int_t GetLast() const
Return last bin on the axis i.e.
virtual void SetLimits(Double_t xmin, Double_t xmax)
virtual void ImportAttributes(const TAxis *axis)
Copy axis attributes to this.
virtual const char * GetTimeFormatOnly() const
Return only the time format from the string fTimeFormat.
virtual Double_t GetBinCenterLog(Int_t bin) const
Return center of bin in log With a log-equidistant binning for a bin with low and up edges,...
void SetAlphanumeric(Bool_t alphanumeric=kTRUE)
Set axis alphanumeric.
TAxis & operator=(const TAxis &)
Assignment operator.
~TAxis() override
Destructor.
TList * GetModifiedLabels() const
void ChangeLabelByValue(Double_t labValue, Double_t labAngle=-1., Double_t labSize=-1., Int_t labAlign=-1, Int_t labColor=-1, Int_t labFont=-1, const TString &labText="")
Define new text attributes for the label value "labValue".
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
Set the viewing range for the axis from ufirst to ulast (in user coordinates, that is,...
virtual Int_t FindBin(Double_t x) const
virtual const char * GetTimeFormat() const
virtual void GetLowEdge(Double_t *edge) const
Return an array with the low edge of all bins.
Bool_t GetCenterLabels() const
virtual void SetTimeFormat(const char *format="")
Change the format used for time plotting.
Bool_t CanBeAlphanumeric()
TString fTimeFormat
Date&time format, ex: 09/12/99 12:34:00.
virtual TObject * GetParent() const
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis using bin numbers.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
Int_t GetFirst() const
Return first bin on the axis i.e.
virtual const char * GetTicks() const
Return the ticks option (see SetTicks)
UShort_t fBits2
Second bit status word.
Int_t fFirst
First bin to display.
THashList * GetLabels() const
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
The TNamed class is the base class for all named ROOT classes.
Mother of all ROOT objects.
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
const char * Data() const