Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
THLimitsFinder.h
Go to the documentation of this file.
1// @(#)root/hist:$Id$
2// Author: Rene Brun 30/08/99
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11#ifndef ROOT_THLimitsFinder
12#define ROOT_THLimitsFinder
13
14
15//////////////////////////////////////////////////////////////////////////
16// //
17// THLimitsFinder //
18// //
19// class to find nice axis limits //
20// //
21//////////////////////////////////////////////////////////////////////////
22
23
24#include "TObject.h"
25
26class TH1;
27
28class THLimitsFinder : public TObject {
29
30protected:
31 static THLimitsFinder *fgLimitsFinder; ///<! Pointer to hist limits finder
32
33public:
35 ~THLimitsFinder() override;
39
40 static void Optimize(Double_t A1, Double_t A2, Int_t nold
41 ,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BWID, Option_t *option="");
42 static void OptimizeLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger);
44 static void SetLimitsFinder(THLimitsFinder *finder);
45
46 ClassDefOverride(THLimitsFinder,0) //Class to find best axis limits
47};
48
49#endif
#define h(i)
Definition RSha256.hxx:106
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t option
float xmin
float ymin
float xmax
float ymax
TH1 is the base class of all histogram classes in ROOT.
Definition TH1.h:59
Class to compute nice axis limits.
static void SetLimitsFinder(THLimitsFinder *finder)
This static function can be used to specify a finder derived from THLimitsFinder.
~THLimitsFinder() override
static THLimitsFinder * GetLimitsFinder()
Return pointer to the current finder.
static void OptimizeLimits(Int_t nbins, Int_t &newbins, Double_t &xmin, Double_t &xmax, Bool_t isInteger)
Optimize axis limits.
static THLimitsFinder * fgLimitsFinder
! Pointer to hist limits finder
virtual Int_t FindGoodLimits(TH1 *h, Double_t xmin, Double_t xmax)
Compute the best axis limits for the X axis.
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.
Mother of all ROOT objects.
Definition TObject.h:41