[root] / trunk / hist / hist / src / TAxis.cxx Repository:
ViewVC logotype

Log of /trunk/hist/hist/src/TAxis.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 15 09:28:20 2013 UTC (2 years ago) by moneta
File length: 34045 byte(s)
Diff to previous 48296
fix compiler warning

Revision 48296 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 15 09:03:04 2013 UTC (2 years ago) by moneta
File length: 34056 byte(s)
Diff to previous 48279
chnge GetBinUpEdge as suggested in  https://savannah.cern.ch/bugs/?99815

Revision 48279 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 14 11:15:05 2013 UTC (2 years ago) by moneta
File length: 34142 byte(s)
Diff to previous 48031
Fix SetRangeUser to correctly have lower and upper edges. So include only bins which have lower edge >= lower range value and 
upper edge <= upper range value

It fixes   https://savannah.cern.ch/bugs/index.php?99777

Revision 48031 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 14 09:34:54 2012 UTC (2 years, 1 month ago) by moneta
File length: 33899 byte(s)
Diff to previous 47909
from Gabriel: rename Set/CanRebin Set/CanExtend

Revision 47909 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 7 10:28:04 2012 UTC (2 years, 1 month ago) by moneta
File length: 34069 byte(s)
Diff to previous 46234
from Gabriel: 

 Introduce possibility to rebin each axis individually
see https://savannah.cern.ch/bugs/?89628

Added a new bit in TAxis to tag an axis as alphanumeric 
(i.e. when it contains only labels)

fixed kDecimal problem. Put now as Bit 7 of TObject bits, instead of using TAxis::fBits2

Add new methods: 

  TH1::SetCanRebin() which can enable/disable rebinning for all axes or for each axis individually
  This will replace the TH1::kCanRebin bit which will be deprecated
 
  TH1::CanRebinAllAxes() added to provide the functionality of TestBit(TH1::kCanRebin)

inline some TAxis methods

update stressHistogram to use new methods SetCanRebin and CanRebin

Revision 46234 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 27 14:59:48 2012 UTC (2 years, 3 months ago) by moneta
File length: 36135 byte(s)
Diff to previous 45711
from Gabriel: 

 New implementation of TAxis::SetRange
  which fixes the problem with underflow/overflow 

see https://savannah.cern.ch/task/?19000

Revision 45711 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 27 15:54:12 2012 UTC (2 years, 4 months ago) by axel
File length: 35597 byte(s)
Diff to previous 45021
From Marco van Leeuwen:
Attached a small diff to fix a bug in the copy constructor. Currently,
you can get a segvio when copying, because the Copy function checks the
value of fLabels and tries to call Delete if it is non-zero; for a
freshly instantiated TAxis, with the copy constructor, fLabels is not
initialised.

Revision 45021 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 12 09:55:26 2012 UTC (2 years, 6 months ago) by couet
File length: 35585 byte(s)
Diff to previous 44507
Patch proposed by Philippe Gras and Julian Sitarek here:
https://savannah.cern.ch/bugs/?94401#comment21

The time axis behavior should now be correct along time zone and
summer time saving time.

New example test have been introduced to test the time axis (timeonaxis3.C)

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 35810 byte(s)
Diff to previous 44090
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 44090 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 3 14:14:47 2012 UTC (2 years, 8 months ago) by couet
File length: 35740 byte(s)
Diff to previous 43737
Fix https://savannah.cern.ch/bugs/?93931.
A time axis defined with the GMT option, saved into a root file in a given time zone, was different when displayed in an other time zone. The time zone offset in which the axis was created is now saved with the time axis offset allowing to make the right adjustments when the axis is displayed in an other time zone.

