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

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

Parent Directory Parent Directory


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

Revision 49221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 11 12:21:00 2013 UTC (21 months, 1 week ago) by moneta
File length: 85732 byte(s)
Diff to previous 48282
fix a memory leak in the assignment operator
see https://sft.its.cern.ch/jira/browse/ROOT-5045

Revision 48282 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 14 13:54:27 2013 UTC (2 years ago) by moneta
File length: 85645 byte(s)
Diff to previous 46970
clean up the parsing of the fit option in TH1::Fit and TGraph::Fit

add new option "P" (pearson chi square) for using expected error instead of observed one when fitting

Fix a bug for the case of parameter limits (defined in TF1): [-inf,b] or [a, +inf]

Revision 46970 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 1 15:11:09 2012 UTC (2 years, 2 months ago) by moneta
File length: 85626 byte(s)
Diff to previous 44507
fix a problem in fitting a TGraphAsymErrors with errors in the coordinate
see http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=15564

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: 85606 byte(s)
Diff to previous 44213
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 44213 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 10 09:08:22 2012 UTC (2 years, 8 months ago) by moneta
File length: 85526 byte(s)
Diff to previous 44012
apply several fixes found by Coverity

In particular fix assignment operators (Copy) in TH1 and TGraph classes for memory leaks

Revision 44012 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 06:21:51 2012 UTC (2 years, 8 months ago) by moneta
File length: 85344 byte(s)
Diff to previous 43837
Coverity fixes (resource leaks)

Revision 43837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 10:07:35 2012 UTC (2 years, 9 months ago) by moneta
File length: 85306 byte(s)
Diff to previous 43221
update documentation of TGraph::Integral as suggested by 

https://savannah.cern.ch/bugs/?92740

Revision 43221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 2 12:45:10 2012 UTC (2 years, 10 months ago) by couet
File length: 84845 byte(s)
Diff to previous 42863
From M.Trocme: a fix to cope with DOS files (CR+LF) for non-standard ctors.

Revision 42863 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 3 13:53:01 2012 UTC (2 years, 11 months ago) by pcanal
File length: 84700 byte(s)
Diff to previous 41837
Add explicit note that TGraph are not automatically added to the current directory

