Log of /trunk/graf2d/graf/src/TGaxis.cxx
Parent Directory
Revision
48992 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 28 15:26:26 2013 UTC (21 months, 3 weeks ago) by
rdm
File length: 79823 byte(s)
Diff to
previous 45021
From Lifeng Sun:
The attached patchset fixes a bunch of typo in the source:
0001-succes-success.patch
0002-preceed-preced.patch
0003-informations-information.patch
0004-childs-children.patch
0005-avaliable-available.patch
0006-writeable-writable.patch
0007-comand-command.patch
0008-unkown-unknown.patch
0009-wierd-weird.patch
0010-wheter-whether.patch
0011-unecessary-unnecessary.patch
0012-splitted-split.patch
0013-registerd-registered.patch
0014-recieve-receive.patch
0015-processsing-processing.patch
0016-ouput-output.patch
0017-mutiple-multiple.patch
0018-lenght-length.patch
0019-interupted-interrupted.patch
0020-independant-independent.patch
0021-inconsistant-inconsistent.patch
0022-expresion-expression.patch
0023-explicitely-explicitly.patch
0024-enviroment-environment.patch
0025-deafult-default.patch
0026-continous-continuous.patch
0027-completly-completely.patch
0028-commited-committed.patch
0029-choosen-chosen.patch
0030-backgroud-background.patch
0031-auxilliary-auxiliary.patch
0032-authentification-authentication.patch
0033-appropiate-appropriate.patch
0034-an-other-another.patch
0035-environement-environment.patch
0036-targetting-targeting.patch
0037-suppported-supported.patch
0038-paramater-parameter.patch
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: 80426 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: 80316 byte(s)
Diff to
previous 40352
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
40334 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 22 15:52:42 2011 UTC (3 years, 6 months ago) by
couet
File length: 79739 byte(s)
Diff to
previous 37846
From Vincent Reverdy:
- PaintAxis now call PaintLineNDC directly instead of creating a TLine to call it. There is no need for it as TGaxis is a TLine.
Revision
37679 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 21 16:30:45 2010 UTC (4 years, 1 month ago) by
couet
File length: 80009 byte(s)
Diff to
previous 36309
- The following macro produced two different labelling. "3" was
missing on the axis "b".
TGaxis *a = new TGaxis(0.2,0.5,0.8,0.5,0.2,3.5,510,"G");
a->SetMoreLogLabels(1); a->Draw();
TGaxis *b = new TGaxis(0.8,0.7,0.2,0.7,0.2,3.5,510,"G");
b->SetMoreLogLabels(1); b->Draw();
Revision
35779 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 27 09:53:08 2010 UTC (4 years, 3 months ago) by
couet
File length: 79837 byte(s)
Diff to
previous 35573
- Fix a precision issue on Mac. With the following lines the last label
(10^3) did not show:
t1 = new TH1F("test","test", 100,1,1000);
t1.Draw();
gPad->SetLogx(1);
Revision
30699 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 13 12:15:01 2009 UTC (5 years, 3 months ago) by
couet
File length: 79386 byte(s)
Diff to
previous 28873
- A TGaxis with custom scale defined by a function did not display ticks all
the way along the axis, only between the lowest and the highest major tick.
This behaviour could be seen with:
{
TF1* f = new TF1("f", "exp(x)", 0.467, 2.1345);
TGaxis* a = new TGaxis(0.1,0.4,0.9,0.4, "f", 50510, "-");
a->Draw();
TGaxis* b = new TGaxis(0.1,0.7,0.9,0.7, 0.4356, 1.56789, 50510, "-");
b->Draw();
}
Revision
28873 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 10 09:50:35 2009 UTC (5 years, 7 months ago) by
couet
File length: 79442 byte(s)
Diff to
previous 28744
- gStyle.SetStripDecimals(kFALSE); did not work in cases like the following one:
{
gStyle.SetStripDecimals(kFALSE);
gStyle.SetPadLeftMargin(.15);
TGraph graph_freq;
graph_freq.SetPoint(0, 933., 40078879.);
graph_freq.SetPoint(1, 934., 40078966.);
graph_freq.Draw("A*");
}
Revision
28744 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 28 12:22:43 2009 UTC (5 years, 7 months ago) by
couet
File length: 79170 byte(s)
Diff to
previous 28450
- On log-scale TGAxis, with labels having lower values than 1 and ticks marks
set to the positive side, alignement issues seem to come up.
The following example shows four TGAxis drawn respectively with the
following options: RG-, RG+, LG-, LG+. For the RG+ and LG+ options,
the 10E-1 and 10E-2 labels were ill-aligned, showing a shift to the right
compared to the 1E2, 1E1 and 1 labels.
{
c1 = new TCanvas("c1","Examples of Log TGaxis",10,10,700,500);
c1->Range(-10,-1,10,1);
TGaxis *axis1 = new TGaxis(-7,-0.8,-7,0.8,0.01,100,50510,"RG-");
axis1->SetTitle("RG-"); axis1->Draw();
TGaxis *axis2 = new TGaxis(-2,-0.8,-2,0.8,0.01,100,50510,"RG+");
axis2->SetLabelOffset(-0.04); axis2->SetTitleOffset(-1.5);
axis2->SetTitle("RG+"); axis2->Draw();
TGaxis *axis3 = new TGaxis(2,-0.8,2,0.8,0.01,100,50510,"LG-");
axis3->SetLabelOffset(-0.04);
axis3->SetTitle("LG-"); axis3->Draw();
TGaxis *axis4 = new TGaxis(7,-0.8,7,0.8,0.01,100,50510,"LG+");
axis4->SetTitleOffset(-1);
axis4->SetTitle("LG+"); axis4->Draw();
}
This bug was reported here: https://savannah.cern.ch/bugs/?50937
Revision
25511 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 23 13:24:53 2008 UTC (6 years, 4 months ago) by
couet
File length: 80058 byte(s)
Diff to
previous 23460
- When drawn with the option X+ or Y+ the histogram axis were wrong in
case of alphanumeric labels. The tick marks were in the right place
but the labels were not.
Revision
23140 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 11 11:01:39 2008 UTC (6 years, 9 months ago) by
rdm
File length: 79724 byte(s)
Diff to
previous 20882
move the following directories to "graf2d":
asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf
move the following directories to "graf3d":
eve, ftgl, g3d, gl, x3d
Revision
19304 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jul 10 09:08:30 2007 UTC (7 years, 6 months ago) by
couet
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 79319 byte(s)
Diff to
previous 19118
- Remove a stupid construct in PaintAxis. In the "fFunction" case there was
an if statement like:
if (optionNoopt && !optionInt) {
dxtick=(binHigh-binLow)/Double_t(nticks-1);
} else {
dxtick=(binHigh-binLow)/Double_t(nticks-1);
}
Now replaced by the simple line:
dxtick=(binHigh-binLow)/Double_t(nticks-1);
This code was like that since at least May 2000.
Revision
17727 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Feb 6 14:35:45 2007 UTC (7 years, 11 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 79412 byte(s)
Diff to
previous 17088
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
17088 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Dec 7 10:08:35 2006 UTC (8 years, 1 month ago) by
couet
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 79404 byte(s)
Diff to
previous 16676
- To remove axis' labels ROOT's users set the LabelOffset to a large value
(very often 99). This ended up with some text drawn at very "far away"
positions. Some low level text painting functions (like the TASImage one)
were "not happy" with such big values and produced a Seg-Fault. This
problem is visible since the text clipping is done directly in TPDF and
TPostScript and not any more in TPad (TPad text clipping was wrong).
Now, if the label offset is set that way (ie "big"), the option "UnLab"
is automatically turned ON.
Revision
16676 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 2 11:03:37 2006 UTC (8 years, 2 months ago) by
couet
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 79612 byte(s)
Diff to
previous 16562
- From Bertrand and Olivier:
The flag tm_isdst in the "tm" structure is now set to 1 to put the
daylight saving on. We have also checked that this fix is compatible
with the fixes done in Revision 1.86 and 1.93. Also, a protection has
been added against negative timeoffset after a call to mktime (it
occurs sometimes on windows).
Revision
16562 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 19 13:35:52 2006 UTC (8 years, 3 months ago) by
couet
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 81241 byte(s)
Diff to
previous 16360
With:
gStyle->SetLabelFont(131,"x");
gStyle->SetLabelFont(131,"y");
the axis labels in log scale showed up without the latex markup rendered
properly. 1000 appeared as the ascii "10^{3}", not the rendered 10 with a
superscript 3.
The following little script reproduces the problem:
{
gStyle->SetLabelFont(131,"x");
gStyle->SetLabelFont(131,"y");
TH1F h("h", "h", 100, 0, 1000000);
h.SetBinContent(10, 1000000);
h.SetBinContent(50, 100);
h.Draw();
c1->SetLogy();
c1->SetLogx();
}
This problem was reported in: https://savannah.cern.ch/bugs/index.php?20839
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/graf/src/TGaxis.cxx
File length: 80719 byte(s)
Diff to
previous 15254
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
15134 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 80517 byte(s)
Diff to
previous 14935
From Federico Carminati:
"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."
Revision
14934 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat May 6 13:46:41 2006 UTC (8 years, 8 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 79188 byte(s)
Diff to
previous 14336
From Bertrand:
Fix a problem in TGaxis due to a special behaviour of "mktime" on Windows
If successful, *mktime* sets the values of *tm_wday* and *tm_yday* as
appropriate and sets the other components to represent the specified
calendar time, but with their values forced to the normal ranges. The final
value of *tm_mday* is not set until *tm_mon* and *tm_year* are determined.
When specifying a *tm* structure time, set the *tm_isdst* field to:
* Zero (0) to indicate that standard time is in effect.
* A value greater than 0 to indicate that daylight savings time is
in effect.
* A value less than zero to have the C run-time library code compute
whether standard time or daylight savings time is in effect.
(The C run-time library assumes the United States' rules for implementing
the calculation of Daylight Saving Time.) *tm_isdst* is a required field. If
not set, its value is undefined and the return value from *mktime* is
unpredictable. If /timeptr/ points to a *tm* structure returned by a
previous call to *asctime*, *gmtime*, or *localtime*, the *tm_isdst* field
contains the correct value.
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/graf/src/TGaxis.cxx
File length: 77585 byte(s)
Diff to
previous 13315
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
13315 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 22 11:09:20 2005 UTC (9 years, 2 months ago) by
couet
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 77565 byte(s)
Diff to
previous 13244
- In case of log scale on a vertical axis, the x-position of the extra labels
(when SetMoreLogLabels is true) was not computed the same way as the
x-position of the decades labels. Therefore they where not aligned.
Revision
10019 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 13 16:39:12 2004 UTC (10 years, 4 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 76988 byte(s)
Diff to
previous 9823
From Ilka:
code for saving any user
specified color via color widgets in a macro. Any color different from
the standard root colors is saved via hex rgb string. Up to now colors
were save via the index and if this index > 228 the running macro causes
SegV.
A new static method SaveColor() is added in TColor class.
Revision
9575 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 23 09:36:35 2004 UTC (10 years, 6 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 76509 byte(s)
Diff to
previous 9220
From Olivier:
In TGaxis::Paint the member tm_isdst of the tm C struct is set to 0.
Before it was -1. -1 meant "daylight saving time is not available". 0
means "daylight saving time is not in effect". See the man pages of mktime
for more details. Before this fix the following macro produced an X axis
shifted by one hour for the months between April and October (the month
is now fixed to July).
{
TCanvas* c = new TCanvas("c","Data",600,500);
TDatime da(2004,07,09,00,00,00);
Int_t t0 = da.Convert();
Int_t dt = 5.*60.*60.;
TH2F* hiscom = new TH2F("hiscom","",1000,0.,dt,10,0.,1.);
hiscom->GetXaxis()->SetTimeOffset(t0);
hiscom->GetXaxis()->SetTimeDisplay(1);
hiscom->GetXaxis()->SetTimeFormat("%d-%H:%Mh");
hiscom->GetXaxis()->SetLabelSize(0.021);
hiscom->GetXaxis()->SetLabelOffset(0.02);
hiscom->GetXaxis()->SetNdivisions(210);
hiscom->Draw("");
}
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/graf/src/TGaxis.cxx
File length: 76423 byte(s)
Diff to
previous 9213
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
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/graf/src/TGaxis.cxx
File length: 74090 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/graf/src/TGaxis.cxx
File length: 73495 byte(s)
Diff to
previous 7645
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
7301 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 19 14:02:31 2003 UTC (11 years, 4 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 71556 byte(s)
Diff to
previous 7286
From Olivier:
Improvements in the log axis drawing:
- allows exponent notation when extra log labels are drawn
- extra labels are drawn only if they do not overlap
- draw exponent labels with TLatex
- better positioning of the labels
- remove useless code and unused variables
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/graf/src/TGaxis.cxx
File length: 71443 byte(s)
Diff to
previous 7233
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/graf/src/TGaxis.cxx
File length: 71520 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/graf/src/TGaxis.cxx
File length: 70992 byte(s)
Diff to
previous 6674
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
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/graf/src/TGaxis.cxx
File length: 70061 byte(s)
Diff to
previous 6414
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
6155 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 20 22:36:10 2003 UTC (11 years, 11 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 68228 byte(s)
Diff to
previous 5543
Add a new optional argument drawGridOnly to TGaxis::PaintAxis.
By default, this argument is false. If set to true, the function PaintAxis
paints only the grid (if gridx or/and y have been activated in the pad)
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/graf/src/TGaxis.cxx
File length: 68044 byte(s)
Diff to
previous 5260
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
3549 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 2 21:42:48 2002 UTC (13 years ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 72536 byte(s)
Diff to
previous 3529
Add new member TAxis* fAxis.
Increment class version.
Add support for alphanumeric labels in TGaxis::PaintAxis.
This new implementation supports the new facilities introduced
in TAxis, TH1, etc. For more information see the news in TH1.
Revision
3144 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Oct 31 11:28:38 2001 UTC (13 years, 2 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 69629 byte(s)
Diff to
previous 3138
Add a new member function TGaxis::SetNoExponent to disable the notation
with 10^N when drawing the axis. This option is automatically selected
when drawing TAxis objects having this property.
Note that this option is implicitly selected if the number of digits
to draw a label is less than the fgMaxDigits global member.
Revision
2823 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 20 13:24:48 2001 UTC (13 years, 4 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 68598 byte(s)
Diff to
previous 2759
Add a static member fgMaxDigits with the corresponding getter and setter.
fgMaxDigits is the maximum number of digits permitted for the axis
labels above which the notation with 10^N is used.
For example, to accept 6 digits number like 900000 on an axis
call TGaxis::SetMaxDigits(6). The default value is 5.
Revision
955 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 21 20:24:37 2000 UTC (14 years, 2 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 66722 byte(s)
Diff to
previous 872
Add a protection to avoid an infinite loop in TGaxis::Optimize.
New calling sequence in TGaxis::LabelsLimits
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm
Revision
552 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 1 07:02:27 2000 UTC (14 years, 4 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 66894 byte(s)
Diff to
previous 528
Change the maximum authorized exponent from 30 to 200 in TGaxis::Optimize.
This change allows drawing axis with the maximum precision in case of very large
or very small values.
The change was also necessary to avoid a buffer overflow in the function
drawing labels.
Revision
528 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 25 13:10:20 2000 UTC (14 years, 5 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 66818 byte(s)
Diff to
previous 148
Add the following missing description of option "S" in TGaxis::PaintAxis
// Size of tick marks
// ------------------
// By default, tick marks have a length equal to 3 per cent of the
// axis length.
// When the option "S" is specified, the length of the tick marks
// is equal to fTickSize*axis_length, where fTickSize may be set
// via TGaxis::SetTickSize.
Revision
148 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 13 10:56:59 2000 UTC (14 years, 7 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 66529 byte(s)
Diff to
previous 47
Members fWmin, fWmax changed from Float_t to Double_t
TGaxis constructors have their arguments changed from Float_t to Double_tr
The following functions have their arguments or return type
changed from Float_t to Double_t:
virtual void AdjustBinSize(Double_t A1, Double_t A2, Int_t nold
,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BinWidth);
virtual void DrawAxis(Double_t xmin,Double_t ymin,Double_t xmax,Double_t ymax,
Double_t wmin,Double_t wmax,Int_t ndiv=510, Option_t *chopt="",
Double_t gridlength = 0);
Double_t GetWmin() {return fWmin;}
Double_t GetWmax() {return fWmax;}
virtual void Optimize(Double_t A1, Double_t A2, Int_t nold
,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BWID);
virtual void PaintAxis(Double_t xmin,Double_t ymin,Double_t xmax,Double_t ymax,
Double_t &wmin,Double_t &wmax,Int_t &ndiv, Option_t *chopt="",
Double_t gridlength = 0);
virtual void Rotate(Double_t X, Double_t Y, Double_t CFI, Double_t SFI
,Double_t XT, Double_t YT, Double_t &U, Double_t &V);
void SetWmin(Double_t wmin) {fWmin = wmin;}
void SetWmax(Double_t wmax) {fWmax = wmax;}
Revision
47 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 29 06:19:21 2000 UTC (14 years, 7 months ago) by
brun
Original Path:
trunk/graf/src/TGaxis.cxx
File length: 65507 byte(s)
Diff to
previous 11
// 29 May
- Add the following note in the TPave, TPaveLabel and TPaveText constructors:
IMPORTANT NOTE:
Because TPave objects (and objects deriving from TPave) have their
master coordinate system in NDC, one cannot use the TBox functions
SetX1,SetY1,SetX2,SetY2 to change the corner coordinates. One should use
instead SetX1NDC, SetY1NDC, SetX2NDC, SetY2NDC.
28 May
- Modify THistPainter::PaintStat and PaintStat2 to use the TLatex character #pm
instead of +-
// 27 May
- Add new member functions:
Int_t TVirtualTreePlayer::GetDimension()
Int_t TTreePlayer::GetDimension()
GetDimension returns the number of dimensions in the TTree::Draw expression.
- Add new function in TTree;
void TTree::UnbinnedFit(const char *funcname ,const char *varexp, const char *selection="",Option_t *option=""
,Int_t nentries=1000000000, Int_t firstentry=0);
This function (origin Stephen Bailey) performs an unbinned fit to the
variable(s) given in varexp.
- Remove unused data member fDimension from class TTree.
- Introduce support for "Virtuality" in TLeafObject.
New data member fVirtual added and corresponding IsVirtual/SetVirtual functions.
By default, fVirtual is kTRUE.
This change allows new interesting possibilities in split mode. For example
if a member is TShape *fShape, a real object may be now of any type
derived from TShape (eg, TTUBE, TBRIK, etc).
With the previous version, the fShape object had to be of the declared
type TShape only.
When writing a TLeafObject, the class name of the object is now written in
the branch buffer by TLeafObject::FillBasket. When TLeafObject::ReadBasket
is called, an instance of the real class is built and its Streamer function
called.
This change is backward compatible. Old files can still be processed.
It is possible to set the virtuality for the branch to kFALSE via
TLeafObject::SetVirtual. Setting the virtuality to kFALSE makes
writing and reading faster and the file slightly smaller. In this case,
a TLeafObject must be of the type declared only.
- New minor changes in TGaxis (Damir Buskulic) for date/time format
in case the start time is not an integer value.
- Modify tutorial psexam.C to set the TPaveText TextFont to 61 instead of 62.
Font precision 1 bypass the TLatex logic.
- Mods in TLatex to remove the special treatment for characters ' and ".
Strings like l'#acute{e}toile are now correctly processed.
- Fix a bug in TGraph::GetFunction. (thanks Damon Spayde). The test
if (fFunctions) return 0; replaced by
if (!fFunctions) return 0;
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.