Revision 43737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 13 15:33:58 2012 UTC (2 years, 9 months ago) by moneta
File length: 35549 byte(s)
Diff to previous 43736
fix documentation of FindFixBin (see https://savannah.cern.ch/bugs/index.php?93644 )

Revision 43736 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 13 15:16:34 2012 UTC (2 years, 9 months ago) by pcanal
File length: 35389 byte(s)
Diff to previous 41375
Since the TAxis copy constructor exist, implement the assignment operator too (and fix TAxis::Copy to no longer leak memory)

Revision 41375 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 12 16:03:30 2011 UTC (3 years, 3 months ago) by moneta
File length: 35195 byte(s)
Diff to previous 40122
Fix in TAxis::Set when we had before variable bins

see http://root.cern.ch/phpBB3/viewtopic.php?t=13517

Revision 40122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 4 13:18:20 2011 UTC (3 years, 6 months ago) by couet
File length: 35158 byte(s)
Diff to previous 37655
- From Otto Schaile: Zoom with superimposed 2dim histograms did not work properly. Zooming and un-zooming axis on the canvas produced by a macro similar to the following one, did not work:
{
TFile f("hsimple_hpr.root");
hpxpy->Draw("BOX");
hpxpy2->Draw("BOXSAME");
hpxpy2->SetLineColor(kRed);
gPad->Modified();
}

Revision 37655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 20 14:04:00 2010 UTC (4 years, 1 month ago) by moneta
File length: 35086 byte(s)
Diff to previous 37644
Fix a bug i nmerging histogram with labels when the histograms have different labels
see https://savannah.cern.ch/bugs/?75902

In fixing this bug improve as well the treatment of the labels in TH1::Merge: 

 - use merge with labels only when do not exist bins with non-zero content and with no label assigned
 - when the kCanRebin bit is not set unknown labels are all put in the underflow bin 

TAxis::FindBin(const char*) is modified to return 0 (instead of -1) for not-existing labels when the 
bit TH1::kCanRebin is FALSE

Change also TH1::GetStats and Th1::Fill(const char) 
  In case of existing labels and the TH1::kCanRebin set the statistics in x is not accumulated and not 
  computed. It is set to 0.

Revision 37644 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 18 18:24:04 2010 UTC (4 years, 1 month ago) by brun
File length: 34144 byte(s)
Diff to previous 36506
Speed-up TAxis::FindBin(const char*)

Revision 36506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 4 20:58:59 2010 UTC (4 years, 2 months ago) by brun
File length: 34225 byte(s)
Diff to previous 36454
From Chris Crawford. see : https://savannah.cern.ch/patch/?3978
Implement a new function (also in context menu)
void TAxis::ZoomOut(Double_t factor, Double_t offset)
   // Zoom out by a factor of 'factor' (default =2)
   //   uses previous zoom factor by default
   // Keep center defined by 'offset' fixed
   //   ie. -1 at left of current range, 0 in center, +1 at right

Revision 36454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 31 18:10:39 2010 UTC (4 years, 2 months ago) by brun
File length: 33513 byte(s)
Diff to previous 36018
Fix a problem in TAxis::Copy reported at https://savannah.cern.ch/bugs/?74629

Revision 36018 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 14:24:20 2010 UTC (4 years, 3 months ago) by couet
File length: 33477 byte(s)
Diff to previous 35837
coverity #11460

Revision 35837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 28 12:51:58 2010 UTC (4 years, 3 months ago) by brun
File length: 33539 byte(s)
Diff to previous 35835
A better fix

Revision 35835 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 28 12:37:59 2010 UTC (4 years, 3 months ago) by brun
File length: 33509 byte(s)
Diff to previous 35523
Fix a coverity report CID 10172

Revision 35523 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 10:20:41 2010 UTC (4 years, 4 months ago) by brun
File length: 33505 byte(s)
Diff to previous 35520
Fix coverity report 10571

Revision 35520 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 10:12:38 2010 UTC (4 years, 4 months ago) by brun
File length: 33526 byte(s)
Diff to previous 35505
Replace sprintf by snprintf

Revision 35505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 08:18:20 2010 UTC (4 years, 4 months ago) by brun
File length: 33522 byte(s)
Diff to previous 35475
Fix strlcpy calls

Revision 35475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 18:04:46 2010 UTC (4 years, 4 months ago) by brun
File length: 33522 byte(s)
Diff to previous 35014
Replace calls to strncpy by strlcpy

Revision 35014 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 14:29:42 2010 UTC (4 years, 5 months ago) by couet
File length: 33522 byte(s)
Diff to previous 33665
- In SetTimeOffset the 2nd parameter in the call to strftime
  should be 20 and not 256 (coverity).

Revision 33665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 31 10:30:31 2010 UTC (4 years, 7 months ago) by brun
File length: 33523 byte(s)
Diff to previous 33663
When zooming/unzooming, take also into account the cases where the parent of the zoomed axis
can be a non-TH1 object, eg TF1 or TGraph.

Revision 33663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 31 07:01:04 2010 UTC (4 years, 7 months ago) by brun
File length: 32854 byte(s)
Diff to previous 29899
Modify TAxis::UnZoom such that when unzooming one of the axis all histograms in the pad
have their bit kIsZoomed reset.

Revision 29899 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 25 12:51:00 2009 UTC (5 years, 5 months ago) by moneta
File length: 32604 byte(s)
Diff to previous 27982
- revert beahaviour of TH2::ProjectionX,Y TH2::ProfileX,Y , TH3::Project3D and TH3::ProjectProfile when an histogram with the same name exists (see issue https://savannah.cern.ch/bugs/index.php?54340 )
Now the histogram is re-used if with same name, type and compatible axis. In case of incompatibility a NULL pointer is returned. 

Fix also various small issues in all the projection functions, related when setting the range, the number of entries  and the use of the various options

Fix a problem in TAxis::SetRange when passing a negative upper value. Now returns in that case Nbins()

Fix error messages in TH1::Chi2TestX

Revision 27982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 28 19:05:50 2009 UTC (5 years, 9 months ago) by brun
File length: 32077 byte(s)
Diff to previous 25797
Implement a new function as suggested at http://root.cern.ch/phpBB2/viewtopic.php?t=8263
Double_t TAxis::GetBinCenterLog(Int_t bin) const
{
   // Return center of bin in log
   // With a log-equidistant binning for a bin with low and up edges, the mean is : 
   // 0.5*(ln low + ln up) i.e. sqrt(low*up) in logx (e.g. sqrt(10^0*10^2) = 10). 
   //Imagine a bin with low=1 and up=100 : 
   // - the center in lin is (100-1)/2=50.5 
   // - the center in log would be sqrt(1*100)=10 (!=log(50.5)) 
   // NB: if the low edge of the bin is negative, the function returns the bin center
   //     as computed by TAxis::GetBinCenter

Revision 25797 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 13 17:12:07 2008 UTC (6 years, 3 months ago) by brun
File length: 31103 byte(s)
Diff to previous 22694
From Axel:
Test for GetParent() != 0 before using it; can happen in the context of THnSparse.

Revision 22694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 20:23:21 2008 UTC (6 years, 10 months ago) by rdm
File length: 31054 byte(s)
Diff to previous 21627
move hist, histpainter, spectrum and spectrumpainter in the hist package.

Revision 21627 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 10 16:19:52 2008 UTC (7 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31054 byte(s)
Diff to previous 21285
Remove a misleading "-" character in the description of TAxis::GetFirst and TAxis::GetLast

Revision 21285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 10:24:05 2007 UTC (7 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31052 byte(s)
Diff to previous 20882
Fix documentation error in TAxis::SetRange

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 31052 byte(s)
Diff to previous 20372
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20372 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 16 14:28:16 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31052 byte(s)
Diff to previous 19826
n TAxis::setRangeUser fix problem reported at: https://savannah.cern.ch/bugs/index.php
The solution is to use FindFixBin instead of FindBin.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 31046 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 31094 byte(s)
Diff to previous 19636
remove :$ from tag line

Revision 19636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 17 09:12:38 2007 UTC (7 years, 5 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31104 byte(s)
Diff to previous 19154
Change the API for TH1::RebinAxis from
void     RebinAxis(Double_t x, const char *ax);
to
void     RebinAxis(Double_t x, TAxis *axis);

Revision 19154 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 24 09:13:35 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31108 byte(s)
Diff to previous 17924
In TAxis::Copy also copy bin labels if any.

Revision 17924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 13 05:36:09 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30998 byte(s)
Diff to previous 17765
Remove unused reference to TVirtualX.h.

Revision 17765 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 7 20:56:50 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31021 byte(s)
Diff to previous 17729
-Delete the body of TAxis::ExecuteEvent and instead execute the new
function TVirtualPad::ExecuteEventAxis.
-in TPad::UnZoom use TVirtualpad::SetView
-Remove include TView.h

Revision 17729 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 15:00:56 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38082 byte(s)
Diff to previous 17612
In the Streamer functions replace the lines like
         TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
         TPad::Class()->WriteBuffer(b,this);
by
         b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
         b.WriteClassBuffer(TPad::Class(),this);

Revision 17612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 1 14:58:44 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38074 byte(s)
Diff to previous 17561
Use a forward declaration of TList instead of including TList.h

Revision 17561 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 29 15:10:49 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38051 byte(s)
Diff to previous 17338
-Add include "TROOT.h" in all implementation files that were assuming
that TROOT was included via TClass.h


-In TClass.h:
 --Remove the include of TROOT.h
 --add the following static member
   static IdMap_t    *fgIdMap;          //Map from typeid to TClass pointer

 --add the following functions:
   static void           AddClass(TClass *cl);
   static void           RemoveClass(TClass *cl);

 --Replace the inline definitions of GetClass functions by
   template <typename T> TClass* GetClass(      T**       /* dummy */) { return GetClass((T*)0); }
   template <typename T> TClass* GetClass(const T**       /* dummy */) { return GetClass((T*)0); }

-In TClass.cxx:
 --Instead of forwarding the calls to gROOT->GetClass, move the code
  originally in TROOT in the TClass::GetClass functions
 --Move class TMapTypeToTClass from TROOT to TClass.

Revision 17338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 16:10:11 2007 UTC (8 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38032 byte(s)
Diff to previous 15749
Remove TMath.h from TH1.h and add TMath.h to all files previously assuming TMath.h
via TH1.h
This should complete the changes related to TMath.

Revision 15749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 10 10:38:17 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38013 byte(s)
Diff to previous 15672
Add a protection in TAxis::Unzoom in case no pad has been craeted.

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 37992 byte(s)
Diff to previous 15082
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 15082 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 17 16:37:26 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/hist/src/TAxis.cxx
File length: 37993 byte(s)
Diff to previous 14872
- Coding conventions.

Revision 14872 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 28 08:43:05 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/hist/src/TAxis.cxx
File length: 39158 byte(s)
Diff to previous 14862
- The ESC key press is now handle in TRootCanvas. So ExecuteEvent is now
  simplified.

Revision 14862 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 27 09:26:38 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/hist/src/TAxis.cxx
File length: 39226 byte(s)
Diff to previous 14420
- In ExecuteEvent, when ESC is pressed, the current editing is canceled.
  That's a convenient way to avoid unwanted changes or moves.

Revision 14420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 27 06:38:46 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 39067 byte(s)
Diff to previous 14336
Fix a memory leak in TAxis in case TAxis::SetBinLabel is called.

Revision 14336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by pcanal
Original Path: trunk/hist/src/TAxis.cxx
File length: 38978 byte(s)
Diff to previous 13987
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning:  This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined.  Simply add the
proper include directive.

Revision 13987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 3 21:55:39 2006 UTC (8 years, 11 months ago) by pcanal
Original Path: trunk/hist/src/TAxis.cxx
File length: 38956 byte(s)
Diff to previous 13485
Update of spacing and documentation to match the coding rule

Revision 13485 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 4 10:51:27 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38909 byte(s)
Diff to previous 13094
Replace all references to Axis_t and Stat_t by Double_t in all histogram classes.

Following several recent requests, implement new functions
to search the bin with a specified content.

Double_t TH1::GetBinWithContent(Double_t c, Int_t &binx, Int_t firstx, Int_t lastx,Double_t maxdiff) const
{
   // compute first binx in the range [firstx,lastx] for which
   // diff = abs(bin_content-c) <= maxdiff
   // In case several bins in the specified range with diff=0 are found
   // the first bin found is returned in binx.
   // In case several bins in the specified range satisfy diff <=maxdiff
   // the bin with the smallest difference is returned in binx.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins.
   // NOTE2: if maxdiff=0 (default), the first bin with content=c is returned.

Double_t TH2::GetBinWithContent2(Double_t c, Int_t &binx, Int_t &biny, Int_t firstx, Int_t lastx, Int_t firsty, Int_t lasty, Double_t maxdiff) const
{
   // compute first cell (binx,biny) in the range [firstx,lastx](firsty,lasty] for which
   // diff = abs(cell_content-c) <= maxdiff
   // In case several cells in the specified range with diff=0 are found
   // the first cell found is returned in binx,biny.
   // In case several cells in the specified range satisfy diff <=maxdiff
   // the cell with the smallest difference is returned in binx,biny.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins in X
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins in X.
   //        if firsty <= 0, firsty is set to bin 1
   //        if (lasty < firsty then firsty is set to the number of bins in Y
   //        ie if firsty=0 and lasty=0 (default) the search is on all bins in Y.
   // NOTE2: if maxdiff=0 (default), the first cell with content=c is returned.

Double_t TH3::GetBinWithContent3(Double_t c, Int_t &binx, Int_t &biny, Int_t &binz, Int_t firstx, Int_t lastx, Int_t firsty, Int_t lasty, Int_t firstz, Int_t lastz, Double_t maxdiff) const
{
   // compute first cell (binx,biny,binz) in the range [firstx,lastx](firsty,lasty][firstz,lastz] for which
   // diff = abs(cell_content-c) <= maxdiff
   // In case several cells in the specified range with diff=0 are found
   // the first cell found is returned in binx,biny,binz.
   // In case several cells in the specified range satisfy diff <=maxdiff
   // the cell with the smallest difference is returned in binx,biny,binz.
   // In all cases the function returns the smallest difference.
   //
   // NOTE1: if firstx <= 0, firstx is set to bin 1
   //        if (lastx < firstx then firstx is set to the number of bins in X
   //        ie if firstx=0 and lastx=0 (default) the search is on all bins in X.
   //        if firsty <= 0, firsty is set to bin 1
   //        if (lasty < firsty then firsty is set to the number of bins in Y
   //        ie if firsty=0 and lasty=0 (default) the search is on all bins in Y.
   //        if firstz <= 0, firstz is set to bin 1
   //        if (lastz < firstz then firstz is set to the number of bins in Z
   //        ie if firstz=0 and lastz=0 (default) the search is on all bins in Z.
   // NOTE2: if maxdiff=0 (default), the first cell with content=c is returned.

Revision 13094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 31 17:00:46 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/hist/src/TAxis.cxx
File length: 38858 byte(s)
Diff to previous 12547
Mod in UnZoom() to avoid the follwoing problem:

1) Draw a 2D histogram with a user defined maximum
2) Zoom (using the mouse) on Y axis
3) Unzoom the Y axis. This reset the histogram maximum and minimum to the
   automatic values.

The was not the case on the X axis. Y axis now behaves like X one.

Revision 12547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 10:45:07 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38832 byte(s)
Diff to previous 12422
Changes to make the rulechecker happy in directory hist.
The class TSpectrum still needs to be changed.

Revision 12422 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 30 09:37:58 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38832 byte(s)
Diff to previous 11829
Support zooming on a normalized histogramCVS: ----------------------------------------------------------------------

Revision 11829 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 20 06:54:08 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38606 byte(s)
Diff to previous 11387
In the TAxis::Set functions do not call TAxis::SetDefaults if the axis
has already a parent. This resolves a problem with axis attributes being reset
in case of histograms with automatic binning.

Revision 11387 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 21 09:15:05 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38564 byte(s)
Diff to previous 10754
From Olivier:
- In TPaletteAxis:: ExecuteEvent and TAxis::ExecuteEvent the zoom on
  logarithmic Z-Axis didn't work.

Revision 10754 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 10 22:22:38 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 38082 byte(s)
Diff to previous 9946
In TAxis::SavePrimitive save also the axis range

Revision 9946 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 08:41:44 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 37970 byte(s)
Diff to previous 9873
From Ilka:
The option rotate axis title was not saved in the generated code -
minor fix in TAxis::SaveAttributes method.

Revision 9873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 12:21:48 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 37869 byte(s)
Diff to previous 9838
In TAxis::SetRangeUser call SetMinimum/SetMaximum in case
  of a yaxis and 1-d histogram
  of a zaxis and 2-d histogram

Revision 9838 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 24 12:59:18 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 37558 byte(s)
Diff to previous 9383
Introduce a new function TAxis::SetDefaults called by the various TAxis::Set functions.

Revision 9383 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 3 20:37:26 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 37723 byte(s)
Diff to previous 9217
Add a new function
  void TAxis::ImportAttributes(const TAxis *axis)
This new function is called from TH2::ProjectionX,Y and TH2::SlicesX,Y

Revision 9217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 08:23:27 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 36424 byte(s)
Diff to previous 9169
In TAxis class
==============
Add a new data member
   UShort_t     fBits2;          //second bit status word
Add new enum kDecimals
Add new functions:

         Bool_t  GetDecimals() const;
  virtual void   SetDecimals(Bool_t dot=kTRUE);  // *TOGGLE*
// Set the Decimals flag
// By default, blank characters are stripped, and then the
// label is correctly aligned. The dot, if last character of the string,
// is also stripped, unless this option is specified.
// One can disable the option by calling axis.SetDecimals(kTRUE).
// The flag (in fBits2) is passed to the drawing function TGaxis::PaintAxis

in TGaxis class
===============
Add new function:
   virtual void  SetDecimals(Bool_t dot=kTRUE);
     (same as TAxis::SetDecimals)

Modify TGaxis::PaintAxis to take into account the SetDecimals:
// Format of labels.
// -----------------
//
//   Blank characters are stripped, and then the
//   label is correctly aligned. the dot, if last
//   character of the string, is also stripped,
//   unless the option "." (a dot, or period) is specified.
//   if SetDecimals(kTRUE) has been called (bit TAxis::kDecimals set).
//   all labels have the same number of decimals after the "."
//   The same is true if gStyle->SetStripDecimals(kFALSE) has been called.

Revision 9169 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 11 07:33:43 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 35461 byte(s)
Diff to previous 8376
In TAxis::FindBin(const char *label), set automatically the bit kCanRebin
on the parent histogram when fLabels=0.
Detect validity range of the axis and fix it in case fXmax<=fXmin.

With this change, one can create a histogram without setting the limits,
without calling SetBit(TH1::kCanRebin) and fill it directly with strings.

Revision 8376 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 12 09:45:07 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 35384 byte(s)
Diff to previous 8371
also make CenterLabels() and CenterTitle() *TOGGLE* context menu items.

Revision 8371 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 12 00:30:43 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 34903 byte(s)
Diff to previous 8142
change methods RotateTitle(), SetMoreLogLabels(), SetNoExponent() to
*TOGGLE* type. Several more methods toggling status bits can be changed
to *TOGGLE* type. Olivier, please check.

Revision 8142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 6 15:37:11 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 34221 byte(s)
Diff to previous 7668
In TAxis::ExecuteEvent, implement zooming for the Z axis of a TH3

Revision 7668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 27 15:15:48 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 34192 byte(s)
Diff to previous 7654
From Damir and Olivier:

Correct a few remaining problems for time axis. Now, the time stored in
the format is always expressed in UTC. The local time is calculated
only at display time if the "gmt" option of SetTimeOffset is not used.
This allows to send a plot to someone in another time zone without
discrepancies on the time displayed.
If the plot uses "gmt", it will always show the same, whatever time
zone. If not, the time displayed will be the one local to the
displaying machine.

Revision 7654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 25 17:12:30 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 34263 byte(s)
Diff to previous 7413
From Olivier:

Implement suggestion from Damir Buskulic:

- Take into account the decimal part of the time offset.
- New parameter "option" in SetTimeOffset. Default value is "local"
  meaning the time offset should be consider as a local time. It can
  be set to "gmt" meaning the time offset should be consider as GMT time.

Revision 7413 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 8 07:55:26 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 33756 byte(s)
Diff to previous 7399
In TAxis::SetBinLabel, add support for redefining the label for a bin
with an existing label (thanks to Karoly Banicz)

Revision 7399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 6 13:40:55 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 33467 byte(s)
Diff to previous 7334
From Olivier:
Fix a problem in TAxis::GetTimeFormat

Revision 7334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 23 14:56:50 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 33460 byte(s)
Diff to previous 7266
From Olivier:
  Save the new axis attributes (MoreLogLabels and noExponent) when axis
are saved in a canvas.C file.

Revision 7266 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 12 09:18:01 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 33258 byte(s)
Diff to previous 7234
Add new function TAxis::SetMoreLogLabels to draw more labels in case
of an axis in log scale with a small number of decades.
The options is kept in TAxis via the new bit kMoreLogLabels.
The corresponding changes in TGaxis to automatically import the TAxis option.
The bits in TGaxis duplicating the bits in TAxis have been removed.
The new function SetMoreLogLabels is visible in the TAxis context menu.

Revision 7234 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 8 15:30:11 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 32822 byte(s)
Diff to previous 7233
Missing include declaration "Time.h"

Revision 7233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 8 15:26:53 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 32804 byte(s)
Diff to previous 7200
From Olivier:

In TGaxis and TAxis the time offset in now managed without using TDatime.
Using TDatime was not a good idea because its starting date is 1995. The
new mechanisms uses now 1970 (like UNIX) as starting date. Note that the
functionality and examples given in the HowTo page and documentation
remains exactly the same.

Revision 7200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 2 17:09:53 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 32684 byte(s)
Diff to previous 6455
From Olivier:

It is now possible to set a time offset equal to zero for time axis. When
the time offset is zero, the axis limits are considered as absolute times.
The following example shows how it works:

{
   TDatime T1(1998,01,05,00,00,00); // First date
   int X1 = T1.Convert();

   TDatime T2(2002,12,31,00,00,00); // Second date
   int X2 = T2.Convert();

   TH1D *iT = new TH1D("iT","time axis",1000,X1,X2);
   iT->GetXaxis()->SetTimeDisplay(1);
   iT->GetXaxis()->SetTimeFormat("%d\.%m\.%y");
   iT->GetXaxis()->SetTimeOffset(0);
   iT->GetXaxis()->SetLabelSize( 0.03 );
   iT->Draw();
}

Revision 6455 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 16 14:20:41 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 32734 byte(s)
Diff to previous 6430
From Olivier:
Add new functionality in the histogram title.
If the title is of the form
  stringt;stringx;stringy;stringz
the histogram title will stringt, the x axis title will be stringx, etc
example:
  TH1F* h1=new TH1F("h1","Histogram title;X Axis;Y Axis;Z Axis",100,1,100);
  for (int i=0;i<=10000;i++) {
    h1->Fill(gRandom->Gaus(50,30));
  }
  h1->Draw();

Revision 6430 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 12 17:14:32 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 32752 byte(s)
Diff to previous 6413
Implement extension of TLatex by Damir Buskulic.
A TLatex string may be split in two lines (like a fraction without the line)
with the new command #splitline{top}{bottom}.
TAxis and TGaxis have been modified to take advantage of the new feature.
For example a new option in the time axis can show the date/time over two lines
with eg: #splitline{21 April 2003}{14:23:56}

Revision 6413 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 09:00:21 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 32753 byte(s)
Diff to previous 6404
From Olivier;
 New function SetTimeOffset in TAxis and TGaxis to change the time offset
for time Axis. This implied also changes in SetTimeFormat

Revision 6404 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 8 13:05:35 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31866 byte(s)
Diff to previous 6402
Fix compiler warning (Olivier)

Revision 6402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 8 08:16:41 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31858 byte(s)
Diff to previous 5861
The time offset is now saved in fTimeFormat in TAxis and TGaxis (by Olivier)

Revision 5861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 10 10:38:52 2003 UTC (12 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30714 byte(s)
Diff to previous 5831
Move initialisation of fLabels from the Set functions to the constructors.

Revision 5831 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 19 16:06:09 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30735 byte(s)
Diff to previous 5592
The member fLabels was not initialized in some cases.
Set fLabels=0 in the Set functions.

Revision 5592 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 15 16:11:12 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30680 byte(s)
Diff to previous 5543
Remove code in TAxis::ExecuteEvent now obsolete after the introduction
of the new class TPaletteAxis.

Revision 5543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 5 11:37:36 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31603 byte(s)
Diff to previous 5518
Add a new option in TAxis and TGaxis to center the bin labels
on the center of the bin instead of the tick marks.
This option makes sense only when the number of bins is equal
to the number of tick marks.
The new function TAxis::CenterLabels sets the bit kCenterLabels.
CenterLabels is visible in the TAxis context menu.

Revision 5518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 31 07:27:37 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31175 byte(s)
Diff to previous 4564
Make const all Copy functions.
WARNING: If your class implements a Copy function deriving
from TObject or one of the ROOT classes, you must make
your Copy function const.

Revision 4564 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 18 08:22:01 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31169 byte(s)
Diff to previous 4486
Add explicit calls to the base classes copy constructors in the copy constructors.
This is required by gcc on MacOS X

Revision 4486 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 8 17:36:40 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 31138 byte(s)
Diff to previous 4408
Save orientation of labels in TAxis::SavePrimitive (thanks Andre Holzner)

Revision 4408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 26 10:21:42 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30605 byte(s)
Diff to previous 4217
Modify TAxis::executeEvent to set the bit TH1::kIsZoomed when zooming
on the Y axis of a TH1 or Z axis of a TH2.
The bit is reset when TAxis::Unzoom is called.

Revision 4217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 21 16:51:37 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30382 byte(s)
Diff to previous 4023
Do not reset the title in TAxis::Set

Revision 4023 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 18 23:08:30 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30422 byte(s)
Diff to previous 3982
Make the following functions const
  void            GetCenter(Axis_t *center) const;
  void            GetLowEdge(Axis_t *edge) const;
  const TArrayD  *GetXbins() const {return &fXbins;}

Revision 3982 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 14 13:22:21 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30410 byte(s)
Diff to previous 3866
Fix from Damir in TAxis::ChooseTimeFormat to solve the following complaint:
"I have just a very small enhancement request for the TAxis->ChooseTimeFormat
function. Displaying long time intervalls ( several years ) the format
"%d/%m/%y" is selected, but there is not so much sense to display
days in this case. It just look's not very nice and I have to change
the format for each plotting
My suggestion is to choose "%m/%y"."
(from Gernot Maier)

Revision 3866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 23:27:43 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 30218 byte(s)
Diff to previous 3748
Add new options in the TAxis enum:
               kTickPlus    = BIT(9),
                kTickMinus   = BIT(10)
Add new functions:
  virtual const char  *GetTicks() const;
  virtual void     SetTicks(Option_t *option="+"); // *MENU*
void TAxis::SetTicks(Option_t *option)
{
//  set ticks orientation
//  option = "+"  ticks drawn on the "positive side" (default)
//  option = "-"  ticks drawn on the "negative side"
//  option = "+-" ticks drawn on both sides

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 29470 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 29470 byte(s)
Diff to previous 3651
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3651 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 12 08:43:07 2002 UTC (13 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 29554 byte(s)
Diff to previous 3601
In the default constructor, set xmax=1 instead of xmax=0

Revision 3601 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 7 18:08:07 2002 UTC (13 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 29554 byte(s)
Diff to previous 3550
Modify TAxis::ExecuteEvent to take into account histograms
in horizontal pads.

Revision 3550 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 2 21:43:13 2002 UTC (13 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 29248 byte(s)
Diff to previous 3158
Add new member THashList* fLabels.
Add new enum: kLabelsHori, kLabelsVert, kLabelsDown, kLabelsUp.
Increment class version to 7.

Add new functions:
 Int_t       FindBin(const char *label);
 const char *GetBinLabel(Int_t bin) const;
 THashList  *GetLabels() {return fLabels;}
 void        LabelsOption(Option_t *option="h");  // *MENU*
 void        SetBinLabel(Int_t bin, const char *label);

Revision 3158 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 3 16:51:35 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 26128 byte(s)
Diff to previous 3143
Add new function TAxis::SetRangeUser(Axis_t ufirst, Axis_t ulast).
This function is a shortcut calling TAxis::SetRange(Int_t binfirst, Int_t binlast).
The new function is visible in the context menu.

Revision 3143 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 11:21:26 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 25724 byte(s)
Diff to previous 3127
Add a new enum member kNoExponent and a new function TAxis::SetNoExponent.
The function may be called to prevent an exponent (10^N) to be used
when drawing the axis via TGaxis.
The new function is declared in the context menu.

Revision 3127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 29 06:37:02 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 25220 byte(s)
Diff to previous 3115
Delete the unused member fXlabels and associated member functions:
GetBinLabel, GetLabels, SetBinLabel and SetLabels.

Revision 3115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 26 16:22:37 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 26503 byte(s)
Diff to previous 3013
Add support for zooming on the Z axis in case of a 3-D view or zooming
on the palette axis in case of a 2-d view.

Revision 3013 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 11 15:02:00 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 24249 byte(s)
Diff to previous 2281
In TAxis::ExecuteEvent delete the current TView when zooming on an axis.

Revision 2281 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 24 21:25:34 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 24194 byte(s)
Diff to previous 1717
Set the deefault number of bins to 1 instead of 0 in the default constructor.

Revision 1717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 28 07:54:22 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 24194 byte(s)
Diff to previous 1544
Change float* or double* to const float* or const double* in all constructors
or functions with arrays of floats or doubles.

Revision 1544 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 7 20:58:40 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 24176 byte(s)
Diff to previous 1445
Implement TAxis::SavePrimitive. Axis with all the options are saved.

Revision 1445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 22 12:47:36 2001 UTC (14 years ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23543 byte(s)
Diff to previous 1205
In FindBin and FindFixBin use a binary search algorithm to search the bin number
in case of non equidistant nins.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23404 byte(s)
Diff to previous 1110
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

Revision 1110 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 2 16:29:54 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23356 byte(s)
Diff to previous 985
Modify TAxis::UnZoom to take into account ranges defined by TPad::DrawFrame

Revision 985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:51:23 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23215 byte(s)
Diff to previous 768
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

Revision 768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 13 20:32:36 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23296 byte(s)
Diff to previous 752
Comment two inactive lines in case kButton1Down.
Code left in view of support for z axis.

Revision 752 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 13:25:15 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23292 byte(s)
Diff to previous 435
Simplify TAxis::Unzoom

Revision 435 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 8 16:07:03 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23722 byte(s)
Diff to previous 306
 Add a protection in TAxis::SetRange in case of illegal parameters.

Revision 306 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 30 13:32:39 2000 UTC (14 years, 6 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23714 byte(s)
Diff to previous 213
 Correct an inversion in TAxis::Set (thanks Damir Buskulic) in a sprintf statement.
The inversion prevented gStyle->SetTitleSize to work correctly.

Revision 213 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 15 06:51:49 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 23714 byte(s)
Diff to previous 130
Added new constructors and functions to support both Float_t* and Double_t*
        virtual void    TAxis::Set(Int_t nbins, Float_t *xbins);
        virtual void    TAxis::Set(Int_t nbins, Double_t *xbins);
    TH1(const char *name,const char *title,Int_t nbinsx,Float_t *xbins);
    TH1(const char *name,const char *title,Int_t nbinsx,Double_t *xbins);
    TH1C(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins);
    TH1C(const char *name,const char *title,Int_t nbinsx,Double_t *xbins);
    TH1S(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins);
    TH1S(const char *name,const char *title,Int_t nbinsx,Double_t *xbins);
    TH1F(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins);
    TH1F(const char *name,const char *title,Int_t nbinsx,Double_t *xbins);
    TH1D(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins);
    TH1D(const char *name,const char *title,Int_t nbinsx,Double_t *xbins);
   TH2(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                         ,Int_t nbinsy,Double_t *ybins);
   TH2(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins
                                         ,Int_t nbinsy,Float_t  *ybins);
   TH2C(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins);
   TH2C(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins
                                          ,Int_t nbinsy,Float_t  *ybins);
   TH2S(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins);
   TH2S(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins
                                          ,Int_t nbinsy,Float_t  *ybins);
   TH2F(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins);
   TH2F(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins
                                          ,Int_t nbinsy,Float_t  *ybins);
   TH2D(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins);
   TH2D(const char *name,const char *title,Int_t nbinsx,Float_t  *xbins
                                          ,Int_t nbinsy,Float_t  *ybins);
   TH3(const char *name,const char *title,Int_t nbinsx,Float_t *xbins
                                         ,Int_t nbinsy,Float_t *ybins
                                         ,Int_t nbinsz,Float_t *zbins);
   TH3(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                         ,Int_t nbinsy,Double_t *ybins
                                         ,Int_t nbinsz,Double_t *zbins);
   TH3C(const char *name,const char *title,Int_t nbinsx,Float_t *xbins
                                          ,Int_t nbinsy,Float_t *ybins
                                          ,Int_t nbinsz,Float_t *zbins);
   TH3C(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins
                                          ,Int_t nbinsz,Double_t *zbins);
   TH3S(const char *name,const char *title,Int_t nbinsx,Float_t *xbins
                                          ,Int_t nbinsy,Float_t *ybins
                                          ,Int_t nbinsz,Float_t *zbins);
   TH3S(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins
                                          ,Int_t nbinsz,Double_t *zbins);
   TH3F(const char *name,const char *title,Int_t nbinsx,Float_t *xbins
                                          ,Int_t nbinsy,Float_t *ybins
                                          ,Int_t nbinsz,Float_t *zbins);
   TH3F(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins
                                          ,Int_t nbinsz,Double_t *zbins);
   TH3D(const char *name,const char *title,Int_t nbinsx,Float_t *xbins
                                          ,Int_t nbinsy,Float_t *ybins
                                          ,Int_t nbinsz,Float_t *zbins);
   TH3D(const char *name,const char *title,Int_t nbinsx,Double_t *xbins
                                          ,Int_t nbinsy,Double_t *ybins
                                          ,Int_t nbinsz,Double_t *zbins);

Revision 130 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:34:10 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 22880 byte(s)
Diff to previous 102
- Many changes in the histogramming package to use Double_t instead of Float_t.
  TAxis members fXmin, fXmax in double precision. Corresponding Getter/Setter
  functions modified:
        virtual Int_t   FindBin(Axis_t x);
        virtual Int_t   FindFixBin(Axis_t x);
        virtual Axis_t  GetBinCenter(Int_t bin);
        virtual Axis_t  GetBinLowEdge(Int_t bin);
        virtual Axis_t  GetBinUpEdge(Int_t bin);
        virtual Axis_t  GetBinWidth(Int_t bin);
        virtual void    GetCenter(Axis_t *center);
                Axis_t  GetXmin() const {return fXmin;}
                Axis_t  GetXmax() const {return fXmax;}
        virtual void    Set(Int_t nbins, Axis_t xmin, Axis_t xmax);
        virtual void    Set(Int_t nbins, Axis_t *xbins);
        virtual void    SetLimits(Axis_t xmin, Axis_t xmax);

Revision 102 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 9 16:29:48 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 22526 byte(s)
Diff to previous 16
Introduce the implementation for the new function TAxis::RotateTitle.
This new function is useful to rotate (eg) the y axis title by + or - 90 degress
This function is available from the TAxis context menu

Revision 16 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 19 08:33:27 2000 UTC (14 years, 8 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 22133 byte(s)
Diff to previous 12
- Protect TAxis::ExecuteEvent in case the axis parent is not set.- In the default TH1 constructor, set the 3 axis parents and names

Revision 12 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 17:01:18 2000 UTC (14 years, 8 months ago) by brun
Original Path: trunk/hist/src/TAxis.cxx
File length: 22128 byte(s)
Diff to previous 3
setting default for axisNumber = 1 instead of 0

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/hist/src/TAxis.cxx
File length: 22075 byte(s)
Copied from: branches/rdm/hist/src/TAxis.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/hist/src/TAxis.cxx
File length: 22075 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9