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

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

Parent Directory Parent Directory


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

Revision 49062 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 2 10:02:56 2013 UTC (21 months, 3 weeks ago) by couet
File length: 41254 byte(s)
Diff to previous 48282 , to selected 11600
Tiny doc update

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: 41259 byte(s)
Diff to previous 44507 , to selected 11600
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 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: 41241 byte(s)
Diff to previous 43634 , to selected 11600
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 43634 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 4 08:06:49 2012 UTC (2 years, 9 months ago) by couet
File length: 41206 byte(s)
Diff to previous 43629 , to selected 11600
Fix coverity reports

Revision 43629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 15:31:17 2012 UTC (2 years, 9 months ago) by couet
File length: 41194 byte(s)
Diff to previous 43627 , to selected 11600
Fix a warning reported by EC

Revision 43627 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 15:17:16 2012 UTC (2 years, 9 months ago) by couet
File length: 41192 byte(s)
Diff to previous 43622 , to selected 11600
Try to fix EC report

Revision 43622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 13:24:13 2012 UTC (2 years, 9 months ago) by couet
File length: 41150 byte(s)
Diff to previous 41541 , to selected 11600
New TMultigraph option to draw the graphs in a 3D space

Revision 41541 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 24 13:31:15 2011 UTC (3 years, 3 months ago) by rdm
File length: 37911 byte(s)
Diff to previous 40956 , to selected 11600
From Timur:
changes for iOS graphics support.

Revision 40956 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 20 15:50:44 2011 UTC (3 years, 4 months ago) by couet
File length: 37668 byte(s)
Diff to previous 37735 , to selected 11600
The following macro did not show the x-axis in TimeDisplay mode.The 
mg->GetYaxis()->UnZoom(); command erased the Time attribute of the axis.
 
{ 
TMultiGraph* mg = new TMultiGraph; 
TGraph* g = new TGraph; 
for (int i = 0; i < 100; i++) g->SetPoint(i, 1289420808+i, i+2); 
mg->Add(g, "P"); 
mg->Draw("AP"); 
mg->GetXaxis()->SetTimeDisplay(1); 
mg->GetYaxis()->UnZoom(); 
gPad->Modified(); 
gPad->Update(); 
}

Revision 37735 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 7 10:20:05 2011 UTC (4 years ago) by couet
File length: 37127 byte(s)
Diff to previous 37731 , to selected 11600
- Fix typo

Revision 37731 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 6 16:02:12 2011 UTC (4 years ago) by couet
File length: 37125 byte(s)
Diff to previous 37721 , to selected 11600
- More doc

Revision 37721 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 5 17:42:56 2011 UTC (4 years ago) by couet
File length: 34490 byte(s)
Diff to previous 36530 , to selected 11600
- Doc improvements

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: 32978 byte(s)
Diff to previous 36493 , to selected 11600
- New class TH2Poly (histograms with polygonal bins)

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: 32848 byte(s)
Diff to previous 35498 , to selected 11600
- New method IsInside() returning 1 if a (x,y) position is
  inside the polygons(s) defined by the graphs(s), 0 otherwise.

Revision 35498 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 22:17:32 2010 UTC (4 years, 4 months ago) by brun
File length: 32434 byte(s)
Diff to previous 35495 , to selected 11600
New attempt to fix calls to strlcpy

Revision 35495 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 21:46:00 2010 UTC (4 years, 4 months ago) by brun
File length: 32430 byte(s)
Diff to previous 35475 , to selected 11600
Fix calls to strlcpy

Revision 35475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 18:04:46 2010 UTC (4 years, 4 months ago) by brun
File length: 32434 byte(s)
Diff to previous 35463 , to selected 11600
Replace calls to strncpy by strlcpy

Revision 35463 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 14:07:20 2010 UTC (4 years, 4 months ago) by brun
File length: 32434 byte(s)
Diff to previous 35426 , to selected 11600
Fix calls to strncpy

Revision 35426 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 08:33:39 2010 UTC (4 years, 4 months ago) by brun
File length: 32430 byte(s)
Diff to previous 35388 , to selected 11600
Replace calls to strcpy by strncpy

