131 virtual const char *
GetTicks()
const;
144 return (fXbins.
GetSize() != 0);
148 virtual void SaveAttributes(std::ostream &out,
const char *
name,
const char *subname);
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to an axis.
Bool_t GetCenterLabels() const
Int_t GetFirst() const
Return first bin on the axis i.e.
virtual TObject * DrawClone(Option_t *="") const
Draw a clone of this object in the current pad.
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 GetLowEdge(Double_t *edge) const
Return an array with the lod edge of all bins.
virtual void SetLimits(Double_t xmin, Double_t xmax)
virtual void SetTimeFormat(const char *format="")
Change the format used for time plotting.
const char * GetBinLabel(Int_t bin) const
Return label for bin.
virtual Bool_t GetTimeDisplay() const
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
virtual void SetTimeOffset(Double_t toffset, Option_t *option="local")
Change the time offset If option = "gmt", set display mode to GMT.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
static std::string format(double x, double y, int digits, int width)
void CenterTitle(Bool_t center=kTRUE)
Center axis title.
Manages histogram axis attributes.
void SetNoAlphanumeric(Bool_t noalpha=kTRUE)
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
TAxis()
Default constructor.
Bool_t IsVariableBinSize() const
const char * Data() const
virtual void SetRangeUser(Double_t ufirst, Double_t ulast)
Set the viewing range for the axis from ufirst to ulast (in user coordinates).
#define ClassDef(name, id)
virtual const char * GetTicks() const
Return the ticks option (see SetTicks)
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.
virtual void SetDrawOption(Option_t *="")
Set drawing option for object.
virtual void LabelsOption(Option_t *option="h")
Set option(s) to draw axis with labels option = "a" sort by alphabetic order = ">" sort by decreasing...
virtual TObject * GetParent() const
virtual void SetTimeDisplay(Int_t value)
virtual void SetDefaults()
Set axis default values (from TStyle)
virtual void ImportAttributes(const TAxis *axis)
Copy axis attributes to this.
virtual const char * GetTimeFormat() const
virtual const char * GetTimeFormatOnly() const
Return only the time format from the string fTimeFormat.
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".
void CenterLabels(Bool_t center=kTRUE)
Center axis labels.
virtual void SetRange(Int_t first=0, Int_t last=0)
Set the viewing range for the axis from bin first to last.
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 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...
Class to manage histogram axis.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
virtual ~TAxis()
Destructor.
void SetCanExtend(Bool_t canExtend)
virtual void UnZoom()
Reset first & last bin to the full range.
Bool_t TestBit(UInt_t f) const
const char * GetTitle() const
Returns title of object.
Bool_t GetDecimals() const
Bool_t GetNoExponent() const
virtual Int_t FindBin(Double_t x)
Find bin number corresponding to abscissa x.
Bool_t CanBeAlphanumeric()
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 GetCenterTitle() const
virtual void Copy(TObject &axis) const
Copy axis structure to another axis.
virtual void Delete(Option_t *="")
Delete this object.
virtual void SetBinLabel(Int_t bin, const char *label)
Set label for bin.
virtual void SetTicks(Option_t *option="+")
Set ticks orientation.
void SetDecimals(Bool_t dot=kTRUE)
Sets the decimals flag By default, blank characters are stripped, and then the label is correctly ali...
Array of doubles (64 bits per element).
Int_t GetLast() const
Return last bin on the axis i.e.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
Mother of all ROOT objects.
void SetAlphanumeric(Bool_t alphanumeric=kTRUE)
Set axis alphanumeric.
THashList * GetLabels() const
virtual Int_t FindBin(Double_t x) const
virtual void GetCenter(Double_t *center) const
Return an array with the center of all bins.
virtual Int_t FindFixBin(Double_t x) const
Find bin number corresponding to abscissa x.
void RotateTitle(Bool_t rotate=kTRUE)
Rotate title by 180 degrees.
void SetMoreLogLabels(Bool_t more=kTRUE)
Set the kMoreLogLabels bit flag When this option is selected more labels are drawn when in log scale ...
TAxis & operator=(const TAxis &)
Assignment operator.
virtual void SetParent(TObject *obj)
const TArrayD * GetXbins() const
Bool_t HasBinWithoutLabel() const
this helper function checks if there is a bin without a label if all bins have labels, the axis can / will become alphanumeric
virtual void Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
Bool_t GetRotateTitle() const
Bool_t GetMoreLogLabels() 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...
THashList * fLabels
Object owning this axis.
TList * GetModifiedLabels() const