Revision 41837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 9 16:04:19 2011 UTC (3 years, 2 months ago) by rdm
File length: 84486 byte(s)
Diff to previous 41333
From Filimon Roukoutakis and me:
Full port to AIX 7.1 and xlC Version: 09.00.0000.0017.
This port is complete (./configure --all; make) works (minus some minor
plugins that were not installed). The tutorials/benchmarks.C and test/* works.
For the list of linux-tool packages that need to be installed see:
http://root.cern.ch/drupal/content/build-prerequisites.
Port made on hardware kindly donated by IBM.

Revision 41333 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 11 13:30:57 2011 UTC (3 years, 3 months ago) by couet
File length: 84479 byte(s)
Diff to previous 41332
Fix a typo

Revision 41332 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 11 13:28:08 2011 UTC (3 years, 3 months ago) by couet
File length: 84479 byte(s)
Diff to previous 41187
More mods for the ctor from a file (M.Trocme)

Revision 41187 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 09:58:50 2011 UTC (3 years, 3 months ago) by couet
File length: 84564 byte(s)
Diff to previous 41186
DistancetoPrimitve has a return value.

Revision 41186 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 09:50:44 2011 UTC (3 years, 3 months ago) by couet
File length: 84539 byte(s)
Diff to previous 41183
Some clean up (extra spaces etc …)

Revision 41183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 09:18:35 2011 UTC (3 years, 3 months ago) by couet
File length: 84544 byte(s)
Diff to previous 41161
Fix coverity reports (RETURNS_NULL)

Revision 41161 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 5 15:00:18 2011 UTC (3 years, 3 months ago) by couet
File length: 84137 byte(s)
Diff to previous 41118
Fix coverity report #30464

Revision 41118 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 4 13:34:10 2011 UTC (3 years, 3 months ago) by couet
File length: 84130 byte(s)
Diff to previous 41112
More mods for the ctor from a file (M.Trocme)

Revision 41112 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 4 11:52:35 2011 UTC (3 years, 3 months ago) by couet
File length: 83201 byte(s)
Diff to previous 41077
apply style as recommended here:
http://root.cern.ch/drupal/content/c-coding-conventions

Revision 41077 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 30 16:03:51 2011 UTC (3 years, 3 months ago) by couet
File length: 82083 byte(s)
Diff to previous 40198
The TGraph constructor from a file is now able to handle delimiters. Like in the .csv files. (Implementation done by Mathieu Trocme)

Revision 40198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 12 08:31:52 2011 UTC (3 years, 6 months ago) by couet
File length: 79444 byte(s)
Diff to previous 40180
Try to code the previous fix differently in order to make coverity happy.

Revision 40180 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 11 09:32:19 2011 UTC (3 years, 6 months ago) by couet
File length: 79412 byte(s)
Diff to previous 38627
Use a greater precision to output the X and Y vectors. The following macro generated a wrong output (tmp.C).

void testGraphPrec(){
  double offset=55.0;
  TCanvas* myC = new TCanvas("myC","myC",600,400);
  TGraph* gr=new TGraph();
  for(int i=0;i<10;i++){
    double point_x = 3.0+((double) i)*1e-7;
    double point_y = offset+((double) i)*1e-8;
    gr->SetPoint(i,point_x,point_y);
  }
  gr->Draw("AP");
  myC->Print("tmp.C");
}

Revision 38627 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 25 15:15:10 2011 UTC (3 years, 10 months ago) by couet
File length: 79311 byte(s)
Diff to previous 38341
- Like "SetPoint" the method "Apply" modifies the graph content.
  So, a logic similar to the one implemented in SetPoint should
  be done, ie:
  1) if fHistogram exists it is reset.
  2) if gPad exist a gPad->Modified() is issued.

Revision 38341 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 9 15:36:21 2011 UTC (3 years, 10 months ago) by couet
File length: 79207 byte(s)
Diff to previous 37722
- Change the default browsing option for graphs to alp.

Revision 37722 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 5 17:50:02 2011 UTC (4 years ago) by couet
File length: 79168 byte(s)
Diff to previous 36530
- Fix a typo

Revision 36530 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 8 10:24:42 2010 UTC (4 years, 2 months ago) by couet
File length: 79167 byte(s)
Diff to previous 36518
- New class TH2Poly (histograms with polygonal bins)

Revision 36518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 5 15:20:28 2010 UTC (4 years, 2 months ago) by couet
File length: 79047 byte(s)
Diff to previous 36493
- The foowwing macro generated a wrong .C file when its output
  was saved as a .C file from the TCanvas' File menu.

{
   TMultiGraph *multigraph = new TMultiGraph();

   TGraph *graph = new TGraph(3);  
   graph->SetName("abcd_1");       
   graph->SetPoint(0,-4.,54.);      
   graph->SetPoint(1,-5.,55.);      
   graph->SetPoint(2,-6.,54.);      

   multigraph->Add(graph,"");

   graph = new TGraph(3); 
   graph->SetName("abcd_2");       
   graph->SetPoint(0,-7.,57.);      
   graph->SetPoint(1,-8.,58.);      
   graph->SetPoint(2,-9.,57.);      

   multigraph->Add(graph,"");
   multigraph->Draw("af");
}

Revision 36493 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 3 13:01:36 2010 UTC (4 years, 2 months ago) by couet
File length: 79030 byte(s)
Diff to previous 34699
- New method IsInside() returning 1 if a (x,y) position is
  inside the polygons(s) defined by the graphs(s), 0 otherwise.

Revision 34699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 2 14:17:26 2010 UTC (4 years, 5 months ago) by moneta
File length: 78310 byte(s)
Diff to previous 34561
fix doc for TGraph::Fit conserning usage of fit result (thanks to Axel)

Revision 34561 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 22 16:12:46 2010 UTC (4 years, 6 months ago) by brun
File length: 79138 byte(s)
Diff to previous 34188
Fix typo

Revision 34188 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 29 14:24:07 2010 UTC (4 years, 6 months ago) by brun
File length: 79137 byte(s)
Diff to previous 33819
Fix a sign problem in the algorithm of TGraph::Integral.
see http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=10680

Revision 33819 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 10 13:54:57 2010 UTC (4 years, 7 months ago) by couet
File length: 78992 byte(s)
Diff to previous 33816
- Found by coverity: TGraph g((TH1*)0); produced a seg-fault

Revision 33816 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 10 13:27:07 2010 UTC (4 years, 7 months ago) by couet
File length: 78978 byte(s)
Diff to previous 33629
- Coverity: the return value of CtorAllocate was not checked 
  in TGraph::TGraph().

Revision 33629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 28 08:55:18 2010 UTC (4 years, 7 months ago) by couet
File length: 78965 byte(s)
Diff to previous 33587
- Fix the bug mentionned here: 
  http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=10388&p=45064#p45064
  The axis title was not displayed with the following macro:

{
   TGraph *graph = new TGraph ();
   graph->SetPoint(0, 0.00100, 30.00);
   graph->SetPoint(1, 0.00150, 20.00);
   graph->SetPoint(2, 0.01150, 30.00);
   graph->Draw("AL*");
   graph->GetXaxis()->SetTitle("foo") ;
   gPad->SetLogx(1) ;
}

Revision 33587 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 20 07:27:00 2010 UTC (4 years, 8 months ago) by moneta
File length: 77089 byte(s)
Diff to previous 33443
add in FitResult the methods ParError to avaoid conflic observed in TFitResult with TObject::Error. 
This fixes problem reported at https://savannah.cern.ch/bugs/index.php?67671. 

Add also a Parameter and ParName methods to have  consistent API. 
Update documentation of TH1::Fit and TGraph::Fit to use the new methods

Revision 33443 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 12:40:58 2010 UTC (4 years, 8 months ago) by brun
File length: 77082 byte(s)
Diff to previous 33302
From Heiner Tholen:
Improve doc of TGraph constructor reading input from filename.

Revision 33302 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 30 08:25:11 2010 UTC (4 years, 8 months ago) by moneta
File length: 76844 byte(s)
Diff to previous 32930
fix Tgraph::Fit documentation (see https://savannah.cern.ch/bugs/?66715 )

Revision 32930 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 9 16:18:32 2010 UTC (4 years, 9 months ago) by pcanal
File length: 76886 byte(s)
Diff to previous 32832
Prefer the use of InheritsFrom(TClass*) over InheritsFrom(const char*) as long as 
it does not increase the library dependencies.

Revision 32832 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 30 10:04:54 2010 UTC (4 years, 9 months ago) by brun
File length: 76910 byte(s)
Diff to previous 31948
Implement suggestion from Thomas Bretz to use gSystem->ExpandPathName in TGraph::TGraph(const char *filename)

Revision 31948 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 25 18:44:45 2009 UTC (5 years ago) by brun
File length: 76838 byte(s)
Diff to previous 31907
In TGraph::RecursiveRemove reset fHistogram.
see http://savannah.cern.ch/bugs/?60923

Revision 31907 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 15 20:57:28 2009 UTC (5 years, 1 month ago) by moneta
File length: 76796 byte(s)
Diff to previous 31801
fix a bug in TGraph::Eval on the TGraph points. The bug is introduced in 29722
and has been fixed thanks to the post http://root.cern.ch/phpBB2/viewtopic.php?p=40978

Revision 31801 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 10 15:09:29 2009 UTC (5 years, 1 month ago) by moneta
File length: 76705 byte(s)
Diff to previous 31604
apply fixes in the documentation of TGraph::Fit from Matthew Strait

Revision 31604 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 7 19:04:33 2009 UTC (5 years, 1 month ago) by moneta
File length: 76670 byte(s)
Diff to previous 31491
- fix a problem returning the covariance matrix when fit failed. Now all minimizer implements CovMatrixStatus() when they calculate the covariance matrix. Add in FitResult method to return covariance matrix status 
- Add a flag in interface of Minimizer::GetMinosError to do separatly positive or negative errors 
- fix usage of  default minimizer from what is defined in etc/system.rootrc

- improve comment in TH1::Fit and TGraph::Fit for usage of TFitResultPtr

Revision 31491 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 1 18:11:55 2009 UTC (5 years, 1 month ago) by moneta
File length: 73502 byte(s)
Diff to previous 31362
Merge the changes from David in the dev branch (up to rev 31490) to return the TFitResultPtr from the Fit methods of 
TGraph, TGraph2D, TMultiGraph, THnSparse

Revision 31362 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 21 09:45:13 2009 UTC (5 years, 2 months ago) by moneta
File length: 73486 byte(s)
Diff to previous 31207
update comments in the Fit method for the new changes of TFitResult

Revision 31207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 16 16:52:00 2009 UTC (5 years, 2 months ago) by moneta
File length: 72304 byte(s)
Diff to previous 30750
merge from  https://root.cern.ch/svn/root/branches/dev/mathDev/hist/hist  up to revision 31170 
from David and myself 


Summary of major changes: 

- TFitResult, TFitResultPtr

  - add new class TFitResult which extend FitResult with TNamed for the I/O. The result of the fit , including covariance and correlation matrix, minos errors, etc... can then be stored  in a file
  - add a class TFitResultPtr which behaves like a pointer to TFitResult and can be converted to an integer. This class is now returned by TH1::Fit and TGraph::Fit. By default the class contains only the returned integer status of the fit. If option "S" is used the class contains a pointer to TFitResult which can be retrieved using the -> or * operators (like a smart pointer)
The conversion to int provides backward compatibility with the old signature ( int TH1::Fit )

- TH1, TGraph, TGraph2D, TMultiGraph
  change from int Fit(....)  to TFitResultPtr Fit(.....)
  remove internal function DoFit  
  
- THnSparse

  add functionality for fitting a sparse histogram. Default method is the likelihood one. Chi2 can be used with the new option "X"

- FOption

 - add some new options for fitting: 
 
     "S" for storing the fit resul
     "X" for forcing chi2 fit in case of THnSParse
     "EX0" for neglecting errors in X when fitting TGraphErrors

- WrappedMultiTF1

 - make the wrapper for TF1 multi-dim function implementing the gradient interface 

Minos changes: 

 TH1: 
  - add check of compatibility for each bins when using Add on variable bin histograms

 TH3: 
 - fix a bug in setting the entries for a projected 2d profile when using weights
 THNSParse: 
 - set also the entries (and reset statistics) in the projected sparse histogram

 TFormula: 
 - define the number for the 2d function like xygaus or xylandau

 HFItInterface: 
  improve filling data for histograms (add support for bin volume normalization)
  add initialization for exponential and 2d gaus functions

Revision 30750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 15 16:38:46 2009 UTC (5 years, 3 months ago) by brun
File length: 71309 byte(s)
Diff to previous 30393
From Matthew Strait:
This patch improves the documentation for TGraph::Fit. It: 
Adds and removes spaces where needed
Fixes spelling and grammar errors
Wraps long lines and, in one case, unwraps short lines
Capitalizes and adds periods
Clarifies that the "F" option "uses" rather than "switches to" the minuit fitter ("switches to" could be read as a global switch)

Revision 30393 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 24 08:45:21 2009 UTC (5 years, 4 months ago) by couet
File length: 71249 byte(s)
Diff to previous 29722
- Improve the doc: gives a direct access to the drawing options
  described in TGraphPainter. Remove trailing spaces.

Revision 29722 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 7 15:17:31 2009 UTC (5 years, 5 months ago) by moneta
File length: 71330 byte(s)
Diff to previous 29716
speed up linear interpolation in TGraph::Eval by avoiding sorting of the points

Revision 29716 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 7 10:35:41 2009 UTC (5 years, 5 months ago) by moneta
File length: 70496 byte(s)
Diff to previous 29445
- sort points in ascending order in TGraph::Eval
  This fixes the issue http://root.cern.ch/phpBB2/viewtopic.php?t=8861

Revision 29445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 11 12:15:45 2009 UTC (5 years, 6 months ago) by brun
File length: 70028 byte(s)
Diff to previous 29444
Follow the convention used for histograms also in TGraph::Integral.
If last argument=-1 the last point is taken.

Revision 29444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 11 11:01:41 2009 UTC (5 years, 6 months ago) by brun
File length: 70043 byte(s)
Diff to previous 28483
Implement a new function computing the integral of a graph
Double_t TGraph::Integral(Int_t first, Int_t last) const
{
   // Integrate the TGraph data within a given (index) range
   // NB: if first=last=0 (default) take the full range from 0 to fNpoints-1
   //     if (first >= last) the function returns 0.
   //   : The graph segments should not intersect.
   //Method:
   // There are many ways to calculate the surface of a polygon. It all depends on what kind of data 
   // you have to deal with. The most evident solution would be to divide the polygon in triangles and 
   // calculate the surface of them. But this can quickly become complicated as you will have to test 
   // every segment of every triangle and check if they are intersecting with a current polygon?s 
   // segment or if it goes outside the polygone. Many calculations that would lead to many problems...
   //      The solution 
   // Fortunately for us, there is a simple way to solve this problem, as long as the polygon?s 
   // segments don?t intersect.   
   // It takes the x coordinate of the current vertex and multiply it by the y coordinate of the next 
   // vertex. Then it subtracts from it the result of the y coordinate of the current vertex multiplied
   // by the x coordinate of the next vertex. Then divide the result by 2 to get the surface/area.
   //      Sources
   //      http://forums.wolfram.com/mathgroup/archive/1998/Mar/msg00462.html
   //      http://stackoverflow.com/questions/451426/how-do-i-calculate-the-surface-area-of-a-2d-polygon

Revision 28483 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 7 13:44:27 2009 UTC (5 years, 8 months ago) by rdm
File length: 68062 byte(s)
Diff to previous 28467
remove <TAB>.

Revision 28467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 6 13:30:32 2009 UTC (5 years, 8 months ago) by couet
File length: 68058 byte(s)
Diff to previous 28256
- The fix done in revision 28200 had a bad side effect,
  the following macro did not work anymore:
  {
     TCanvas* can = new TCanvas();
     can->SetLogx();
     can->SetLogy();
     TGraph* gra = new TGraph();
     for (int i = 0; i < 10; i++) gra->SetPoint(i, i + 1, i + 1);
     gra->SetTitle("title;x;y");
     gra->GetXaxis()->SetLimits(1e-2, 1e2);
     gra->GetHistogram()->SetMinimum(1e-2);
     gra->GetHistogram()->SetMaximum(1e2);
     gra->GetXaxis()->CenterTitle();
     gra->GetYaxis()->CenterTitle();
     gra->Draw("a*");
  }
  This is now fixed.

Revision 28256 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 16 12:35:35 2009 UTC (5 years, 9 months ago) by couet
File length: 67756 byte(s)
Diff to previous 28248
- One more fix in GetHistogram, stressGraphics did not work (test 21)
  with the previous version.

Revision 28248 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 16 09:58:51 2009 UTC (5 years, 9 months ago) by brun
File length: 67774 byte(s)
Diff to previous 28200
Fix a bug in TGraph::GetHistogram and add a protection when gPad=0

Revision 28200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 14 15:43:51 2009 UTC (5 years, 9 months ago) by couet
File length: 67740 byte(s)
Diff to previous 27072
- In GetHistogram: fix the problem mentionned here:
  http://root.cern.ch/phpBB2/viewtopic.php?p=35256#35256
  fHistogram is returned immediatly if it exists unless the log scale 
  is ON and the computed minimum is greater than zero. In that case the 
  histogram needs to be recomputed.

Revision 27072 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 5 08:43:55 2009 UTC (6 years ago) by moneta
File length: 67378 byte(s)
Diff to previous 26643
initialize always TGraph.fFunctions even when using the default TGraph ctor. 
This fix problem reported at https://savannah.cern.ch/bugs/?45607

Revision 26643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 4 07:32:04 2008 UTC (6 years, 1 month ago) by brun
File length: 67416 byte(s)
Diff to previous 26067
In TGraph::RemovePoint increase the picking distance to 10 pixels instead of 5.
see: http://root.cern.ch/phpBB2/viewtopic.php?t=7741

Revision 26067 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 3 15:02:57 2008 UTC (6 years, 2 months ago) by couet
File length: 67415 byte(s)
Diff to previous 25487
- Implement TGraph::DrawPanel

Revision 25487 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 12:44:13 2008 UTC (6 years, 4 months ago) by moneta
File length: 67411 byte(s)
Diff to previous 25360
Import changes from math development branch, in particular a re-implementation of 
fitting methods for the histogram and graph objects. 

NOTE: Since some files are removed, a  make clean-hist is needed in order to be able 
to compile hist after an svn update. 

 
The implementation of TH1::Fit, TGraph::Fit, TGraph2D::Fit and TMultiGraph::Fit is 
done in a common function implemented in HFitImpl.cxx (HFit::Fit). 

In addition the file HFitInterface.h define ROOT::Fit::FitObject functions passing 
option directly via Foption class and not by a string. They are used by the FitPanel.

Remove previously existing files THistFitInterface.cxx (and *.h) and 
TGraphFitInterface.cxx (and *.h). The code is now in the  HFitInterface.cxx (and *.h) 
files. 

Use plugin manager directly to open the Fit Panel. Do not pass anymore via the THistPainter. 
Changes in TH1::FitPanel, TGraph::FitPanel. 
Add FitPanel() method for TGraph2D and TMultiGraph. 

Add new class TBackCompFitter, providing a backward compatible implementation of 
TVirtualFitter using the new fitting class. It is constructed from the fitter class 
and can be used to retrieve the fit information (result and configuration) via the 
TVirtualFitter API from FitConfig and FitResult. A static istance is created after 
calling the Fit method.   
  
Other changes are:  


TGraph: 
  - when creating a graph from an histogram, don't use the same name. 
  Otherwise it will conflict later with histogram created internally by the TGraph. 

TH2: 
     add protected method TH2::DoFitSlices and TH2::DoProfile as common implementations
     for (FitSlicesX,FitSclicesY) and (ProfileX, ProfileY).
     pass the global statistics in DoProjection when range is (1,NBIN)

TBinimialEfficiencyFit: 
     add possibility to set verbose option, and set different precision and 
     max iterations for minimizing.

Revision 25360 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 4 13:45:47 2008 UTC (6 years, 4 months ago) by brun
File length: 76193 byte(s)
Diff to previous 24702
Change the API of TGrapg::GetPoint from
void TGraph::GetPoint(Int_t i, Double_t &x, Double_t &y) const
to
Int_t TGraph::GetPoint(Int_t i, Double_t &x, Double_t &y) const
   // The function returns -1 in case of an invalid request or the point number otherwise

Revision 24702 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 8 12:01:46 2008 UTC (6 years, 6 months ago) by brun
File length: 76083 byte(s)
Copied from: trunk/graf2d/graf/src/TGraph.cxx revision 24701
Diff to previous 24255
-Move the TGraph classes and derivatives from graf2d to hist
-The graf2d/graf has now only one dictionary instead of 2

Revision 24255 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 12 16:49:41 2008 UTC (6 years, 7 months ago) by rdm
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 76083 byte(s)
Diff to previous 24105
remove gxwork et al that are not used anymore (moved to TGraphPainter) and
were breaking "make static" with "gxwork multiple defined" error.

Revision 24105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 18:53:37 2008 UTC (6 years, 7 months ago) by brun
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 76130 byte(s)
Diff to previous 24101
Move back the functionm Zero from TGraphPainter::Zero to TGraph::Zero where it was originally.
This function is not a graphics function and it is used by several applications.

Revision 24101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 16:05:37 2008 UTC (6 years, 7 months ago) by couet
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 72993 byte(s)
Diff to previous 24084
- Remove useless lines.

Revision 24084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 1 15:34:01 2008 UTC (6 years, 7 months ago) by brun
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 73245 byte(s)
Diff to previous 24065
From Olivier and me:

Split the TGraph classes to move the graphics code to separate classes.
These classes will be moved to the hist directory once the classes will be ok.
The TGraphs are painted via the TVirtualGraphPainter class and its concrete
implementation TGraphPainter.
At the difference of the TH1 classes for which a different painter is created
when drawing each histogram, one single TGraphPainter class is created.
The TGraphPainter class does not have internal state, all the information
from TGraph is passed to the drawing functions via parameters.

Revision 24065 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 30 08:54:58 2008 UTC (6 years, 7 months ago) by couet
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 156849 byte(s)
Diff to previous 24064
- Roll back last commit.

Revision 24064 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 30 08:16:54 2008 UTC (6 years, 7 months ago) by couet
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 73515 byte(s)
Diff to previous 23631
- All the methods doing graphics are now in TGraphPainter.

Revision 23631 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 1 10:50:11 2008 UTC (6 years, 8 months ago) by rdm
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 156849 byte(s)
Diff to previous 23521
Fix coding conventions.

Revision 23521 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 24 14:49:05 2008 UTC (6 years, 9 months ago) by brun
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 156850 byte(s)
Diff to previous 23462
From Bertrand:
- Add a few missing #include <string>

Revision 23462 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 13:28:19 2008 UTC (6 years, 9 months ago) by couet
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 156832 byte(s)
Diff to previous 23377
- Fix shadowed variables.

Revision 23377 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 22 06:20:04 2008 UTC (6 years, 9 months ago) by brun
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 156827 byte(s)
Diff to previous 23140
From Eddy:
Improve setting/restoring of fitters

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
Original Path: trunk/graf2d/graf/src/TGraph.cxx
File length: 156546 byte(s)
Diff to previous 22827
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 22827 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 25 12:53:43 2008 UTC (6 years, 10 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 156546 byte(s)
Diff to previous 22546
- Protection added in PaintPolyLineHatches (division by zero).

Revision 22546 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 8 19:21:05 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 156082 byte(s)
Diff to previous 22527
other bunch of gcc 4.3 warnings removed:
-  warning: suggest a space before ; or explicit braces around empty body
   in for statement

Revision 22527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 7 16:37:03 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 156079 byte(s)
Diff to previous 22419
more gcc 4.3 warning fixes. Remains only some warning in Cint, Reflex
and xrootd.

Revision 22419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 156077 byte(s)
Diff to previous 21587
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed. 

Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included. 

Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.

Revision 21587 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 8 15:34:15 2008 UTC (7 years ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 156057 byte(s)
Diff to previous 21231
In PaintGraph fHistogram's limits are computed with some margins. The new
minimum along x is stored in "uxmin" and the new minimum along y in "minimum".
In some cases the new minimum can be negative whereas the real minimum is
positive. In such case, the new minimum was set to 90% of the real minimum
in case of log scale, and to 0 in case of linear scale. Setting to 0 in case
of linear scale, was not a good idea because if the pad is turned into log
scale later on, then some points close to the real mimimum are not visible.
The following macro demonstrate the problem:

{
   Double_t x[2];
   Double_t y[2];
   x[0]=  200; y[0]=2.0271;
   x[1]=3e+06; y[1]=0.0005;
   TGraph *gr = new TGraph(2,x,y);
   gr->Draw("alp");
   gr->SetMarkerStyle(20);
   gPad->Update();
   gPad->SetLogx();
   gPad->SetLogy();
}
 
Now, when the new computed minimum is negative and when the real minimum is
positive, the new minimum is set to 90% of the real minimum in both log and 
linear scale.

Revision 21231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:22:14 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 156217 byte(s)
Diff to previous 20882
change all occurances where %x is used to format a pointer to %lx.

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/TGraph.cxx
File length: 156215 byte(s)
Diff to previous 20335
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 20335 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 13 14:19:50 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156215 byte(s)
Diff to previous 20308
Change TGraph::ComputeRange to compute the x/y range of the graph.
Move code previously in TGraph::PaintGraph or TGraph::PaintGrapHist to TGraph::ComputeGraph.
The functions like TGraphErrors::ComputeGraph call first TGraph::ComputeRange.
--achis line, and those below, will be ignored--

M    graf/src/TGraph.cxx
M    graf/src/TMultiGraph.cxx
M    graf/src/TGraphErrors.cxx
M    graf/src/TGraphAsymmErrors.cxx
M    graf/src/TGraphBentErrors.cxx

Revision 20308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 11 11:23:01 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 156560 byte(s)
Diff to previous 20297
- In SavePrimitive "*l" should be declared as const (strtstr returns a 
  const *char). This produced an error on Solaris.

Revision 20297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 10 16:20:03 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 156554 byte(s)
Diff to previous 19826
- The SavePrimitive mechanism did not work properly. In particular
  it was not possible to save various kind of graphs in several multigraph
  in the same macro. Also in case of TGraph the generated macro was wrong 
  (Add() was missing).
- Make the help in the THTML style
- coding convension

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/TGraph.cxx
File length: 156579 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/TGraph.cxx
File length: 156629 byte(s)
Diff to previous 19723
remove :$ from tag line

Revision 19723 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 30 07:26:07 2007 UTC (7 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156639 byte(s)
Diff to previous 19708
Fix coding conventions.

Revision 19708 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 28 08:39:37 2007 UTC (7 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156629 byte(s)
Diff to previous 19623
Add code suggested by  	Thomas Schietinger at https://savannah.cern.ch/bugs/?29117
"May I suggest to include a CompareArg() in TGraph, similar to CompareRadius(), i.e. to provide (just for convenience) the possibility to sort the TGraph according to angle. This is useful when points lie on an ellipse or so, but are not in order."

Revision 19623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 15 07:38:16 2007 UTC (7 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156174 byte(s)
Diff to previous 18748
Implement the following changes in TGraph::Draw
  -when option "same" is specified it is ignored
  -when option "a" is specified the pad is cleared

Revision 18748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 11 15:18:49 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156204 byte(s)
Diff to previous 18628
In TGraph::PaintGraph take into account the special case where teh TGraph as an empty name.
When this happens, the code generated by SaveAs in a .C file contained an invalid pointer.

Revision 18628 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 30 20:38:08 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156298 byte(s)
Diff to previous 18608
in the TGraph destructor, reset fFunctions to 0 to avoid access to a deleted object in TGraph::RecursiveRemove.

Revision 18608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 27 08:36:23 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 156220 byte(s)
Diff to previous 18589
iImplement the following return status from TGraph::Fit:
   The function return the status of the fit in the following form
     fitResult = migradResult + 10*minosResult + 100*hesseResult
   The fitResult is 0 is the fit is OK.
   The fitResult is negative in case of an error not connected with the fit.

Revision 18589 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 25 14:59:12 2007 UTC (7 years, 9 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 155801 byte(s)
Diff to previous 18575
- Apply the valid fix suggested here: https://savannah.cern.ch/bugs/?25788
  "TGraph::PaintGrapHist shifts points by half-a-bin when painting
   lines in low-res". The following macro show the problem:

   void lowRes(int nbins=10000) {
      c = new TCanvas("lowRes","lowRes",0,0,700,800);
      TH1F *h1 = new TH1F("h1","my histogram",nbins,-3,3);
      for (int i=0;i<1000000;i++) h1->Fill(gRandom->Gaus(0,1));
      h1->SetMarkerStyle(20); h1->Draw("EP");
      TH1F *h12 = h1->DrawCopy("l same");
      h12->SetLineColor(kRed);
      h1->GetXaxis()->SetRange(1,40);
   }

   Before this fix the line plot and the error plot were shifted.

Revision 18575 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 24 15:16:18 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 155805 byte(s)
Diff to previous 18531
TGraph::Fit now returns the status of the fit (result of
grFitter->ExecuteCommand("MIGRAD",arglist,2);)

Revision 18531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 14:29:46 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 155792 byte(s)
Diff to previous 18444
In TGraph::Fit correct the error on the parameters by sqrt(chisquare/(ndf-1))
also when fitting with the Linear Fitter.

Revision 18444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 30 15:01:32 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 155278 byte(s)
Diff to previous 18116
From Anna:
changed the comments to TGraph::LeastSquareLinearFit() to describe the real meaning of the parameters

Revision 18116 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 07:55:19 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 155177 byte(s)
Diff to previous 18091
In the SavePrimitive functions add the TPaveStats object (if one) to the list
of functions using the correct pointer name.

Revision 18091 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 26 17:27:22 2007 UTC (7 years, 10 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 155089 byte(s)
Diff to previous 18081
- New documentation.

Revision 18081 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 26 08:39:22 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 155414 byte(s)
Diff to previous 18080
Fix a problem in TGraph::ExecuteEvent in case the fHistogram pointer is null.
In this case TPad::Range should not be called.

Revision 18080 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 26 08:16:38 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 155365 byte(s)
Diff to previous 17967
Modify TGraph::DistancetoPrimitive to select the graph when clicking inside
the graph if it has been drawn with the fill area option.

Revision 17967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 15 15:04:41 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 154976 byte(s)
Diff to previous 17823
-replace calls to gROOT->GetMakeDefCanvas()() by gROOT->MakeDefCanvas()

Revision 17823 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 9 12:50:40 2007 UTC (7 years, 11 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 154982 byte(s)
Diff to previous 17727
- In SetPoint: if fHistogram exists it is deleted. When a point is added
  the current fHistogram, it it exists, is invalid. A new one will be
  recomputed next time the TGraph will be plotted.

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/TGraph.cxx
File length: 154910 byte(s)
Diff to previous 17587
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 17587 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 17:26:35 2007 UTC (7 years, 11 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 154901 byte(s)
Diff to previous 17581
- Option chopth should be initialized to " " in PaintGrapHist otherwise the
  following macro draws am horizontal line at 0:

  {
      TCanvas c1;
      TGraph g;
      g.SetPoint(0, -1,-1);
      g.SetPoint(1,  0, 0);
      g.SetPoint(2,  1, 1);
      g.Draw("A*");
   }

Revision 17581 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 11:49:15 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 154900 byte(s)
Diff to previous 17343
-Replace calls to gROOT->GetClass by TClass::GetClass
-Remove unused references to TROOT.h
-Add include TClass.h in classes assuming an implicit include by other classes

Revision 17343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 16:50:09 2007 UTC (8 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 154898 byte(s)
Diff to previous 16907
Fix a problem in the TGraph assigment operator

Revision 16907 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 24 10:17:46 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 154847 byte(s)
Diff to previous 16903
Implement TGraph::RecursiveRemove.
Remove depency of TVirtualUtilPad

Revision 16903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 24 09:20:34 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 154550 byte(s)
Diff to previous 16731
Remove dependency on TVirtualUtilPad. TGraph::Fitpanel goes via CINT
to call TFitEditor

Revision 16731 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 10 08:32:21 2006 UTC (8 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 154928 byte(s)
Diff to previous 16580
Add a new function:
Double_t TGraph::Chisquare(const TF1 *f1) const
{
   // Return the chisquare of this graph with respect to f1.
   // The chisquare is computed as the sum of the quantity below at each point:
   //
   //                     (y - f1(x))**2
   //         -----------------------------------
   //         ey**2 + (0.5*(exl + exh)*f1'(x))**2
   //
   // where x and y are the graph point coordinates and f1'(x) is the derivative of function f1(x).
   // This method to approximate the uncertainty in y because of the errors in x, is called
   // "effective variance" method.
   // In case of a pure TGraph, the denominator is 1.
   // In case of a TGraphErrors or TGraphAsymmErrors the errors are taken
   // into account.

Revision 16580 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 20 16:00:40 2006 UTC (8 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 153014 byte(s)
Diff to previous 16535
- In DistanceToPrimitive() the test to see if "the point (px,py) is not in
  the graph area" was done too late. Therefore the TGraph was picked outside
  the pad limits. In particular it hide the TAxis in case of zoom.

Revision 16535 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 16 12:08:55 2006 UTC (8 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 153017 byte(s)
Diff to previous 16279
Add a protection in TGraph assignmenet operator in case the graph has 0 points

Revision 16279 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 15 15:16:57 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 152986 byte(s)
Diff to previous 16263
From Anna:
- TFormula::EvalPar() is not changing parameters (the fParams data member) when a user passes his own uparams array as a second argument. Before - sometimes it did, sometimes it didn't.
- TF1::GradientPar() is now 0 on fixed parameters
- TFitter::GetConfidenceIntervals() is now taking the fixed parameters into account
- TLinearFitter::GetConfidenceIntervals()  is now taking the fixed parameters into account
- TLinearFitter::FixParameter() can now be called before a first fit is performed (an accidently found bug :))
- TLinearFitter::Eval() now returns 1 if there are errors in the fit. According changes in:
  --TH1
  --TGraph
  --TGraph2D
  --TMultiGraph

Revision 16263 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 14 12:46:33 2006 UTC (8 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 152963 byte(s)
Diff to previous 16203
From Ilka:
Modify comments decsribing the "W" option in the Fit functions.

Revision 16203 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 5 09:39:39 2006 UTC (8 years, 4 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 152943 byte(s)
Diff to previous 15672
- Several improvements in the exclusion zone algorithm (PaintPolyLineHatches):
  * Some parts of the exclusion were sometimes drawn on the wrong side of the
    graph.
  * Special (simpler) case when the graph is vertical or horizontal.
  * Make sure that two consecutive points are not equal (it produced a
    division by zero)
  * Improvement in the graph closing. The added point to close the graph was
    sometimes on the wrong side of the curve.

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/TGraph.cxx
File length: 153122 byte(s)
Diff to previous 15171
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 15171 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 16:44:33 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 153114 byte(s)
Diff to previous 15134
Fix coding conventions violations

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/TGraph.cxx
File length: 153066 byte(s)
Diff to previous 15048
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 15048 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 15 13:11:35 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 152237 byte(s)
Diff to previous 14999
- PaintPolyLineHatches: Close the exclusion zone when the first and last point
  of the graph are the same. Later we can add an option to force the graph
  closing.

Revision 14999 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 11 15:02:35 2006 UTC (8 years, 8 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 151845 byte(s)
Diff to previous 14903
- PaintPolyLineHatches: In some cases the exclusion zone was drawn on the wrong
  side for the first and last points of the graph.

Revision 14903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 3 13:33:23 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 151366 byte(s)
Diff to previous 14872
Replace all references to TVector by TVectorF

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/graf/src/TGraph.cxx
File length: 151364 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/graf/src/TGraph.cxx
File length: 151432 byte(s)
Diff to previous 14605
- In ExecuteEvent, when ESC is pressed, the current editing is canceled.
  That's a convenient way to avoid unwanted changes or moves.

Revision 14605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 8 13:36:44 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 151214 byte(s)
Diff to previous 14565
Change TGraph::SetPoint to call only gPad->Modified() when changing/adding points instead of deleting the intermediate histogram.

Revision 14565 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 6 13:45:26 2006 UTC (8 years, 9 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 151257 byte(s)
Diff to previous 14336
- When a graph is painted with the option "C" or "L" it is now possible to draw
  a filled area on one side of the line. This is useful to show exclusion
  zones. This drawing mode is activated when the absolute value of the
  graph line width (set thanks to SetLineWidth) is greater than 99. In that
  case the line width number is interpreted as 100*ff+ll = ffll . The two
  digits number "ll" represent the normal line width whereas "ff" is the
  filled area width. The sign of "ffll" allows to flip the filled area
  from one side of the line to the other. The current fill area attributes
  are used to draw the hatched zone.

  This new functionality is implemented thanks to the new method
  PaintPolylineHatches().

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/TGraph.cxx
File length: 145204 byte(s)
Diff to previous 14038
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 14038 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 13 09:52:33 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 145184 byte(s)
Diff to previous 13975
- New options X+ and Y+ to paint the X axis on top of the plot
 (default is bottom) and the Y axis on the right of the plot
 (Default is left).

Revision 13975 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 1 17:45:56 2006 UTC (8 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 145108 byte(s)
Diff to previous 13932
From Anna:
I think I found what causes the segfault of the bug report #14791.

Revision 13932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 26 07:55:46 2006 UTC (8 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 145102 byte(s)
Diff to previous 13607
In the various constructors accepting TVector as input take into account
the case where the vector(s) may have a lower bound non zero.

Revision 13607 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 10 00:23:33 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 144949 byte(s)
Diff to previous 13334
Modify the TGraph default constructor and TGraph::CtorAllocate such that
the list of functions is created if the number of points is greater or equal
to 0. In the previous version the list of functions was not created
when the number of points was null.
This resolves the minor problem reported at:
https://savannah.cern.ch/bugs/?func=detailitem&item_id=14152

Revision 13334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 24 08:55:13 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 145000 byte(s)
Diff to previous 13330
- PaintGrapHist:
  After previous fix some lines of code were useless.

Revision 13330 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 23 17:18:06 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 145309 byte(s)
Diff to previous 13269
- PaintGrapHist:
  The following example produced a wrong output:

  {
     hpx1 = new TH1F("hpx1","hpx1",100,-4,4);
     hpx2 = new TH1F("hpx2","hpx2",100,-4,4);
     Float_t px, py;
     for (Int_t i = 0; i < 25000; i++) {
        gRandom->Rannor(px,py);
        hpx1->Fill(px);
        hpx2->Fill(px);
        hpx2->Fill(py);
     }
     hpx1->SetFillColor(2);
     hpx1->SetFillStyle(3004);
     hpx1->Draw("LF2");
     hpx2->SetFillColor(1);
     hpx2->SetFillStyle(3005);
     hpx2->Draw("LF2 same");
  }

  The black histogram was not completly hatched.

Revision 13269 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 17 09:38:55 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 145296 byte(s)
Diff to previous 13251
- mods for the rules checker

Revision 13251 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 16 17:38:38 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 145292 byte(s)
Diff to previous 13229
- Mods to make the rules checker happy.

Revision 13229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 14 16:34:17 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 145067 byte(s)
Diff to previous 13107
- As indicated in the help of THistPainter::Paint, the option "A" used on
  histograms means "do NOT DRAW the axis". This option worked properly on lego
  and surfaces plots but not on 1D histograms and on "flat" 2D plots. Now it
  is hopefully working in all cases.
  A first attempt to make it work has been done in revision 1.226 of
  THistPainter. But it was tagged as "catastrophic" in revision 1.228 because
  it was not anymore possible to draw the TGraph axis.
  Indeed, for historical reasons, the option "A" applied on TGraph means
  exactly the opposite: "start a new plot and DRAW the axis".
  So the needed modifications were a bit more complex than the ones done in
  revision 1.226 of THistPainter. Actually some mods are needed in:

  * THistPainter::PaintAxis: return if Hoption.Axis == -1 (option "A").
    That was the "catastrophic" change of revision 1.226.
  * THistPainter::PaintTable: Hoption.Axis<=0 replaces !Hoption.Axis.
  * TGraph::PaintGraph: fHistogram->Paint(" ") replaces fHistogram->Paint("a").
  * TPad::DrawFrame: hframe->Draw(" ") replaces hframe->Draw("a").

Revision 13107 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 1 19:48:09 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 144990 byte(s)
Diff to previous 13006
From Anna Kreshuk:
- changes in TFumili::GraphFitChisquareFumili to use the effective variance
method in case of errors in x and y
- improved comments for TGraph::Fit and TFitter::GraphFitChisquare for this
case

Revision 13006 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 24 15:10:56 2005 UTC (9 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGraph.cxx
File length: 144641 byte(s)
Diff to previous 12988
- The previous revision missed a protection in case fFunctions == 0. For
  instance the macro zdemo.C crashed.

Revision 12988 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 20 05:25:45 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 144613 byte(s)
Diff to previous 12726
In TGraph::Paint take into account the object drawing option
for any object added to the TGraph list of functions.
Thanks to jhegeman@fnal.gov for the suggestion.

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/TGraph.cxx
File length: 144426 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/TGraph.cxx
File length: 144307 byte(s)
Diff to previous 12576
Fix coding conventions violations.

Revision 12576 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 30 16:45:07 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 143680 byte(s)
Diff to previous 12446
Changes to make the rulechecker happy with TGraph (ouf!)

Revision 12446 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 9 13:42:12 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 143680 byte(s)
Diff to previous 12136
Implement the "write" option in the UseCurrentStyle functions.

Revision 12136 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 23 10:04:08 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 143227 byte(s)
Diff to previous 11813
From Anna Kreshuk:
Methods to compute Least trimmed squares regression coefficients
were added to the TLinearFitter class.

Now robust linear fitting can be performed for the datasets, in which
outliers influence the ordinary least-squares fit. The maximal breakdown
point of the algorithm is |(floor((n-p)/2) +1)/n, which means that
LTS fit stays in a bounded region whenever floor((n-p)/2) or fewer
observations are replaced by arbitary points.

The implementation is based on the article "Computing LTS regression
for Large Data Sets" by Peter J. Rousseeuw and Katrien Van Driessen.

Revision 11813 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 18 12:31:10 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 142269 byte(s)
Diff to previous 11788
From Valeriy Onuchin:

this patch fixes all compilation problems for
ROOT under windows with VC6 compiler.

- The main problem is that VC6 compiler does not recognize
"long long" type in rootcint generated dictionaries,
To fix this, wherever "long long" type was writen in dictionary file it was
replaced with native win32 "long long" type_string "__int64".
Modified files are: cint/src/val2a.c, cint/src/newlink.c, cint/src/Class.cxx

Other changes:
- many  classes contained "list" variables.
  That produced name_clash with  std::list class name.
- many classes contained
 for (int i=0; ..) {..}
 for (int i=0; ..) {..}
 which caused "duplication of initialisation" bug.

- gl/src/CsgOps.cxx had outside declared templated parameter used inside
  internal function.
- TString Atoi, Atof - std namespace was removed.

_ TASimage - custom Streamer was changed. Reading/writing class version
   was added. That allows to keep "future compatibility"/"schema evolution"
   Demo files galaxy.root, gallery.root were rewritten.

- I rolled back changes in TGPicture class which are related to reading
   of XPM files because of problems under win32.

- TASImage::GetMask method was reimplemented.

- libAfterImage.tar.gz - fix all compilation problem under win32 (vc6)

Revision 11788 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 19:58:50 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 142272 byte(s)
Diff to previous 11750
Fix a problem in TGraph::DistancetoPrimitive in case the graph
has an associated function and a fit TPaveText. The TPaveText
could not be moved (Thanks to Eric Anciant for reporting the problem)

Revision 11750 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 6 15:40:22 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 142147 byte(s)
Diff to previous 11692
added default ctor to the Foption_t struct so that the initialization code
is not needed anymore in all the .cxx's files using Foption_t. This was
error prone as two new Foption_t members were not initialized in some
of the functions using them.

Revision 11692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 29 16:10:42 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 142515 byte(s)
Diff to previous 11675
From Anna Kreshuk:
Some additional comments into TH1, TGraph and TGraph2D Fit
functions and also some changes of the linear fitter.

Revision 11675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 26 14:31:56 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 141376 byte(s)
Diff to previous 11673
From Alexandr Malusek <Alexandr.Malusek@imv.liu.se>
Fix a problem in TGraph::Eval in case the point to be
computed is at the edges of the graph.

Revision 11673 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 26 12:33:04 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 141371 byte(s)
Diff to previous 11651
In the TGraph constructor reading ana scii file, replace the
use of the non portable ifstream::is_open by ifstream::good

Revision 11651 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 21 16:05:34 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 141374 byte(s)
Diff to previous 11605
A better version of the TGraph constructor creating a TGraph from an input ascii file.
(thanks to Mike Kordoski)

Revision 11605 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 17 14:12:50 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 141329 byte(s)
Diff to previous 11430
From Anna Kreshuk:
Some fixes for the linear fitter, some cosmetic changes in the
TH1, TGraph, TMultigraph and TGraph2D, and also the new fitting option
"F", which allows to switch to minuit when fitting a polN.

Revision 11430 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 26 06:57:35 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 141030 byte(s)
Diff to previous 11373
From Axel Naumann:
VC7 has a problem with a method param in TGraph::Sort called greater (it
confuses it with std::greater). Attached patch fixes that.

Revision 11373 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 18 22:41:27 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 141003 byte(s)
Diff to previous 11251
From Marek:
- TH1::Merge() adding overflows even when merging histograms with the
  same limits. If the limits are different the overflows are ignored.
  The same in TH2::Merge, TH3::Merge, TProfile::Merge and TProfile2D::Merge.

- Cleaning fHistogram (and this kind of) variables, so that the drawn
  plots aren't deleted in the TProofDrawXXX's destructor.

- Removed TProofNTuple from TProofDrawTGraph.

- Put the initialization code of fFeedback and fPlayer (=MakePlayer())
  in TProof in to Init().

- Added TGraph::Merge(). Added TPolyMarker3D::GetPoint(Int_t, Float&,
  Float&, Float&).

- Removed TProofNTuple from TProofDrawPolyMarker3D.

- Fixed cleaning output lists after processing (set option = "nodelete").
  Now the objects are on the player outputlist and are removed (but not
  deleted) from the selector's outputlist.

- Fixed TPolyMarker3D::Merge() - it seems that nobody has ever tried to
  run this function.

- Added setting tree attributes (like MarkerStyle, MarkerSize, LineColor etc.)
  to a drawn TGraph and TPolyMarker3D in TProofDrawGraph and
  TProofDrawPolyMarker3D.

Revision 11251 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 7 09:15:45 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 140392 byte(s)
Diff to previous 11231
For back compatibility change names of some recently introduced functions.
	virtual Double_t GetErrorXhigh(Int_t bin) const;
	virtual Double_t GetErrorXlow(Int_t bin)  const;
	virtual Double_t GetErrorYhigh(Int_t bin) const;
	virtual Double_t GetErrorYlow(Int_t bin)  const;
	virtual Double_t *GetEXhigh() const
	virtual Double_t *GetEXlow()  const
	virtual Double_t *GetEYhigh() const
	virtual Double_t *GetEYlow()  const

Revision 11231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 4 09:29:59 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 140376 byte(s)
Diff to previous 11226
Fix several portability problems on Solaris

Revision 11226 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 4 09:06:37 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 140367 byte(s)
Diff to previous 11161
From Anna Kreshuk:
- TLinearFitter class: Linear fitter is used to fit a set of data points with a linear
  combination of specified functions (with or without weights). The "linear" in the name
  stands for "linear in parameters", not variables. The main advantages,
  compared to a general non-linear fitter, is that the linear fitter is considerably
  faster and doesn't require setting the initial values of parameters.
  The linear fitter can be used directly or through TH1::Fit and TGraph::Fit functions
  When it's used directly, functions of more than 3 dimensions can be fitted.

- TFormula: a new data member fLinearParts and methods to process it are added. Now
  one can create a function of the type that can be fit by the linear fitter.
  Example: TFormula f("f", "x++sin(x)") is equivalent to
  TFormula f("f","[0]*x + [1]*sin(x)"), but if a TH1::Fit or a TGraph::Fit is performed
  with the 1st formula, it goes through the linear fitter, if it's performed with the
  2nd formula, it goes through Minuit.

- TMultiGraph class: the Fit method is implemented, allowing to fit all the graphs
  of a multigraph simultaneously

- TGraph, TGraphErrors, TGraphAsymmErrors, TGraphBentErrors - functions GetEXhigh(),
  GetEXlow(), GetEYhigh(), GetEYlow() implemented to simplify the GraphFitChisquare()
  function of the TFitter class

- TH1, TGraph, TGraph2D, TMultiGraph - changes in the Fit functions, allowing to use
  the linear fitter. Fitting with "polN" functions redirected to use the linear fitter,
  in cases where no options, except "range", are specified.

Revision 11161 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 21 16:57:15 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137777 byte(s)
Diff to previous 11125
Remove references to the unused kFitInit bit

Revision 11125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 16 08:39:56 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137833 byte(s)
Diff to previous 11111
n the previous version of TGraph::Fit, points were assumed to be given in increasing order along X. This restriction is removed in this new version.
The new implementation forces a change in the API of the following functions.
        virtual void     InitExpo(Double_t xmin=0, Double_t xmax=0);
        virtual void     InitGaus(Double_t xmin=0, Double_t xmax=0);
        virtual void     InitPolynom(Double_t xmin=0, Double_t xmax=0);
        virtual void     LeastSquareFit(Int_t m, Double_t *a, Double_t xmin=0, Double_t xmax=0);
        virtual void     LeastSquareLinearFit(Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Double_t xmin=0, Double_t xmax=0);

Revision 11111 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 14 15:12:18 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 138033 byte(s)
Diff to previous 10847
From Olivier:
- When an histogram with negative content only was painted as a filled
  area, the drawing exited the pad.

Revision 10847 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 27 15:42:36 2004 UTC (10 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137928 byte(s)
Diff to previous 10763
From Allesandro Thea
Fix in TMultiGraph::SavePrimitive to correctly save the option
specified in TMultiGraph::Add

Revision 10763 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 13 15:49:10 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137975 byte(s)
Diff to previous 10480
From Olivier:
- The last fix (revision 1.145) in TGraph::PaintGraph was incomplete. The
  following macro didn't show the negative part of the plot (because an
  empty fHistogram was created by SetTitle("X title")).

{
   const Int_t n = 64;
   Double_t x[n], y[n];
   for (Int_t i=0;i<n;i++) {
      x[i] = i*0.1;
      y[i] = 10*sin(x[i]+0.2);
   }
   gr = new TGraph(n,x,y);
   gr->GetXaxis()->SetTitle("X title");
   gr->Draw("ACP");
}

Revision 10480 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 5 11:17:34 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137706 byte(s)
Diff to previous 10386
From Olivier:
- After having executed the following macro, one got an error trying to
  set the Y Log scale from the pad pull down menu.

  {
     double y[3] = {0.1,.8,10};
     double x[3] = {1,2,3};
     TGraph graph(3,x,y);
     graph->Draw("A*");
  }

Revision 10386 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 07:05:23 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137715 byte(s)
Diff to previous 10361
Add a protection in TGraph::PaintGraph in case a user has inserted the TGraph
in the current directory. In this case, the generated histogram cannot
have the name of the TGraph.

Revision 10361 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 12:00:04 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137546 byte(s)
Diff to previous 10195
Add constructors accepting TVector and TVectorD

Revision 10195 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 16:30:58 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137567 byte(s)
Diff to previous 10014
Document option "b" in TH1::Fit and TGraph::Fit

Revision 10014 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 15:18:25 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137401 byte(s)
Diff to previous 10002
One protection introduced in version 1.139 was lost in 1.40
(Thanks Gero Flucke for noticing the problem)

Revision 10002 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 12:27:11 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137387 byte(s)
Diff to previous 9967
From Maxim Nikulin:
Improvement of the general TGraph suite memory management functions

Revision 9967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 07:47:36 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 139917 byte(s)
Diff to previous 9966
Add a protection suggested by J.Adamczewski@gsi.de in TGraph::ExecuteEvent
to protect a case that may happen in case of a TCutG when clicking
on the edges

Revision 9966 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 07:34:04 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 139903 byte(s)
Diff to previous 9908
From Maxim Nikulin:
Several improvements in the TGraph, TGraphErrors memory management
functions.
Added test (2 == sscanf(...)) in the TGraph::TGraph(const
char *filename, const char *format) constructor. It allows to skip empty
lines and comments like '# comment '. Similar TGraphErrors constructor
uses inaccurate field counting algorithm. It doesn't allow skipping
numbers using "*" modifier.

Revision 9908 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 06:54:55 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137255 byte(s)
Diff to previous 9876
Set the 2nd and trd argument of TGraph::Drawgraph optional
  void DrawGraph(Int_t n, const Double_t *x=0, const Double_t *y=0, Option_t *option="");
if x or/anf y are null pointers, the fX or fY arrays are used, such that
calling mygraph.Draw(n) draws only the first n points of the graph.

Revision 9876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 13:57:37 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 137157 byte(s)
Diff to previous 9821
Add a new transient data member
   Int_t fMaxSize;
Modify the function TGraph::SetPoint to double the size of the current
buffers when setting a point number >= fMaxSize.
In TGraph::Streamer (read mode) fMaxSize is set to fNpoints

Revision 9821 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 09:28:13 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 136431 byte(s)
Diff to previous 9792
From Olivier:
New option "2" in TGraphErrors::Paint, TGraphAsymmErrors::Paint and in
TGraphBentErrors::Paint to draw error rectangles.

Revision 9792 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 08:07:30 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 136403 byte(s)
Diff to previous 9553
In TGraph::DistancetoPrimitive when looping on list of associated functions
TF1::DistancetoPrimitive is called with -px instead of px to instruct
TF1::DistancetoPrimitive to not look in the histogram axis.

Revision 9553 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 20 07:23:34 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 136402 byte(s)
Diff to previous 9505
The selected pad and selected object are now passed as arguments
when creating the DrawPanel and Fitpanel, instead of using
the global pointers obtained via gROOt->GetSelectedPad.
This may fix some problems seen with the Qt version.

Revision 9505 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 12 20:06:33 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 136480 byte(s)
Diff to previous 9407
From Olivier:
New options in TGraphErrors::Paint, TGraphAsymmErrors::Paint and in
TGraphBentErrors::Paint :

if option "3" is specified a filled area is drawn through the end
points of the vertical error bars.

if option "4" is specified a smoothed filled area is drawn through
the end points of the vertical error bars.

Example:

{
   gROOT->Reset();
   c1 = new TCanvas("c1","A Simple GraphErrors Example",200,10,700,500);
   const Int_t n = 20;
   Double_t x[n], y[n], ex[n], ey[n];
   for (Int_t i=0;i<n;i++) {
     x[i]  = i*0.1;
     y[i]  = 10*sin(x[i]+0.2);
     ex[i] = 0.08;
     ey[i] = 0.1*i;
   }
   gr = new TGraphErrors(n,x,y,ex,ey);
   gr->Draw("A3");
}

Revision 9407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 6 14:48:42 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 136382 byte(s)
Diff to previous 9285
Improvement in TGraph::Fit:
 a little different approach to approximating the uncertainty in y because of the
 errors in x, is to make it equal the error in x times the slope of the line.
 The improvement, compared to the first method (f(x+ exhigh) - f(x-exlow))/2
 is of (error of x)**2 order. This approach is called "effective variance method".
 This improvement has been made in version 4.00/08 by Anna Kreshuk.

Revision 9285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 22 16:18:11 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 135979 byte(s)
Diff to previous 9070
From Valeriy Onuchin:
- allow to set draw option via TBrowser for browsing TGraph

Revision 9070 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 31 18:05:05 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 135858 byte(s)
Diff to previous 8804
Fix a bug in TGraph copy constructor

Revision 8804 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 12:58:40 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 135852 byte(s)
Diff to previous 8719
Add comments in TGraph::Fit and LeastSquareLinearFit

Revision 8719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 28 09:29:42 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 134569 byte(s)
Diff to previous 8578
In TGraph::Fit, implement automatic initialisation of the fit parameters
in case the TF1 function is "landau'

Revision 8578 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 14 14:17:20 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 134501 byte(s)
Diff to previous 8513
In TGraph::DistancetoPrimitive authorize picking outside the frame area.

Revision 8513 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 29 16:12:21 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 134501 byte(s)
Diff to previous 8473
From Eddy:
initialize the fitter with the number of function parameters, was fixed to 25.
Idem in TGraph and TGraph2D. Also fixed potential memory leak in case function
is invalid.

Revision 8473 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 22 15:56:53 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 134247 byte(s)
Diff to previous 8443
make SetEditable() a *TOGGLE* context menu item.

Revision 8443 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 19 14:24:42 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 134071 byte(s)
Diff to previous 8431
Fix a memory leak in the new version of TGraph::Eval

Revision 8431 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 18 13:52:05 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 134036 byte(s)
Diff to previous 8414
Extend functionality of the new function TGraph::Eval
Double_t TGraph::Eval(Double_t x, TSpline *spline, Option_t *option) const
{
// Interpolate points in this graph at x using a TSpline
//  -if spline==0 and option="" a linear interpolation between the two points
//   close to x is computed. If x is outside the graph range, a linear
//   extrapolation is computed.
//  -if spline==0 and option="S" a TSpline3 object is created using this graph
//   and the interpolated value from the spline is returned.
//   the internally created spline is deleted on return.
//  -if spline is specified, it is used to return the interpolated value.

Revision 8414 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 17 07:52:22 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 133151 byte(s)
Diff to previous 8287
Add a new function
 Double_t Eval(Double_t x, TSpline *spline=0) const;
 // Interpolate points in this graph at x using a TSpline
 //  -if spline==0 a TSpline3 object is created using this graph
 //   and the interpolated value from the spline is returned.
 //   the internally created spline is deleted on return.
 //  -if spline is specified, it is used to return the interpolated value.

Make TGraph::GetPoint const

Revision 8287 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 22 11:31:17 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 132509 byte(s)
Diff to previous 7920
Implement copy constructor for all TGraph family of classes

Revision 7920 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 16 13:32:46 2004 UTC (11 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131887 byte(s)
Diff to previous 7854
Replace the calls to fFunctions->Delete in the destructors and Reset
functions by an explicit loop to take into account the case of the same
object (with different drawing options) being added to the same list.
This, in principle, should be covered by the "slow" option in TList::Delete,
but the logic does not work. To be revesited!

Revision 7854 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 6 17:39:06 2004 UTC (11 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131575 byte(s)
Diff to previous 7640
Modify TGraph::Browse to use the environment variable TGraph.BrowseOption.
By default the option is "alp" and can be modified by:
  adding a line with TGraph.BrowseOption:  myoption
  calling gEnv->SetValue("TGraph.BrowseOption",myoption)

Revision 7640 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 24 14:29:13 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131519 byte(s)
Diff to previous 7629
In TGraph::Fit and TGraph2D::Fit use TVirtualFitter::GetErrorDef to set the fitter Error Definition
instead of the hardwired value 1.

Revision 7629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 22 21:48:18 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131491 byte(s)
Diff to previous 7489
Accept option "same" in TGraph::Draw and TGraph::PaintGraph.
The option is dummy. It is introduced for consistency with
other high level classes (TH1, TTree). It eliminates
the problem with the native option "a" of TGraph.

Revision 7489 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 29 08:51:44 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131455 byte(s)
Diff to previous 7452
Remove trailing CRTL/M

Revision 7452 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 20 15:55:54 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131454 byte(s)
Diff to previous 7449
In TGraph::Streamer, scan the list of functions and set the parent
of the TF1 object to the TGraph object.

Revision 7449 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 20 06:50:32 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131287 byte(s)
Diff to previous 7402
In TGraph::Fit remove previous TF1 object from the list of functions like in TH1::Fit

Revision 7402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 7 08:58:16 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131216 byte(s)
Diff to previous 7369
Add a protection in TGraph::GetHistogram in case the number of points
in the graph is null.

Revision 7369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 17:48:57 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131120 byte(s)
Diff to previous 7264
Fix a small problem in TGraph::PaintGrapHist when zooming a histogram along X.
Clipping was not always correct.

Revision 7264 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 12 08:03:31 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131298 byte(s)
Diff to previous 7229
Fix a problem in TGraph::PaintGrapHist when superimposing two histograms
with different ranges and the second histogram has a fill color.
Thanks Ed Oltman for reporting the problem.

Revision 7229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 8 10:08:39 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131228 byte(s)
Diff to previous 7206
A few improvements in TGraph::PaintGrapHist when the frame line width is
greater than 1 pixel and fill area options are used.

Revision 7206 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 3 12:42:35 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131056 byte(s)
Diff to previous 7119
In TGraph::PaintGrapHist, fix a side-effect of a recent change
in case of log scales.

Revision 7119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 20 15:40:29 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131014 byte(s)
Diff to previous 6985
In TGraph::PaintGrapHist clip bins with contents less or equal to the minimum
in case of "polymarker" option.

Revision 6985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 22 16:03:08 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131146 byte(s)
Diff to previous 6958
Remove obsolete option "B" when calling TPad::PaintBox in TGraph::PaintGrapHist

Revision 6958 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 17 07:38:05 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131156 byte(s)
Diff to previous 6904
In TGraph::PaintGrapHist take into account the frame line width.
The histogram fill area or contour cannot overwrite anymore the frame contour.

Revision 6904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 12 13:38:48 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 129902 byte(s)
Diff to previous 6903
Improve performance of TGraph::ComputeLogs

Revision 6903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 12 12:54:32 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 129922 byte(s)
Diff to previous 6845
In TGraph::PaintGrapHist, use the NoClip option "C" when calling
TPad::PaintPolyLine in case the kClipFrame bit is not set.

Revision 6845 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 7 20:14:20 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 129758 byte(s)
Diff to previous 6539
Fix a problem in TGraph::paint when painting a graph with option "C"
and one or more points are outside the range. The best algorithm
is to let the new clipping algorithm do its work.

Revision 6539 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 5 16:38:34 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 129890 byte(s)
Diff to previous 6480
Many changes in TGraph::Fit to use the new TVirtualFitter extended interface.
The static functions GraphFitChisquare has been moved to TFitter.

The global variables :
  TF1 *grF1
  TVirtualfitter *grFitter
have been deleted and replaced by functions from TVirtualFitter.

Revision 6480 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 25 07:36:02 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131721 byte(s)
Diff to previous 6448
Fix a problem in TGraph::Smooth preventing option "CF" (smooth fill area)
to work correctly as well as option "e4" in TH1::Draw

Revision 6448 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 15 06:51:16 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131707 byte(s)
Diff to previous 6445
Fix a portability problem (loop index Ip defined twice in the same function)

Revision 6445 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 14 16:54:31 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 131658 byte(s)
Diff to previous 6418
From Olivier.
Implement new histogram drawing option "]["
When this option is specified, the vertical lines for the first and last bin
are not drawn.
This option is interesting when superimposing many histograms on the same picture.

Revision 6418 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 20:12:22 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 130695 byte(s)
Diff to previous 6317
New set of functions added to TGraph, TGraphErrors, TGraphAsymmErrors to sort
a graph via a standard predefined function in TGraph or a user defined function.
Thanks to Axel Naumann

Revision 6317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 19:23:40 2003 UTC (11 years, 10 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 127462 byte(s)
Diff to previous 6312
few small typos in comment.

Revision 6312 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 17 13:02:21 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127461 byte(s)
Diff to previous 6253
From Olivier:
THistPainter::PaintHist
      - In case of option "line" the center of the bin was used to fill
        the vector pass to TGraph::PaintGrapHist. This generated
        incompatibilities when option "line" was used with other options.
      - Clean up, removed a lot of useless code.

TGraph::PaintGrapHist:
      - Take into account the modification done in THistPainter::PaintHist
      - In case of low resolution the histogram drawing was shifted by
        one bin on the left.

Revision 6253 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 5 20:40:55 2003 UTC (11 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127415 byte(s)
Diff to previous 6154
Thanks to Jiri Masik for reporting a problem in the TGraph constructor
with a TH1 as argument. One should set the max/min of the graph
using the min/max of the original histogram.

Revision 6154 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 20 18:11:55 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127491 byte(s)
Diff to previous 5846
In TGraph::GetHistogram take into account a possible setting of fMaximum and fMinimum
when creating the local histogram.

Revision 5846 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 6 08:38:14 2003 UTC (12 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127398 byte(s)
Diff to previous 5843
Protect TGraph::RemovePoint in case gPad is null.

Revision 5843 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 2 22:41:49 2003 UTC (12 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127388 byte(s)
Diff to previous 5830
Protect several functions like ComputeRange, GetHistogram, GetXaxis
when gPad is null.

Revision 5830 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 19 07:47:35 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127384 byte(s)
Diff to previous 5762
In TGraph::GetHistogram take into account the case when ymin is slightly negative.

Revision 5762 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 6 22:08:04 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127446 byte(s)
Diff to previous 5717
Changes in TGraph::SetMinimum,SetMaximum to use GetHistogram() instead of fHistogram.
GetHistogram guarantees that fHistogram is computed.

Revision 5717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 127472 byte(s)
Diff to previous 5707
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.

Revision 5707 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 30 10:36:06 2002 UTC (12 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127563 byte(s)
Diff to previous 5611
Fix a problem in TGraph::PaintGrapHist in low resolution mode with empty bins

Revision 5611 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 18 21:48:03 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127521 byte(s)
Diff to previous 5602
In the fit functions, the test on Foption.Errors was not correct.
As a result, the parabolic error was returned in case the maximum
precision error had been requested and vice-versa.

Revision 5602 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 16 15:17:47 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 127520 byte(s)
Diff to previous 5533
Make const the function ComputeRange in TGraph, TGraphErrors
   and TGraphAsymmErrors.
Rewrite TGraph::GetHistogram to create the histogram without
painting the graph.

Revision 5533 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 4 21:19:55 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125808 byte(s)
Diff to previous 5301
In TGraph::PaintGrapHist, skip points that are below the minimum in y when in log scale.

Revision 5301 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 15 19:45:15 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125803 byte(s)
Diff to previous 5285
Use the plugin manager and the new interface TVirtualUtilPad instead
of hardwired calls to the interpreter.

Remove the now obsolete static function TGraph::RemoveFunction

Revision 5285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 13 16:32:25 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125918 byte(s)
Diff to previous 5219
In TGraph::Fit, implement a suggestion by  Nicolas de Sereville
to take into account the error bar of the first and last point when computing
the fit range.

Revision 5219 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 6 16:32:56 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125777 byte(s)
Diff to previous 5125
In TGraph::Fit, move the code setting verbose/quiet mode up.

Revision 5125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 15 14:18:32 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125777 byte(s)
Diff to previous 5094
Add a new option "P0" in THistPainter::Paint and equivalent change
in TGraph::PaintGrapHist.
//    "P"      : Draw current marker at each bin except empty bins
//    "P0"     : Draw current marker at each bin including empty bins

Revision 5094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 9 08:29:07 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125405 byte(s)
Diff to previous 5084
Add a new entry Hoption.HighRes in Hoption_t. By default Hoption.HighRes =0.
It is non zero when the option "High Resolution 9 is selected in TH1::Draw.
The option low resolution is automatically selected in TGraph::PaintGrapHist
when the number of points is greater than the number of bins in the pad.
However, for some pathological cases (difficult to detect automatically)
like the example below, it is necessary to force high resolution.
{
  TH1F* h1=new TH1F("hist","hist",2048,0,2048);
  for(int i=0; i<1024;i++){
         h1->SetBinContent(i*2,i);
         h1->SetBinContent(i*2+1,5);
  }
  h1->SetMarkerColor(2);
  h1->SetMarkerStyle(21);
  h1->Draw("p9"); //without option 9 result is not good
}

Revision 5084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 7 16:10:31 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 125105 byte(s)
Diff to previous 5018
Modify TGraph::ExecuteEvent to make sure that the first and the last point
are always identical in case of a graphical cut.

Revision 5018 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 28 06:38:09 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 124741 byte(s)
Diff to previous 4952
n TGraph::Fit and GraphFitChisquare, improvements by Eddy Offermann
to recompute the errors on parameters in case errors on the points
are not available (case of TGraph in particular).

Add a protection in TGraph::PaintFit in case the fit option was not
requested.

Revision 4952 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 16 22:29:03 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 124960 byte(s)
Diff to previous 4951
In TGraph::PaintGrapHist do not draw the vertical lines at the edges
when in histogram contour mode.

Revision 4951 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 16 21:59:46 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 124828 byte(s)
Diff to previous 4925
Add new TGraph constructor to read data from a text file
 TGraph(const char *filename, const char *format="%lg %lg")
Example
 TGraph gr("basic.dat");
 gr.Draw("ap");

Revision 4925 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 16 08:04:21 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 126225 byte(s)
Diff to previous 4914
Implement two new TGraph constructors taking a TF1 as input.
        TGraph(const TF1 *f, Option_t *option="");
        TGraph(const char *fname, Option_t *option="");

Revision 4914 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 15:02:23 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 121531 byte(s)
Diff to previous 4912
Add functions FindObject.

Several mods in DistancetoPrimitive to take into account the new
TPaveStats logic.

Revision 4912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 11:01:19 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 120944 byte(s)
Diff to previous 4889
Add new function TGraph::PaintFit. This new function is a subset of
THistPainter::PaintStat. TGraph::PaintGraph calls directly PaintFit
instead of TVirtualHistPainter::PaintStat.

Like for histograms, the TPaveStats stats box is now added to the
graph list of functions.

The destructor is modified to take into account the TPaveStats.

TGraph::SavePrimitive modified for the stats box.

Revision 4889 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 12 10:22:35 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 116900 byte(s)
Diff to previous 4713
Simplify the algorithm in GraphFitChisquare in case the errors in x and y are null.
In this case the error is estimated by taking the difference of the function
at x+epsilon and x-epsilon 9with epsilon = x range/1000).

Revision 4713 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 14 20:30:35 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 118103 byte(s)
Diff to previous 4636
Add new methods
  TGraph::RemovePoint(Int_t point)
  TGraphErrors::RemovePoint(Int_t point)
  TGraphAsymm::RemovePoint(Int_t point)

CagS: ----------------------------------------------------------------------

Revision 4636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 31 15:22:01 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 117520 byte(s)
Diff to previous 4538
Protect TGraph::PaintGrapHist in low resolution mode when the graph
has many points (identical or not intialized).

Revision 4538 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 14 14:02:16 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 117377 byte(s)
Diff to previous 4482
Add support for a special case when a TGraphAsymmErrors object (for example)
has one or more arrays of errors not provided.

Revision 4482 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 7 20:38:35 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 117283 byte(s)
Diff to previous 4411
In TGraph::PaintGraph, remove obsolete code since dynamicity was
introduced for all arrays during pauinting.

Revision 4411 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 27 07:49:00 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 118380 byte(s)
Diff to previous 4407
Add new functions
  Bool_t   IsEditable() const;
  void     SetEditable(Bool_t editable=kTRUE); // *MENU*

By default a TGraph can be edited with the mouse. If SetEditable(kFALSE) is called,
the TGraph cannot be modified interactively.

Revision 4407 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 26 10:20:01 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 118009 byte(s)
Diff to previous 4285
Change signature of TGraph::Fit. The function Fit returns an Int_t with the fit status.

Revision 4285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 2 10:39:53 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 117683 byte(s)
Diff to previous 4284
Implement new drawing option "LF2". When this option is specified,
the histogram is paint with a fillarea connecting the center of the bins.

Revision 4284 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 2 07:59:02 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 116596 byte(s)
Diff to previous 4279
Add a new constructor accepting a TH1* h as input argument.

Revision 4279 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 31 16:33:56 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 114719 byte(s)
Diff to previous 4268
New signatures for the following functions:
  void  InitExpo(Int_t first=0, Int_t last=0);
  void  InitGaus(Int_t first=0, Int_t last=0);
  void  InitPolynom(Int_t first=0, Int_t last=0);
  void  LeastSquareFit(Int_t m, Double_t *a, Int_t first=0, Int_t last=0);
  void  LeastSquareLinearFit(Int_t n, Double_t &a0, Double_t &a1, Int_t &ifail, Int_t first, Int_t last);

The global variables gxfirst and gxlast have been deleted.

Revision 4268 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 29 07:20:52 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 114273 byte(s)
Diff to previous 4125
Add two optional arguments in TGraph::Fit Axis_t xmin,Axis_t xmax (like in TH1::Fit).
These two arguments can be given to select a fit range.
//  Fit range
//  =========
//  The fit range can be specified in two ways:
//    - specify rxmax > rxmin (default is rxmin=rxmax=0)
//    - specify the option "R". In this case, the function will be taken
//      instead of the full graph range.

Revision 4125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 27 11:41:53 2002 UTC (12 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 114118 byte(s)
Diff to previous 4083
Several protections added in TGraph::ExecuteEvent in case of large zooms.

Revision 4083 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 24 18:01:15 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 113559 byte(s)
Diff to previous 3780
Add protections in case GetHistogram, GetXaxis, GetYaxis are called
and the fHistogram pointer is null. This situation can happen
when drawing a graph with no option or invalid options.

Revision 3780 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 26 09:36:46 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 113486 byte(s)
Diff to previous 3748
Allocate workspace dynamically instead of the static arrays xwork,ywork,xworl,yworkl.
Remove several static variables in the code.
Remove limitation of NPMAX points.

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/TGraph.cxx
File length: 113830 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/TGraph.cxx
File length: 113830 byte(s)
Diff to previous 3500
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 3500 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 19 14:21:54 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 113853 byte(s)
Diff to previous 3477
Add new functions to all the TGraph classes to interactively with the mouse
add a new point or remove a point. These new functions are available
from the context menu.
   Int_t InsertPoint();
   Int_t RemovePoint();

Add new function SetPointError in TGraphErrors and TGraphAsymmErrors.
This new function is also in the context menu.

Revision 3477 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 14 13:32:49 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 111206 byte(s)
Diff to previous 3451
In TGraph::PaintGraph, use the option "a" when drawing the frame histogram.
In case the minimum in Y is negative, the line at y=0 will not be drawn.

Revision 3451 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 21:11:17 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 111203 byte(s)
Diff to previous 3425
Modify the functions SavePrimitive to generate the code for
the associated fit functions.

Revision 3425 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 9 17:30:29 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 110979 byte(s)
Diff to previous 3338
Fix a problem in TGraph::SavePrimitive in case this function is called
from TMultiGraph::SavePrimitive. The Draw statement should not be
generated in this case.

Revision 3338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 30 15:46:21 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 110929 byte(s)
Diff to previous 3183
Add two new TGraph constructors accepting TVector, TVectorD as input:
        TGraph(const TVector  &vx, const TVector  &vy);
        TGraph(const TVectorD &vx, const TVectorD &vy);
The number of points in the graph is the minimum of vx and vy.

Revision 3183 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 7 16:54:07 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 109085 byte(s)
Diff to previous 3123
Add a new constructor accepting arrays of integers in addition to floats and doubles.
Add also new function DrawGraph with arrays of integers.

Revision 3123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 27 10:39:51 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 107798 byte(s)
Diff to previous 3090
TGraph::Fit changed to support the new functions in TF1::RejectPoint
and IsInside.

Revision 3090 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 23 09:20:38 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 107795 byte(s)
Diff to previous 3017
In TH1::Draw and TGraph::Draw a new canvas is automatically created
in case gPad points to a non-editable pad/canvas.

Revision 3017 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 12 07:49:41 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 107712 byte(s)
Diff to previous 2918
In all the TGraphX classes add a new method Apply suggested and implemented by

       Miroslav Helbich <helbich@mail.desy.de>
If one has points x,y of TGraph, sometimes it is convenient to apply a
function to those points e.g y=f(x,y). There are few examples I've been
dealing with, like scale the points by some number f(x,y)=y*scale factor
or if you try to fit some complicated formula it is sometimes better to do
the transformation first.

 For classes TGraphErrors and TGraphAssymErrors the situation becomes a
little bit more complicated since the error bars have to be changed.

Revision 2918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 1 14:40:36 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 107327 byte(s)
Diff to previous 2826
print warning in case user uses unsupported option "same" in Draw().

Revision 2826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 20 20:48:51 2001 UTC (13 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 107277 byte(s)
Diff to previous 2598
In TGraph, add the following new functions:
        Double_t GetCorrelationFactor() const;
        Double_t GetCovariance() const;
        Double_t GetMean(Int_t axis=1) const;
        Double_t GetRMS(Int_t axis=1) const;

Revision 2598 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 19 17:12:25 2001 UTC (13 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105619 byte(s)
Diff to previous 2463
When a TF2 was created with an interpreted or compiled function,
it was not possible to save the TF2 object in a file and read it
in a separate program because TF2 does not save the code of the
interpreted function. Only TF2s created with inline expressions
could be paint in a separate session.
In TF1, we already had the logic to save an array fSave with
the function values created at fNpx points. TF2 has been modified
to provide the same functionality. One can save a TF2 and draw it
again in a new session.
To implement this feature, the signature of the function TF1::Save
has been modified to be general for 1,2 and 3-d functions.
The classes TH1 and TGraph where TF1::Save was called have been
modified accordingly.

Revision 2463 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 26 12:49:25 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105611 byte(s)
Diff to previous 2438
Fix a bug in TGraph::Fit when computing NDF. nfixed was subtracted instead
of being added.

Revision 2438 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 09:50:02 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105611 byte(s)
Diff to previous 2399
Set bit kNotGlobal in TGraph::Fit

Revision 2399 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 8 06:45:47 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105568 byte(s)
Diff to previous 2375
In TGraph::SetPoint delete the current histogram used to draw the graph.
This is necessary in case a point is set outside the current histogram range.

Revision 2375 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 5 13:51:13 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105495 byte(s)
Diff to previous 2237
Modify the functions:
 TGraph::Fit
 TH1::Fit
 TTreePlayer::UnbinnedFit
to call TF1::SetNDF(ndf) where ndf is the number of degrees of freedom
taking into account the number of points used in the fit minus the
number of free parameters.

Revision 2237 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 19 17:41:37 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105438 byte(s)
Diff to previous 1845
Force initial value for RMS to be positive when fitting a gauusian
with TGraph::Fit in function InitGaus.

Revision 1845 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 22 07:26:58 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105403 byte(s)
Diff to previous 1756
Remove useless comments in TGraph::PaintGrapHist

Revision 1756 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 07:24:25 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105505 byte(s)
Diff to previous 1752
Apply the same corrections along Y for graphs with a large number of bins
that were introduced by Damir along X.

Revision 1752 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 22:48:46 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105403 byte(s)
Diff to previous 1714
Fix by Damir Buskulic in TGraph::PaintGraph in the fast/low resolution mode.
Damir says
"I found another small bug in eddy's code that allow fast drawing of
many-bins histos. Just before using the PaintPolyLine() routine, the
calculation of the start and end of the line should be a little bit
adjusted.
In fact, gPad->AbsPixeltoX seems to return the X position of one edge of a
pixel. PaintPolyLine may be confused in that case and give wrong results,
painting the adjacent pixels instead of the desired one.
The net effect is that from time to time one sees emty vertical lines
where ther is obviously data. The position of these lines depend on the
size of the pad."

Revision 1714 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 28 07:20:48 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105301 byte(s)
Diff to previous 1702
Change float* or double* to const float* or const double* in the following
functions:
   TGraph(Int_t n, const Float_t *x, const Float_t *y);
   TGraph(Int_t n, const Double_t *x, const Double_t *y);
   virtual void     DrawGraph(Int_t n, const Float_t *x, const Float_t *y, Option_t *option="");
   virtual void     DrawGraph(Int_t n, const Double_t *x, const Double_t *y, Option_t *option="");
   virtual void     PaintGraph(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *option="");
   virtual void     PaintGrapHist(Int_t npoints, const Double_t *x, const Double_t *y, Option_t *option="");

Revision 1702 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 26 09:41:33 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105229 byte(s)
Diff to previous 1632
Remove unused member fOption. Change default FillColor from the canvas color
to 1 (black).

Revision 1632 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 19 17:07:27 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105205 byte(s)
Diff to previous 1615
Preset array nrPixs in the special case "low-resolution"

Revision 1615 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 15 21:18:13 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 105171 byte(s)
Diff to previous 1543
Add new option "B" in TGraph::Fit and TH1::Fit.
This option can be used to disable the automatic computation
of the initial parameter values for the standard functions
like poln, expo, gaus.

Revision 1543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 7 20:56:51 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 104746 byte(s)
Diff to previous 1507
New function TGraph::setHistogram(TH1 *h).
Implement TGraph::SavePrimitive. A graph with all its options,
including the associated histogram used to set the scale are asved.

Revision 1507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 1 18:19:12 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 104398 byte(s)
Diff to previous 1444
In TGraph::PaintGraph move the statement setting the kClipFrame bit after
having paint the frame. Otherwise the bit is reset at the end of PaintGrapHist.

Revision 1444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 22 12:46:32 2001 UTC (14 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 104394 byte(s)
Diff to previous 1443
Modify low resolution algorithm in TGraph::PaintGrapHist in case of log scales.

Revision 1443 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 22 11:19:57 2001 UTC (14 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 104351 byte(s)
Diff to previous 1431
Support case when functions are classes derived from TF1 when painting
the objecst in the list of functions.

Revision 1431 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 19 18:12:27 2001 UTC (14 years ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 104346 byte(s)
Diff to previous 1225
Introduce the same change as in TH1::Fit when the function is called
from the FitPanel and teh option "Do not draw function" is selected.

Revision 1225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 15 12:05:24 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 104245 byte(s)
Diff to previous 1222
Forgot to update the Streamer of these classes.

Revision 1222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 15 07:30:53 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 103983 byte(s)
Diff to previous 1205
Add more comments in TH1::Fit and TGraph::Fit to indicate how to access
the fitted function and the fit results.

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/graf/src/TGraph.cxx
File length: 103128 byte(s)
Diff to previous 1132
      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 1132 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 8 16:00:33 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 103084 byte(s)
Diff to previous 1112
Add TGraph::UseCurrentStyle

Revision 1112 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 2 16:34:10 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 102398 byte(s)
Diff to previous 985
Fix a problem in TGraph::PaintGraph when redrawing a TGraph in log scales.
With the new logic, one can:
 - switch between log and lin scales.
 - zoom/unzoom a TGraph when the pad range is defined via an histogram
   or via 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/graf/src/TGraph.cxx
File length: 101927 byte(s)
Diff to previous 820
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

Revision 820 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 25 15:54:05 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 102265 byte(s)
Diff to previous 758
Remove some compiler warnings by casting to int arguments to AbsPixeltoY
in TGraph::PaintGrapHist

Revision 758 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 13 07:30:45 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 102223 byte(s)
Diff to previous 751
Fix a few typos in comments

Revision 751 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 13:24:20 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 102211 byte(s)
Diff to previous 678
Optimize procedure to compute an automatic range.
Y axis can be zoomed and unzoomed.

Revision 678 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 07:39:48 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 101641 byte(s)
Diff to previous 666
Modify functions TGraph::PaintGrapHist and THistPainter::PaintHist to draw
the last point of a graph/histogram in case of a variable bin size histogram
and options "l" or "c" are used.

Revision 666 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 16 19:36:16 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 101795 byte(s)
Diff to previous 620
 Add a protection in TGraph::Set in case the new number of points
is smaller than the previous number

Revision 620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 11 09:06:05 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 101784 byte(s)
Diff to previous 610
Simplify the logic in the Fitpanel functions to set the object and current pad.

Revision 610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 16:05:22 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/graf/src/TGraph.cxx
File length: 101734 byte(s)
Diff to previous 608
collections don't have anymore the concept of parent (should not have been
introduced in the first place). All changes relate to the removal of the
parent in the TList ctor.

Revision 608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 07:41:01 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 101762 byte(s)
Diff to previous 549
Several classes modified to :
 - take into account the renaming of kObjInCanvas to kMustCleanup
 - the introduction of FindObject instead of GetPrimitive

Revision 549 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 31 17:05:44 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 101764 byte(s)
Diff to previous 428
Add new functions:
  TGraph::Set(Int_t np)
  TGraphErrors::Set(Int_t np)
to modify the number of points in the graph without destroying
the existing points.
In TGraph::PaintGraph, the intermediate histogram created when the option "A"
is specified has now a number of channels greater or equal to the number
of points in the graph. This permits to zoom a graph without limitations.

Revision 428 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 7 13:28:45 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 100931 byte(s)
Diff to previous 425
Minor changes to avoid warnings with VC++

Revision 425 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 7 12:25:07 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 100944 byte(s)
Diff to previous 396
Change the number of points that can be drawn in one bunch from 204 to 2052.
Implement a new algorithm by Eddy Offermann used when the number of points
to be drawn exceeds the screen resolution.

Revision 396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 21 13:10:53 2000 UTC (14 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 97174 byte(s)
Diff to previous 343
Change a few comments to have consistent names, eg gaus, expo, poln instead
of Gaus, Expo, Poln

Revision 343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 10 06:07:45 2000 UTC (14 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 97174 byte(s)
Diff to previous 317
Implement a version of TGraph::DrawGraph with arrays of floats in addition
to arrays of doubles.

Revision 317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 10:04:35 2000 UTC (14 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 96675 byte(s)
Diff to previous 149
Take into account rounding errors in TGraph::PaintGrapHist
In some cases, the first bin was not drawn in case of logx scale.

Revision 149 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:57:49 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 96639 byte(s)
Diff to previous 78
  The internal dynamic arrays fX and fY have their type changed from Float_t to Double_t
  The members fMaximum, fMinimum changed from Float_t to Double_t
  class VersionID changed from 1 to 2.
  New constructor:
        TGraph(Int_t n);
  The arguments of the other constructors are now mandatory:
        TGraph(Int_t n, Float_t *x, Float_t *y);
        TGraph(Int_t n, Double_t *x, Double_t *y);
   The following functions have their arguments or return type
   changed from Float_t to Double_t:
        virtual void     ComputeRange(Double_t &xmin, Double_t &ymin, Double_t &xmax, Double_t &ymax);
        virtual void     DrawGraph(Int_t n, Double_t *x, Double_t *y, Option_t *option="");
        virtual Double_t GetErrorX(Int_t bin);
        virtual Double_t GetErrorY(Int_t bin);
        Double_t        *GetX() {return fX;}
        Double_t        *GetY() {return fY;}
        virtual void     GetPoint(Int_t i, Double_t &x, Double_t &y);
        virtual void     PaintGraph(Int_t npoints, Double_t *x, Double_t *y, Option_t *option="");
        virtual void     PaintGrapHist(Int_t npoints, Double_t *x, Double_t *y, Option_t *option="");
        virtual void     SetMaximum(Double_t maximum=-1111); // *MENU*
        virtual void     SetMinimum(Double_t minimum=-1111); // *MENU*
                void     Smooth(Int_t npoints, Double_t *x, Double_t *y, Int_t drawtype);
                void     Zero(Int_t &k,Double_t AZ,Double_t BZ,Double_t E2,Double_t &X,Double_t &Y
                          ,Int_t maxiterations);

- Mods in TGraph.cxx. See changes in TGraph.h.
  TGraph::Streamer modified to read old objects written in single precision.

Revision 78 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 6 08:59:35 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 95523 byte(s)
Diff to previous 69
Remove unused variable in TGraph::LeastSquareLinearFit

Revision 69 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 5 07:26:31 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 95557 byte(s)
Diff to previous 59
- Add symbols #perp, #parallel and #odot in TLatex
  New function TLatex::DrawCircle
  TLatex::DrawParenthesss rewritten

- Several mods in TGraph fitting functions to allow fitting in a sub range
  with points not in increasing order.

Revision 59 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 31 07:49:13 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraph.cxx
File length: 95257 byte(s)
Diff to previous 47
- Add possibility to specify a User fitting function in TGraph::Fit:
  By default the fitting function GraphFitChisquare is used.
  To specify a User defined fitting function, specify option "U" and
  call the following functions:
    TVirtualFitter::Fitter(mygraph)->SetFCN(MyFittingFunction)
  where MyFittingFunction is of type:
  extern void MyFittingFunction(Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag);

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/TGraph.cxx
File length: 94647 byte(s)
Diff to previous 3
//  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;

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