[root] / trunk / graf2d / graf / src / TPaveStats.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/graf/src/TPaveStats.cxx

Parent Directory Parent Directory


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

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 36735 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 18 09:33:53 2010 UTC (4 years, 2 months ago) by couet
File length: 19992 byte(s)
Diff to previous 35545
- Fix bug savannah bug #75432
  Saving canvas as a .C macro will discard white title and stat box background

Revision 35545 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 13:49:38 2010 UTC (4 years, 4 months ago) by brun
File length: 19991 byte(s)
Diff to previous 35542
Fix a call to strlcpy

Revision 35542 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 13:20:25 2010 UTC (4 years, 4 months ago) by brun
File length: 19989 byte(s)
Diff to previous 32300
replace strcpy by strlcpy

Revision 32300 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 9 12:15:43 2010 UTC (4 years, 11 months ago) by couet
File length: 19916 byte(s)
Diff to previous 32125
- Coding conventions

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 31687 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 16:47:38 2009 UTC (5 years, 1 month ago) by couet
File length: 19794 byte(s)
Diff to previous 28199
- initialize members (coverity)

Revision 28199 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 14 14:14:57 2009 UTC (5 years, 9 months ago) by couet
File length: 19722 byte(s)
Diff to previous 28075
- Update the doc about the stats painting.

Revision 28075 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 2 15:36:06 2009 UTC (5 years, 9 months ago) by couet
File length: 19050 byte(s)
Diff to previous 23140
- Better help

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 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/graf/src/TPaveStats.cxx
File length: 15324 byte(s)
Diff to previous 19826
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 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/graf/src/TPaveStats.cxx
File length: 15324 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/graf/src/TPaveStats.cxx
File length: 15378 byte(s)
Diff to previous 19458
remove :$ from tag line

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 18491 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 15 06:08:27 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 15035 byte(s)
Diff to previous 17727
Fix a problem in TPaveStats::Paint: The histogram name was not painted
when the TPaveStats text size was set to a non null value.

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 17447 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 08:20:06 2007 UTC (8 years ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 15016 byte(s)
Diff to previous 15672
Remove dependency from TFile (thanks to new function TBuffer::GetVersionOwner)

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 13304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 21 13:57:42 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 15079 byte(s)
Diff to previous 12771
- Last mods (in graf) to make the rules checker happy.

Revision 12771 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 19 14:31:31 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 14989 byte(s)
Diff to previous 12726
From Ilka:
additional fixes for the 'Stats' tab of the style manager.

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 12643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 07:25:22 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 13493 byte(s)
Diff to previous 12551
Fix coding conventions violations.

Revision 12551 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 29 14:43:30 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 13399 byte(s)
Diff to previous 11437
hanges to make the rulechecker happy in directory graf
(except TGaxis and TGraph)

Revision 11437 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 29 10:06:52 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 13384 byte(s)
Diff to previous 11415
From Ilka:
changes in TPaveStats::SavePrimitives() for
saving the current Stat and Fit options in the generated C++ code.

Revision 11415 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 23 15:26:06 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 13264 byte(s)
Diff to previous 8924
From Olivier:
- In TPaveStats::Paint histograms' titles containing the "=" sign were not
  displayed like a title but like a statistic parameter.

Revision 8924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 13 19:39:18 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 13104 byte(s)
Diff to previous 6697
Remove dummy implementation of TPaveStats::SetLabel.
Implement support for a TPaveStats top label in TPaveStats::Paint

Revision 6697 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 6 16:42:58 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 12548 byte(s)
Diff to previous 6388
In TPaveStats::Paint increase slightly the default text size
from 0.88 to 0.92

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 5218 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 6 09:03:59 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 11252 byte(s)
Diff to previous 4907
Protect the destructor in case the object has been created with no parent

Revision 4907 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 10:45:18 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 11240 byte(s)
Diff to previous 4423
Take into account the parent relation.

Implement TPaveStats::SavePrimitive

Revision 4423 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 30 21:33:50 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 9999 byte(s)
Diff to previous 4223
Fix a memory leak problem introduced by Olivier in a recent version
of TPaveStats::Paint. The char* sl array was not deleted in the first loop.

Revision 4223 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 22 15:58:43 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 9962 byte(s)
Diff to previous 4192
Improvements by Olivier in TPaveStats::Paint.
The size of the histogram name is optimized to always fit in the box.

Revision 4192 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 16 18:41:41 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 9642 byte(s)
Diff to previous 4188
remove unused dy.

Revision 4188 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 16 08:52:43 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 9670 byte(s)
Diff to previous 4174
Remove unused variable yfont and following statements

Revision 4174 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 13 17:00:33 2002 UTC (12 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 9843 byte(s)
Diff to previous 4156
improved look of over and undeflow for 2d histo's in TPaveStats. By Olivier C.

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 3838 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 2 11:56:14 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TPaveStats.cxx
File length: 4828 byte(s)
Diff to previous 3748
Replace gFile by the TBuffer::GetParent()

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/graf/src/TPaveStats.cxx
File length: 4784 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/graf/src/TPaveStats.cxx
File length: 4784 byte(s)
Diff to previous 985
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 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/graf/src/TPaveStats.cxx
File length: 4789 byte(s)
Diff to previous 159
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

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;}

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/graf/src/TPaveStats.cxx
File length: 4674 byte(s)
Copied from: branches/rdm/graf/src/TPaveStats.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/graf/src/TPaveStats.cxx
File length: 4674 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