125 virtual const char *
GetTicks()
const;
142 virtual void SaveAttributes(std::ostream &out,
const char *
name,
const char *subname);
#define ClassDef(name, id)
Array of doubles (64 bits per element).
Manages histogram axis attributes.
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 CenterLabels(Bool_t center=kTRUE)
Center axis labels.
virtual Bool_t GetTimeDisplay() 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...
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
void SetNoAlphanumeric(Bool_t noalpha=kTRUE)
Bool_t GetCenterTitle() const
void SetMoreLogLabels(Bool_t more=kTRUE)
Set the kMoreLogLabels bit flag When this option is selected more labels are drawn when in log scale ...
virtual void SetParent(TObject *obj)
TAxis()
Default constructor.
virtual void UnZoom()
Reset first & last bin to the full range.
THashList * fLabels
Object owning this axis.
const TArrayD * GetXbins() const
Bool_t GetMoreLogLabels() const
void SetCanExtend(Bool_t canExtend)
virtual void SetDrawOption(Option_t *="")
Set drawing option for object.
virtual void SetTicks(Option_t *option="+")
Set ticks orientation.
virtual void SaveAttributes(std::ostream &out, const char *name, const char *subname)
Save axis attributes as C++ statement(s) on output stream out.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
Bool_t GetNoExponent() const
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.
virtual void SetTimeDisplay(Int_t value)
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.
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...
virtual void Copy(TObject &axis) const
Copy axis structure to another axis.
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...
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.
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to an axis.
TAxis & operator=(const TAxis &)
Assignment operator.
TList * GetModifiedLabels() const
virtual TObject * DrawClone(Option_t *="") const
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad...
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
Set the viewing range for the axis from ufirst to ulast (in user coordinates).
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
const char * GetTitle() const
Returns title of object.
virtual void SetTimeFormat(const char *format="")
Change the format used for time plotting.
virtual ~TAxis()
Destructor.
Bool_t CanBeAlphanumeric()
virtual TObject * GetParent() const
virtual void Delete(Option_t *="")
Delete this object.
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis from bin first to last.
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)
THashList * GetLabels() 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, TString labText="")
Define new text attributes for the label number "labNum".
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