96 if (fNdivisions != 510) {
97 out<<
" "<<name<<subname<<
"->SetNdivisions("<<fNdivisions<<
");"<<std::endl;
99 if (fAxisColor != 1) {
100 if (fAxisColor > 228) {
102 out<<
" "<<name<<subname<<
"->SetAxisColor(ci);" << std::endl;
104 out<<
" "<<name<<subname<<
"->SetAxisColor("<<fAxisColor<<
");"<<std::endl;
106 if (fLabelColor != 1) {
107 if (fLabelColor > 228) {
109 out<<
" "<<name<<subname<<
"->SetLabelColor(ci);" << std::endl;
111 out<<
" "<<name<<subname<<
"->SetLabelColor("<<fLabelColor<<
");"<<std::endl;
113 if (fLabelFont != 62) {
114 out<<
" "<<name<<subname<<
"->SetLabelFont("<<fLabelFont<<
");"<<std::endl;
116 if (
TMath::Abs(fLabelOffset-0.005) > 0.0001) {
117 out<<
" "<<name<<subname<<
"->SetLabelOffset("<<fLabelOffset<<
");"<<std::endl;
120 out<<
" "<<name<<subname<<
"->SetLabelSize("<<fLabelSize<<
");"<<std::endl;
123 out<<
" "<<name<<subname<<
"->SetTitleSize("<<
fTitleSize<<
");"<<std::endl;
126 out<<
" "<<name<<subname<<
"->SetTickLength("<<fTickLength<<
");"<<std::endl;
129 out<<
" "<<name<<subname<<
"->SetTitleOffset("<<fTitleOffset<<
");"<<std::endl;
134 out<<
" "<<name<<subname<<
"->SetTitleColor(ci);" << std::endl;
136 out<<
" "<<name<<subname<<
"->SetTitleColor("<<
fTitleColor<<
");"<<std::endl;
139 out<<
" "<<name<<subname<<
"->SetTitleFont("<<
fTitleFont<<
");"<<std::endl;
149 else fAxisColor = color;
159 else fLabelColor = color;
215 if (!optim) fNdivisions = -
abs(n);
282 void TAttAxis::Streamer(
TBuffer &R__b)
virtual void SetTitleOffset(Float_t offset=1)
Set distance between the axis and the axis title Offset is a correction factor with respect to the "s...
Float_t GetLabelSize(Option_t *axis="X") const
Return label size.
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
virtual void ResetAttAxis(Option_t *option="")
Reset axis attributes.
R__EXTERN TStyle * gStyle
Float_t GetTickLength(Option_t *axis="X") const
Return tick length.
static void SaveColor(std::ostream &out, Int_t ci)
Save a color with index > 228 as a C++ statement(s) on output stream out.
virtual void SetLabelColor(Color_t color=1, Float_t alpha=1.)
Set color of labels.
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
Float_t GetTitleSize(Option_t *axis="X") const
Return title size.
Buffer base class used for serializing objects.
virtual void SetTitleFont(Style_t font=62)
Set the title font.
Manages histogram axis attributes.
virtual void SetLabelOffset(Float_t offset=0.005)
Set distance between the axis and the labels The distance is expressed in per cent of the pad width...
virtual void SetLabelFont(Style_t font=62)
Set labels' font.
virtual Int_t GetVersionOwner() const =0
void Copy(TAttAxis &attaxis) const
Copy of the object.
static Vc_ALWAYS_INLINE Vector< T > abs(const Vector< T > &x)
virtual ~TAttAxis()
Destructor.
Style_t GetLabelFont(Option_t *axis="X") const
Return label font.
Color_t GetAxisColor(Option_t *axis="X") const
Return the axis color number in the axis.
Double_t length(const TVector2 &v)
Float_t GetTitleOffset(Option_t *axis="X") const
Return title offset.
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 The size is expressed in per cent of the pad width.
virtual void SetTitleColor(Color_t color=1)
Set color of axis title.
virtual void SetTitleSize(Float_t size=0.04)
Set size of axis title The size is expressed in per cent of the pad width.
static Int_t GetColorTransparent(Int_t color, Float_t a)
Static function: Returns the transparent color number corresponding to n.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=0)=0
virtual void SaveAttributes(std::ostream &out, const char *name, const char *subname)
Save axis attributes as C++ statement(s) on output stream out.
Color_t GetLabelColor(Option_t *axis="X") const
Return the label color number in the axis.
Int_t GetNdivisions(Option_t *axis="X") const
Return number of divisions.
Color_t GetTitleColor(Option_t *axis="X") const
Return title color.
Float_t GetLabelOffset(Option_t *axis="X") const
Return label offset.
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length The length is expressed in per cent of the pad width.
Style_t GetTitleFont(Option_t *axis="X") const
Return title font.
virtual Version_t ReadVersion(UInt_t *start=0, UInt_t *bcnt=0, const TClass *cl=0)=0