<commit_before>// @(#)root/hist:$Name:  $:$Id: TAxis.h,v 1.9 2001/02/28 07:51:56 brun Exp $
// Author: <NAME>   12/12/94

/*************************************************************************
 * Copyright (C) 1995-2000, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TAxis
#define ROOT_TAxis


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TAxis                                                                //
//                                                                      //
// Axis class.                                                          //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TAttAxis
#include "TAttAxis.h"
#endif
#ifndef ROOT_TArrayD
#include "TArrayD.h"
#endif


class TAxis : public TNamed, public TAttAxis {

private:
        Int_t        fNbins;          //Number of bins
        Axis_t       fXmin;           //low edge of first bin
        Axis_t       fXmax;           //upper edge of last bin
        TArrayD      fXbins;          //Bin edges array in X
        Char_t      *fXlabels;        //!Labels associated to axis
        Int_t        fFirst;          //first bin to display
        Int_t        fLast;           //last bin to display
        Bool_t       fTimeDisplay;    //on/off displaying time values instead of numerics
        TString      fTimeFormat;     //Date&time format, ex: 09/12/99 12:34:00
        TObject     *fParent;         //!Object owning this axis

public:
        // TAxis status bits
        enum { kAxisRange   = BIT(11), 
               kCenterTitle = BIT(12),
               kRotateTitle = BIT(13) };

        TAxis();
        TAxis(Int_t nbins, Axis_t xmin, Axis_t xmax);
        TAxis(Int_t nbins, const Axis_t *xbins);
        TAxis(const TAxis &axis);
        virtual ~TAxis();
        virtual void     CenterTitle(Bool_t center=kTRUE);  // *MENU*
        const char      *ChooseTimeFormat(Double_t axislength=0);
        virtual void     Copy(TObject &axis);
        virtual void     Delete(Option_t *option="") {;}
        virtual Int_t    DistancetoPrimitive(Int_t px, Int_t py);
        virtual TObject *DrawClone(Option_t *option="") const {return 0;}
        virtual void     ExecuteEvent(Int_t event, Int_t px, Int_t py);
        virtual Int_t    FindBin(Axis_t x);
        virtual Int_t    FindFixBin(Axis_t x) const;
        virtual Axis_t   GetBinCenter(Int_t bin) const;
        virtual char    *GetBinLabel(Int_t bin) const;
        virtual Axis_t   GetBinLowEdge(Int_t bin) const;<commit_msg>Add new enum option kPalette<commit_after>// @(#)root/hist:$Name:  $:$Id: TAxis.h,v 1.10 2001/05/28 06:26:27 brun Exp $
// Author: <NAME>   12/12/94

/*************************************************************************
 * Copyright (C) 1995-2000, <NAME> and <NAME>.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TAxis
#define ROOT_TAxis


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TAxis                                                                //
//                                                                      //
// Axis class.                                                          //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
#ifndef ROOT_TAttAxis
#include "TAttAxis.h"
#endif
#ifndef ROOT_TArrayD
#include "TArrayD.h"
#endif


class TAxis : public TNamed, public TAttAxis {

private:
        Int_t        fNbins;          //Number of bins
        Axis_t       fXmin;           //low edge of first bin
        Axis_t       fXmax;           //upper edge of last bin
        TArrayD      fXbins;          //Bin edges array in X
        Char_t      *fXlabels;        //!Labels associated to axis
        Int_t        fFirst;          //first bin to display
        Int_t        fLast;           //last bin to display
        Bool_t       fTimeDisplay;    //on/off displaying time values instead of numerics
        TString      fTimeFormat;     //Date&time format, ex: 09/12/99 12:34:00
        TObject     *fParent;         //!Object owning this axis

public:
        // TAxis status bits
        enum { kAxisRange   = BIT(11), 
               kCenterTitle = BIT(12),
               kRotateTitle = BIT(15),
               kPalette     = BIT(16)};

        TAxis();
        TAxis(Int_t nbins, Axis_t xmin, Axis_t xmax);
        TAxis(Int_t nbins, const Axis_t *xbins);
        TAxis(const TAxis &axis);
        virtual ~TAxis();
        virtual void     CenterTitle(Bool_t center=kTRUE);  // *MENU*
        const char      *ChooseTimeFormat(Double_t axislength=0);
        virtual void     Copy(TObject &axis);
        virtual void     Delete(Option_t *option="") {;}
        virtual Int_t    DistancetoPrimitive(Int_t px, Int_t py);
        virtual TObject *DrawClone(Option_t *option="") const {return 0;}
        virtual void     ExecuteEvent(Int_t event, Int_t px, Int_t py);
        virtual Int_t    FindBin(Axis_t x);
        virtual Int_t    FindFixBin(Axis_t x) const;
        virtual Axis_t   GetBinCenter(Int_t bin) const;
        virtual char    *GetBinLabel(Int_t bin) const;
        virtual Axis_t   GetBinLowEdge(Int_t bin) const;
{'fraction_non_alphanumeric': 0.17150979153506002, 'fraction_numerical': 0.016266582438408086, 'mean_word_length': 1.1959084604715673, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4845322', 'n_tokens_mistral': 1696, 'n_tokens_neox': 1588, 'n_words': 443}