125 virtual const char *
GetTicks()
const;
138 return (fXbins.
GetSize() != 0);
142 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.
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...
virtual void SaveAttributes(std::ostream &out, const char *name, const char *subname)
Save axis attributes as C++ statement(s) on output stream out.
const char * GetBinLabel(Int_t bin) const
Return label for bin.
Int_t GetFirst() const
Return first bin on the axis i.e.
virtual void SetLimits(Double_t xmin, Double_t xmax)
virtual void SetTimeFormat(const char *format="")
Change the format used for time plotting.
virtual Double_t GetBinLowEdge(Int_t bin) const
Return low edge of bin.
Bool_t GetCenterLabels() const
Bool_t TestBit(UInt_t f) const
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.
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 TObject * GetParent() const
virtual void Copy(TObject &axis) const
Copy axis structure to another axis.
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)
Bool_t GetDecimals() const
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
TAxis()
Default constructor.
virtual Double_t GetBinUpEdge(Int_t bin) const
Return up edge of bin.
Bool_t GetMoreLogLabels() 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)
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
virtual Bool_t GetTimeDisplay() const
The TNamed class is the base class for all named ROOT classes.
THashList * GetLabels() const
virtual void SetDrawOption(Option_t *="")
Set drawing option for object.
virtual void GetCenter(Double_t *center) const
Return an array with the center of all bins.
virtual Double_t GetBinCenter(Int_t bin) const
Return center of bin.
virtual void LabelsOption(Option_t *option="h")
Set option(s) to draw axis with labels option can be:
virtual void GetLowEdge(Double_t *edge) const
Return an array with the lod edge of all bins.
TList * GetModifiedLabels() const
virtual const char * GetTimeFormat() const
virtual void SetTimeDisplay(Int_t value)
Bool_t GetRotateTitle() const
virtual void SetDefaults()
Set axis default values (from TStyle)
virtual void ImportAttributes(const TAxis *axis)
Copy axis attributes to this.
virtual const char * GetTicks() const
Return the ticks option (see SetTicks)
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...
Int_t GetLast() const
Return last bin on the axis i.e.
const char * GetTitle() const
Returns title of object.
Class to manage histogram axis.
virtual ~TAxis()
Destructor.
void SetCanExtend(Bool_t canExtend)
virtual void UnZoom()
Reset first & last bin to the full range.
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 Delete(Option_t *="")
Delete this object.
virtual void SetBinLabel(Int_t bin, const char *label)
Set label for bin.
virtual const char * GetTimeFormatOnly() const
Return only the time format from the string fTimeFormat.
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).
Bool_t IsVariableBinSize() const
Mother of all ROOT objects.
virtual Int_t FindFixBin(Double_t x) const
Find bin number corresponding to abscissa x.
void SetAlphanumeric(Bool_t alphanumeric=kTRUE)
Set axis alphanumeric.
virtual Double_t GetBinWidth(Int_t bin) const
Return bin width.
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 ...
Bool_t GetNoExponent() const
TAxis & operator=(const TAxis &)
Assignment operator.
virtual Int_t FindBin(Double_t x) const
virtual void SetParent(TObject *obj)
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 Set(Int_t nbins, Double_t xmin, Double_t xmax)
Initialize axis with fix bins.
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 TArrayD * GetXbins() const
THashList * fLabels
Object owning this axis.
const char * Data() const