Revision 35388 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 17 17:39:17 2010 UTC (4 years, 4 months ago) by brun
File length: 32420 byte(s)
Diff to previous 34699 , to selected 11600
Remove unused variable. Fix coverity CID 10607

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: 32440 byte(s)
Diff to previous 33513 , to selected 11600
fix doc for TGraph::Fit conserning usage of fit result (thanks to Axel)

Revision 33513 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 17 08:25:58 2010 UTC (4 years, 8 months ago) by couet
File length: 32446 byte(s)
Diff to previous 32499 , to selected 11600
- Move the protection against non existing fGraphs from Draw to Paint.

Revision 32499 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 8 13:39:32 2010 UTC (4 years, 10 months ago) by brun
File length: 32516 byte(s)
Diff to previous 31491 , to selected 11600
Fix coverity report.

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: 32509 byte(s)
Diff to previous 31207 , to selected 11600
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 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: 32493 byte(s)
Diff to previous 26029 , to selected 11600
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 26029 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 31 10:15:46 2008 UTC (6 years, 2 months ago) by couet
File length: 32134 byte(s)
Diff to previous 25487 , to selected 11600
- Protection added in Draw(): "Cannot draw empty TMultiGraph".
  The problem was reported here: https://savannah.cern.ch/bugs/index.php?43463

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: 32042 byte(s)
Diff to previous 24702 , to selected 11600
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 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: 39874 byte(s)
Copied from: trunk/graf2d/graf/src/TMultiGraph.cxx revision 24701
Diff to previous 24084 , to selected 11600
-Move the TGraph classes and derivatives from graf2d to hist
-The graf2d/graf has now only one dictionary instead of 2

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/TMultiGraph.cxx
File length: 39874 byte(s)
Diff to previous 24065 , to selected 11600
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/TMultiGraph.cxx
File length: 39872 byte(s)
Diff to previous 24064 , to selected 11600
- 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/TMultiGraph.cxx
File length: 39874 byte(s)
Diff to previous 23506 , to selected 11600
- All the methods doing graphics are now in TGraphPainter.

