Log of /trunk/graf2d/graf/src/TPaveStats.cxx
Parent Directory
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: 20037 byte(s)
Diff to
previous 36735
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
32125 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 27 16:16:55 2010 UTC (4 years, 11 months ago) by
couet
File length: 19916 byte(s)
Diff to
previous 31687
- TPaveStats::Paint assumed that the stats box position was such that:
fX2>fX1 and fY2>fY1. This is always the case when the stat box is generated
automatically but might be not true anymore if the stats box position has
been changed by the user. The new version of TPaveStats::Paint works even if
fX2<fX1 or fY2<fY1.
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: 15324 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
19458 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 26 08:51:24 2007 UTC (7 years, 6 months ago) by
couet
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 15388 byte(s)
Diff to
previous 18623
- Make sure the right font is used when the text size is conputed in the
Paint() method. This fixes the problem reported and fixed here:
https://savannah.cern.ch/bugs/?28302
by Oleksandr Grebenyuk.
The folowing macro demonstrated the problem:
{
TCanvas *c1 = new TCanvas("c1", "c1",521,150,700,590);
c1->Range(0,0,1,1);
TPaveText *pt;
TText *text;
pt = new TPaveText(0.1106322,0.6004274,0.8448276,0.9764957,"br");
text = pt->AddText("Calculate from helvetica bold");
text = pt->AddText("Display with helvetica bold");
pt->Draw();
pt = new TPaveText(0.112069,0.1325301,0.8477011,0.5562249,"br");
pt->SetTextFont(22);
text = pt->AddText("Calculate from helvetica bold");
text = pt->AddText("Display with times bold");
pt->Draw();
TLine *line = new TLine(0.8132184,0.9558233,0.8132184,0.2309237);
line->SetLineColor(2); line->Draw();
line = new TLine(0.783046,0.5140562,0.783046,0.2309237);
line->SetLineColor(2); line->Draw();
TArrow *arrow = new TArrow(0.783046,0.2610442,0.8146552,0.2610442,0.02,"<|>");
arrow->SetFillColor(2); arrow->SetFillStyle(1001);
arrow->SetLineColor(2); arrow->Draw();
}
Revision
18623 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Apr 30 12:52:14 2007 UTC (7 years, 8 months ago) by
couet
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 15064 byte(s)
Diff to
previous 18491
- The previous fix (revision 1.29) broke the automatic computation of the
title size in TPaveStats::Paint. This fix makes it work again and takes
also into account the problem which was supposed to be fixed in revision
1.29.
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/TPaveStats.cxx
File length: 15024 byte(s)
Diff to
previous 17447
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
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/TPaveStats.cxx
File length: 15088 byte(s)
Diff to
previous 13304
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
12726 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 16 17:19:40 2005 UTC (9 years, 4 months ago) by
brun
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 14397 byte(s)
Diff to
previous 12643
From Ilka:
- changes in TStyle::Reset(Option_t opt) to have a real reset of any of the 5
default styles in root according to the parameter opt that containg the style
name;
- fixes in several slots of TStyleManager where the signal information was
ignored;
- fixes in the methods UseCurrentStyle() of TGraph, TH1, TPad;
- new method UseCurrentStyle() of TPaveStats;
Revision
6388 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 4 16:47:50 2003 UTC (11 years, 9 months ago) by
brun
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 12506 byte(s)
Diff to
previous 6272
Following the remark below by Michael Wiesmann:
"Just a small comment: I was a little bit surprised by the amount of
numbers one gets when setting OptStat to 10000 (officially underflow)
in a 2d histogram.
As far as I checked there was no comment exceeding the information for
1D histos. At some point I understood by myself, but maybe it is
possible to add a comment either in TPaveStats or in the Users Guide".
New comments have been added to TPaveStats and TStyle to warn users
of the Under/Overflow options
// NOTE that in case of 2-D histograms, when selecting just underflow (10000)
// or overflow (100000), the stats box will show all combinations
// of underflow/overflows and not just one single number!
Revision
6272 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 7 10:18:21 2003 UTC (11 years, 10 months ago) by
brun
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 12164 byte(s)
Diff to
previous 5218
In TPaveStats move functions GetOptFit,GetOptStat,SetOptFit,SetOptStat
from the header file to the implementation.
The Get functions take into account the current TStyle setting.
The set functions reset the TStyle setting.
In TStyle::SetOptFit and SetOptStat, set the bit kTakeStyle in the "stats"
object of the current pad and set the pad bit modified.
With these changes, when selecting the "Show Stats or Fit" in the canvas
Option menu, the stats box is automatically updated with the corresponding options.
Revision
4156 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 8 18:44:17 2002 UTC (12 years, 10 months ago) by
rdm
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 8793 byte(s)
Diff to
previous 3838
improved TPaveStat layout by Olivier Couet.
- It handles properly the fit parameters.
- The vertical text positioning is better (uses the vertical alignment
"center").
- Chi2 is printed with the Greek characters.
I noticed that the right alignment of TLatex on screen is not always
perfect. On PS file it is perfect.
Revision
159 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 13 11:12:13 2000 UTC (14 years, 7 months ago) by
brun
Original Path:
trunk/graf/src/TPaveStats.cxx
File length: 4736 byte(s)
Diff to
previous 3
- Mods in TPaveStats: Upgrade from Float_t to Double_t
New signature for the following functions:
TPaveStats(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, Option_t *option="br");
virtual TBox *AddBox(Double_t , Double_t , Double_t , Double_t) {return 0;}
virtual TLine *AddLine(Double_t , Double_t , Double_t, Double_t) {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.