Log of /trunk/hist/hist/src/TAxis.cxx
Parent Directory
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.