Revision 23506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 24 13:13:01 2008 UTC (6 years, 9 months ago) by brun
Original Path: trunk/graf2d/graf/src/TMultiGraph.cxx
File length: 39872 byte(s)
Diff to previous 23140 , to selected 11600
Fix a shadowed variable

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/TMultiGraph.cxx
File length: 39878 byte(s)
Diff to previous 22546 , to selected 11600
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 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/TMultiGraph.cxx
File length: 39878 byte(s)
Diff to previous 22419 , to selected 11600
other bunch of gcc 4.3 warnings removed:
-  warning: suggest a space before ; or explicit braces around empty body
   in for statement

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/TMultiGraph.cxx
File length: 39875 byte(s)
Diff to previous 22379 , to selected 11600
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 22379 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 27 17:35:46 2008 UTC (6 years, 10 months ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39855 byte(s)
Diff to previous 21962 , to selected 11600
- Fixed the bug reported here: 
  https://savannah.cern.ch/bugs/index.php?33934
  In TMultiGraph::Add(TMultiGraph*,Option_t *) method the loop on the input
  multigraph was one step too long.

Revision 21962 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 10:08:19 2008 UTC (6 years, 11 months ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39855 byte(s)
Diff to previous 21573 , to selected 11600
- Implement the fit parameters painting.

Revision 21573 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 7 10:32:29 2008 UTC (7 years ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39665 byte(s)
Diff to previous 20882 , to selected 11600
- The fix done in the revision 20433 was not completely right: the multigraph
  limits need to be initialisezd with call to ComputeRange on the 1st graph
  before looping on the remaining graphs.

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/TMultiGraph.cxx
File length: 39576 byte(s)
Diff to previous 20433 , to selected 11600
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 20433 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 22 13:12:26 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39576 byte(s)
Diff to previous 20335 , to selected 11600
- Fix https://savannah.cern.ch/bugs/?30595 . The loop on the ComputeRange 
  methods (called for each graph in the multigraph) returned the last values 
  provided by the last call to ComputeRange instead of computing the minimum
  and maximum of all of them. Revision 20335 introduced this bug.

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/TMultiGraph.cxx
File length: 39394 byte(s)
Diff to previous 20297 , to selected 11600
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 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/TMultiGraph.cxx
File length: 39860 byte(s)
Diff to previous 19826 , to selected 11600
- 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/TMultiGraph.cxx
File length: 39796 byte(s)
Diff to previous 19825 , to selected 11600
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/TMultiGraph.cxx
File length: 39850 byte(s)
Diff to previous 18115 , to selected 11600
remove :$ from tag line

Revision 18115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 07:54:24 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39860 byte(s)
Diff to previous 17581 , to selected 11600
In TMultiGraph::SavePrimitive the TPaveStats object (when one) was added twice
to the list of functions.

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/TMultiGraph.cxx
File length: 39949 byte(s)
Diff to previous 17338 , to selected 11600
-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 17338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 16:10:11 2007 UTC (8 years ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39949 byte(s)
Diff to previous 16436 , to selected 11600
Remove TMath.h from TH1.h and add TMath.h to all files previously assuming TMath.h
via TH1.h
This should complete the changes related to TMath.

Revision 16436 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 5 13:50:11 2006 UTC (8 years, 3 months ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39929 byte(s)
Diff to previous 16279 , to selected 11600
- New method: Add(TMultiGraph *multigraph, Option_t *chopt="");
  it allows to add all the graphs in "*multigraph" in the current MultiGraph.
  Example:

 {
    float x1[] = {1,2,3}; float y1[] = {4,7,6};
    float x2[] = {3,5,6}; float y2[] = {0,9,4};
    float x3[] = {7,8,9}; float y3[] = {1,2,4};
    float x4[] = {0,6,5}; float y4[] = {5,2,7};

    TGraph *gr1 = new TGraph(3,x1,y1);
    TGraph *gr2 = new TGraph(3,x2,y2);
    TGraph *gr3 = new TGraph(3,x3,y3);
    TGraph *gr4 = new TGraph(3,x4,y4);

    TMultiGraph *mg1 = new TMultiGraph();
    mg1->Add(gr1); mg1->Add(gr2);
    TMultiGraph *mg2 = new TMultiGraph();
    mg2->Add(gr3); mg2->Add(gr4);
    mg2->Add(mg1); // mg2 now contains gr1 gr2 gr3 and gr4

    mg2->Draw("AL*");
 }

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/TMultiGraph.cxx
File length: 39380 byte(s)
Diff to previous 15740 , to selected 11600
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 15740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 8 20:28:08 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 39356 byte(s)
Diff to previous 15672 , to selected 11600
Fix a typo

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/TMultiGraph.cxx
File length: 39350 byte(s)
Diff to previous 15171 , to selected 11600
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/TMultiGraph.cxx
File length: 39342 byte(s)
Diff to previous 15134 , to selected 11600
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/TMultiGraph.cxx
File length: 39291 byte(s)
Diff to previous 14336 , to selected 11600
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 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/TMultiGraph.cxx
File length: 38658 byte(s)
Diff to previous 14017 , to selected 11600
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 14017 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 9 15:51:23 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 38638 byte(s)
Diff to previous 13975 , to selected 11600
From Ilka:

- fix in TMultiGraph::SavePrimitive to save axis attributes in the
  generated C++macro (thanks to Lorenzo for reporting this case)

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/TMultiGraph.cxx
File length: 38420 byte(s)
Diff to previous 13304 , to selected 11600
From Anna:
I think I found what causes the segfault of the bug report #14791.

Revision 13304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 21 13:57:42 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 38413 byte(s)
Diff to previous 12643 , to selected 11600
- Last mods (in graf) to make the rules checker happy.

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/TMultiGraph.cxx
File length: 38544 byte(s)
Diff to previous 12551 , to selected 11600
Fix coding conventions violations.

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

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/TMultiGraph.cxx
File length: 37825 byte(s)
Diff to previous 11750 , to selected 11600
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 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/TMultiGraph.cxx
File length: 36815 byte(s)
Diff to previous 11725 , to selected 11600
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 11725 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 2 21:45:05 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 37310 byte(s)
Diff to previous 11605 , to selected 11600
In TMultiGraph::Fit, fitOption.Integral and fitOption.More
could be left uninitialized.

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/TMultiGraph.cxx
File length: 37258 byte(s)
Diff to previous 11600
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 11600 - (view) (download) (as text) (annotate) - [selected]
Modified Fri Apr 15 14:49:23 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 37187 byte(s)
Diff to previous 11584
Fix a cast problem if a if statement

Revision 11584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 14 06:52:09 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 37177 byte(s)
Diff to previous 11231 , to selected 11600
Add a new function
Option_t *TMultiGraph::GetGraphDrawOption(const TGraph *gr) const
// Return the draw option for the TGraph gr in this TMultiGraph
// The return option is the one specified when calling TMultiGraph::Add(gr,option).

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/TMultiGraph.cxx
File length: 36559 byte(s)
Diff to previous 11226 , to selected 11600
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/TMultiGraph.cxx
File length: 36551 byte(s)
Diff to previous 10847 , to selected 11600
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 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/TMultiGraph.cxx
File length: 13005 byte(s)
Diff to previous 9245 , to selected 11600
From Allesandro Thea
Fix in TMultiGraph::SavePrimitive to correctly save the option
specified in TMultiGraph::Add

Revision 9245 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 18 10:46:58 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 12820 byte(s)
Diff to previous 9010 , to selected 11600
Optimize the computation of the range along Y in case of log scales

Revision 9010 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 26 06:26:34 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 12575 byte(s)
Diff to previous 6639 , to selected 11600
In TMultiGraph::Paint optimize the computation of the minimum and maximum along y.

Revision 6639 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 16 13:12:07 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 12469 byte(s)
Diff to previous 5552 , to selected 11600
Add comments in TMultiGraph::Add to indicate that the TMultiGraph
is the owner of the graphs.

Revision 5552 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 6 21:16:43 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 12257 byte(s)
Diff to previous 4915 , to selected 11600
Implement function TMultiGraph::RecursiveRemove.
When a TGraph is deleted (eg via the context menu), its parent TMultigraph
is notified to remove the TGrapg from its list of graphs.
Destructor protected.

Revision 4915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 15 15:03:38 2002 UTC (12 years, 6 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 11633 byte(s)
Diff to previous 4083 , to selected 11600
Changes in the functions DistancetoPrimitive. Return immediatly in case
one of the sub-objects has already selected an object.
This may be the case with TPaveStats.

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/TMultiGraph.cxx
File length: 11602 byte(s)
Diff to previous 4037 , to selected 11600
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 4037 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 19 17:43:41 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 11530 byte(s)
Diff to previous 3799 , to selected 11600
Add an optional argument to TMultiGraph::Draw.
This optional argument can be used to specify the draw option for this graph.
If a draw option is not specified, the option specified in TMultiGraph::Draw
will be used instead.

Also, always use the option "0" when painting the frame histogram.
The option "0" suppresses the drawing of the horizonthal line at y=0.

Revision 3799 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 28 11:51:09 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 10732 byte(s)
Diff to previous 3748 , to selected 11600
Fix a problem in TMultiGraph::Paint following the unzoom of the Y axis
when the Y axis title was non null

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/TMultiGraph.cxx
File length: 9874 byte(s)
Diff to previous 3742 , to selected 11600
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/TMultiGraph.cxx
File length: 9874 byte(s)
Diff to previous 3575 , to selected 11600
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 3575 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 3 13:08:48 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 9881 byte(s)
Diff to previous 1500 , to selected 11600
Modify the algorithm computing the minimum of all TGraphs and take into account
the case where the minimum is negative when an Unzoom happens on the y axis.

Revision 1500 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 15:41:17 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 9847 byte(s)
Diff to previous 1205 , to selected 11600
Fix a problem in TMultiGraph::Paint when computing the max/min scale
of a TMultiGraph object having only graphs.

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/TMultiGraph.cxx
File length: 9488 byte(s)
Diff to previous 754 , to selected 11600
      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 754 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Oct 12 13:27:23 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TMultiGraph.cxx
File length: 9465 byte(s)
Diff to selected 11600
Add new class TMultiGraph.
//   A TMultiGraph is a collection of TGraph (or derived) objects
//   Use TMultiGraph::Add to add a new graph to the list.
//   The TMultiGraph owns the objects in the list.
//   Drawing options are the same as for TGraph
//   Example;
//     TGraph *gr1 = new TGraph(...
//     TGraphErrors *gr2 = new TGraphErrors(...
//     TMultiGraph *mg = new TMultiGraph();
//     mg->Add(gr1);
//     mg->Add(gr2);
//     mg->Draw("alp");

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