112   axis.TAxis::Copy(*
this);
 
 
 
  121      axis.TAxis::Copy(*
this);
 
 
  153   n = ndiv - (ndiv/100)*100;
 
 
  243         copyLabel->SetUniqueID(label->GetUniqueID());
 
 
  284   gPad->ExecuteEventAxis(event,px,py,
this);
 
 
  299   if (
IsAlphanumeric() && 
gDebug) 
Info(
"FindBin",
"Numeric query on alphanumeric axis - Sorting the bins or extending the axes / rebinning can alter the correspondence between the label and the bin interval.");
 
  302      if (
fParent == 
nullptr) 
return bin;
 
  306   } 
else  if ( !(
x < 
fXmax)) {     
 
  308      if (
fParent == 
nullptr) 
return bin;
 
 
  366         Info(
"FindBin",
"Label %s is not in the list and the axis is not alphanumeric - ignore it",label);
 
  370         Info(
"FindBin",
"Label %s not in the list. It will be added to the histogram",label);
 
 
  424   } 
else  if ( !(
x < 
fXmax)) {     
 
 
  542   if (
fNbins <= 0) 
return 0;
 
  545   if (bin <1 ) bin = 1;
 
 
  618    Warning(
"GetGMTimeOffset",
"Time format is not set!");
 
  622  if (
stime.Length() != 19) {
 
  623    Warning(
"GetGMTimeOffset",
"Bad time format!");
 
 
  665      Warning(
"Sort",
"Cannot sort. No labels");
 
  670      Error(
"Sort",
"Axis has no parent");
 
 
  719      out<<
"   "<<
name<<
subname<<
"->SetTimeDisplay(1);"<<std::endl;
 
  735      out<<
"   "<<
name<<
subname<<
"->SetBit(TAxis::kLabelsHori);"<<std::endl;
 
  739      out<<
"   "<<
name<<
subname<<
"->SetBit(TAxis::kLabelsVert);"<<std::endl;
 
  743      out<<
"   "<<
name<<
subname<<
"->SetBit(TAxis::kLabelsDown);"<<std::endl;
 
  747      out<<
"   "<<
name<<
subname<<
"->SetBit(TAxis::kLabelsUp);"<<std::endl;
 
  751      out<<
"   "<<
name<<
subname<<
"->CenterLabels(true);"<<std::endl;
 
  755      out<<
"   "<<
name<<
subname<<
"->CenterTitle(true);"<<std::endl;
 
  759      out<<
"   "<<
name<<
subname<<
"->RotateTitle(true);"<<std::endl;
 
  763      out<<
"   "<<
name<<
subname<<
"->SetDecimals();"<<std::endl;
 
  767      out<<
"   "<<
name<<
subname<<
"->SetMoreLogLabels();"<<std::endl;
 
  771      out<<
"   "<<
name<<
subname<<
"->SetNoExponent();"<<std::endl;
 
  776         if (
ml->GetLabNum() == 0)
 
  777            out<<
"   "<<
name<<
subname<<
"->ChangeLabelByValue("<<
ml->GetLabValue()<<
",";
 
  779            out<<
"   "<<
name<<
subname<<
"->ChangeLabel("<<
ml->GetLabNum()<<
",";
 
  780         out<<
ml->GetAngle()<<
"," 
  782            <<
ml->GetAlign()<<
"," 
  783            <<
ml->GetColor()<<
"," 
 
  811   for (bin=0; bin<= 
fNbins; bin++)
 
  813   for (bin=1; bin<= 
fNbins; bin++)
 
  815         Error(
"TAxis::Set", 
"bins must be in increasing order");
 
 
  829   for (bin=0; bin<= 
fNbins; bin++)
 
  831   for (bin=1; bin<= 
fNbins; bin++)
 
  833         Error(
"TAxis::Set", 
"bins must be in increasing order");
 
 
  857      if (s[0] != 0. && 
gDebug > 0)
 
  858         Info(
"SetAlphanumeric",
"Cannot switch axis %s of histogram %s to alphanumeric: it has non-zero content",
GetName(),
h->GetName());
 
 
  891      Error(
"SetBinLabel",
"Illegal bin number: %d",bin);
 
 
  929      if (
ml->GetLabNum() != num)
 
  932      if ((num != 0) || (
TMath::Abs(
v - 
ml->GetLabValue()) <= eps))
 
 
 1058   if (last < first || (first < 0 && last < 0) ||
 
 1059         (first > 
nCells && last > 
nCells) || (first == 0 && last == 0)
 
 1065      if (first<0) 
Warning(
"TAxis::SetRange",
"first < 0, 0 is used");
 
 1066      fFirst = std::max(first, 0);
 
 1067      if (last>
nCells) 
Warning(
"TAxis::SetRange",
"last > fNbins+1, fNbins+1 is used");
 
 
 1218   if (
R__b.IsReading()) {
 
 
 1272      Warning(
"TAxis::UnZoom",
"Cannot UnZoom if gPad does not exist. Did you mean to draw the TAxis first?");
 
 1282      if (
hobj1->GetDimension() == 2) {
 
 1284            hobj1->SetMinimum();
 
 1285            hobj1->SetMaximum();
 
 1298            hobj1->SetMinimum();
 
 1299            hobj1->SetMaximum();
 
 1305   TIter next(
gPad->GetListOfPrimitives());
 
 1307   while ((obj= next())) {
 
 1312         if (
hobj->GetDimension() == 2) {
 
 1318               hobj->GetYaxis()->SetRange(0,0);
 
 1322         if (
strcmp(
hobj->GetName(),
"hframe") == 0 ) {
 
 1331         hobj->GetXaxis()->SetRange(0,0);
 
 
 1347   if (factor <= 0) factor = 2;
 
 
 
 
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
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 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 length
 
R__EXTERN TStyle * gStyle
 
void Streamer(TBuffer &) override
Stream a TArrayD object.
 
void Copy(TArrayD &array) const
 
void Set(Int_t n) override
Set size of this array to n doubles.
 
Manages histogram axis attributes.
 
virtual Color_t GetTitleColor() const
 
virtual Color_t GetLabelColor() const
 
Int_t fNdivisions
Number of divisions(10000*n3 + 100*n2 + n1)
 
virtual Int_t GetNdivisions() const
 
virtual Color_t GetAxisColor() const
 
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title.
 
virtual Style_t GetTitleFont() const
 
virtual Float_t GetLabelOffset() const
 
virtual void SetAxisColor(Color_t color=1, Float_t alpha=1.)
Set color of the line axis and tick marks.
 
virtual void SetLabelSize(Float_t size=0.04)
Set size of axis labels.
 
virtual Style_t GetLabelFont() const
 
virtual void SetTitleFont(Style_t font=62)
Set the title font.
 
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels.
 
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
 
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title.
 
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 SetTitleColor(Color_t color=1)
Set color of axis title.
 
virtual Float_t GetTitleSize() const
 
virtual void Streamer(TBuffer &)
Stream an object of class TAttAxis.
 
virtual Float_t GetLabelSize() const
 
virtual Float_t GetTickLength() const
 
virtual void ResetAttAxis(Option_t *option="")
Reset axis attributes.
 
virtual Float_t GetTitleOffset() const
 
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length.
 
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
 
void Copy(TAttAxis &attaxis) const
Copy of the object.
 
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
 
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)
 
virtual void SetBinLabel(Int_t bin, const char *label)
Set label for bin.
 
Int_t fLast
Last bin to display.
 
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
 
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.
 
Int_t DistancetoPrimitive(Int_t px, Int_t py) override
Compute distance from point px,py to an axis.
 
TArrayD fXbins
Bin edges array in X.
 
TAxis()
Default constructor.
 
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.
 
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.
 
@ kCenterLabels
Bit 13 is used by TObject.
 
Bool_t fTimeDisplay
On/off displaying time values instead of numerics.
 
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.
 
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,...
 
TAxisModLab * FindModLab(Int_t num, Double_t v=0., Double_t eps=0.) const
Search for axis modifier by index or value.
 
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 SaveAttributes(std::ostream &out, const char *name, const char *subname) override
Save axis attributes as C++ statement(s) on output stream out.
 
TClass * IsA() const override
 
Int_t GetLast() const
Return last bin on the axis i.e.
 
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.
 
void Streamer(TBuffer &) override
Stream an object of class TAxis.
 
TAxis & operator=(const TAxis &)
Assignment operator.
 
~TAxis() override
Destructor.
 
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 const char * GetTimeFormat() const
 
virtual void GetLowEdge(Double_t *edge) const
Return an array with the low edge of all bins.
 
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.
 
Buffer base class used for serializing objects.
 
virtual Int_t GetEntries() const
 
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
 
This class stores the date and time with a precision of one second in an unsigned 32 bit word (950130...
 
TH1 is the base class of all histogram classes in ROOT.
 
virtual void GetStats(Double_t *stats) const
fill the array stats from the contents of this histogram The array stats must be correctly dimensione...
 
@ kIsZoomed
Bit set when zooming on Y axis.
 
@ kNstat
Size of statistics data (up to TProfile3D)
 
static void Optimize(Double_t A1, Double_t A2, Int_t nold, Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BWID, Option_t *option="")
Static function to compute reasonable axis limits.
 
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
 
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
 
void Rehash(Int_t newCapacity)
Rehash the hashlist.
 
TObject * FindObject(const char *name) const override
Find object using its name.
 
void Add(TObject *obj) override
 
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
 
The TNamed class is the base class for all named ROOT classes.
 
void Copy(TObject &named) const override
Copy this to obj.
 
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
 
const char * GetName() const override
Returns name of object.
 
void Streamer(TBuffer &) override
Stream an object of class TObject.
 
Collectable string class.
 
void SetString(const char *s)
 
const char * GetName() const override
Returns name of object.
 
Mother of all ROOT objects.
 
R__ALWAYS_INLINE Bool_t TestBit(UInt_t f) const
 
virtual UInt_t GetUniqueID() const
Return the unique object id.
 
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
 
void SetBit(UInt_t f, Bool_t set)
Set or unset the user status bits as specified in f.
 
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
 
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
 
virtual void SetUniqueID(UInt_t uid)
Set the unique object id.
 
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
 
void ToLower()
Change string to lower-case.
 
const char * Data() const
 
TString & ReplaceAll(const TString &s1, const TString &s2)
 
TString & Remove(Ssiz_t pos)
 
virtual void Streamer(TBuffer &)
Stream a string object.
 
TString & Append(const char *cs)
 
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
 
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
 
Double_t GetTimeOffset() const
 
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
 
Double_t Floor(Double_t x)
Rounds x downward, returning the largest integral value that is not greater than x.
 
Double_t Sqrt(Double_t x)
Returns the square root of x.
 
Long64_t BinarySearch(Long64_t n, const T *array, T value)
Binary search in an array of n values to locate value.
 
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.