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

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

Parent Directory Parent Directory


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

Revision 45822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 4 14:36:16 2012 UTC (2 years, 4 months ago) by moneta
File length: 25208 byte(s)
Diff to previous 44507
add new specialized Merge function for TGraphErrors and TGraphAsymmErrors

see https://savannah.cern.ch/bugs/?95642

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: 24283 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: 24208 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: 23970 byte(s)
Diff to previous 43221
Coverity fixes (resource leaks)

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: 23932 byte(s)
Diff to previous 41332
From M.Trocme: a fix to cope with DOS files (CR+LF) for non-standard ctors.

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: 23787 byte(s)
Diff to previous 41164
More mods for the ctor from a file (M.Trocme)

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

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: 23865 byte(s)
Diff to previous 41114
More mods for the ctor from a file (M.Trocme)

Revision 41114 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 4 13:06:52 2011 UTC (3 years, 3 months ago) by couet
File length: 23921 byte(s)
Diff to previous 41113
The constructor from a file is now able to handle delimiters. Like in the .csv files.  (Implementation done by Mathieu Trocme)

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

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: 19622 byte(s)
Diff to previous 37972
- 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 37972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 4 10:08:04 2011 UTC (3 years, 11 months ago) by couet
File length: 19518 byte(s)
Diff to previous 33818
- The following macro generated wrong C file:
{
   TGraphErrors *ge = new TGraphErrors(2);
   ge->SetName("aaa");    // <<< without this it works
   ge->SetPoint(1, 1, 1); ge->SetPoint(2, 2, 1);
   ge->Draw("ap*");
   gPad->Update();
   ge->SavePrimitive(cout);
}

Revision 33818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 10 13:37:21 2010 UTC (4 years, 7 months ago) by couet
File length: 19501 byte(s)
Diff to previous 30393
- Coverity: In some places the return value of CtorAllocate was not checked.

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: 19475 byte(s)
Diff to previous 24702
- Improve the doc: gives a direct access to the drawing options
  described in TGraphPainter. Remove trailing spaces.

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: 19300 byte(s)
Copied from: trunk/graf2d/graf/src/TGraphErrors.cxx revision 24701
Diff to previous 24084
-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/TGraphErrors.cxx
File length: 19300 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/TGraphErrors.cxx
File length: 26385 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/TGraphErrors.cxx
File length: 19300 byte(s)
Diff to previous 23521
- All the methods doing graphics are now in TGraphPainter.

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/TGraphErrors.cxx
File length: 26385 byte(s)
Diff to previous 23140
From Bertrand:
- Add a few missing #include <string>

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/TGraphErrors.cxx
File length: 26367 byte(s)
Diff to previous 20882
move the following directories to "graf2d":

asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf

move the following directories to "graf3d":

eve, ftgl, g3d, gl, x3d

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 26367 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/TGraphErrors.cxx
File length: 26367 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/TGraphErrors.cxx
File length: 26317 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/TGraphErrors.cxx
File length: 26311 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/TGraphErrors.cxx
File length: 26450 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/TGraphErrors.cxx
File length: 26505 byte(s)
Diff to previous 18116
remove :$ from tag line

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/TGraphErrors.cxx
File length: 26515 byte(s)
Diff to previous 17727
In the SavePrimitive functions add the TPaveStats object (if one) to the list
of functions using the correct pointer name.

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/TGraphErrors.cxx
File length: 26430 byte(s)
Diff to previous 17469
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 17469 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 23 11:12:02 2007 UTC (8 years ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 26422 byte(s)
Diff to previous 15742
use forward declarations of TGraph, TH1, TAxis instead of includes.

Revision 15742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 9 05:27:55 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 26405 byte(s)
Diff to previous 15672
From Eddy:
Fix many typos in comments

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/TGraphErrors.cxx
File length: 26400 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/TGraphErrors.cxx
File length: 26392 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/TGraphErrors.cxx
File length: 26379 byte(s)
Diff to previous 14903
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 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/TGraphErrors.cxx
File length: 25989 byte(s)
Diff to previous 14336
Replace all references to TVector by TVectorF

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/TGraphErrors.cxx
File length: 25987 byte(s)
Diff to previous 13932
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 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/TGraphErrors.cxx
File length: 25968 byte(s)
Diff to previous 13283
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 13283 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 18 16:55:07 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 25641 byte(s)
Diff to previous 13187
- mods for the rules checker

Revision 13187 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 10 14:50:32 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 26118 byte(s)
Diff to previous 12891
In the TGraphErrors constructor using a file, implememt the same
algorithm using an ifstream as in the corresponding TGraph constructor.

Revision 12891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 3 15:00:26 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 26084 byte(s)
Diff to previous 12643
From Olivier:
- Revision 1.48 had a side effect: The error bars where not clipping
  properly.

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/TGraphErrors.cxx
File length: 25829 byte(s)
Diff to previous 12551
Fix coding conventions violations.

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

Revision 12023 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 13 10:10:29 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 25819 byte(s)
Diff to previous 11861
From Olivier:
- The fill style for boxes (option 3) was ignored.

Revision 11861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 17:37:03 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 25782 byte(s)
Diff to previous 11251
From Olivier:
- In TGraphErrors::Paint: if a point is outside the pad limits it is set
  to the limit it exceed. Previously it was not initialized. This produced
  random drawing with the following macro:

{
   const int n=200;
   double x[n],y[n],e[n];
   TCanvas *c1 = new TCanvas("c1", "Test",800,600);
   for (int i=0;i<n;i++) {
      x[i]=i;
      y[i]=sqrt(i);
      e[i]=y[i]/(i+1);
   }
   TH1D *Fond = new TH1D("Fond","",2,0,n);
   Fond->SetMinimum(0);
   Fond->SetMaximum(10);
   Fond->Draw();
   TGraphErrors *gr = new TGraphErrors(n,x,y,0,e);
   gr->SetFillColor(17);
   gr->Draw("    E3");
}

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/TGraphErrors.cxx
File length: 25734 byte(s)
Diff to previous 11226
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 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/TGraphErrors.cxx
File length: 25718 byte(s)
Diff to previous 11043
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 11043 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 7 14:34:47 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 24452 byte(s)
Diff to previous 10968
From Olivier:
- The errors boxes attributes (option E2) were not right when the graph
  was painted in an existing TFrame.

Revision 10968 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 20 15:28:50 2005 UTC (10 years ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 24317 byte(s)
Diff to previous 10361
Fix a problem in the Constructurs with TVector in argument.
One must call TGraph::CrtAllocate to allocate the TGraph arrays.

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/TGraphErrors.cxx
File length: 24237 byte(s)
Diff to previous 10294
Add constructors accepting TVector and TVectorD

Revision 10294 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 12 10:37:25 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 22763 byte(s)
Diff to previous 10002
Optimize the algorithm in the ComputeRange functions such that in case
the error in X or Y is greater than the X or Y values, a suitable minimum
is taken. This change is important when the TGraph objects are in a TMultiGraph.

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/TGraphErrors.cxx
File length: 22729 byte(s)
Diff to previous 9966
From Maxim Nikulin:
Improvement of the general TGraph suite memory management functions

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/TGraphErrors.cxx
File length: 25170 byte(s)
Diff to previous 9877
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 9877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 2 14:22:20 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 24745 byte(s)
Diff to previous 9821
In the SetPoint and SetPointError functions, implement the same reallocation
algorithm as in TGraph, using the new TGraph member fMaxSize.

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/TGraphErrors.cxx
File length: 24379 byte(s)
Diff to previous 9505
From Olivier:
New option "2" in TGraphErrors::Paint, TGraphAsymmErrors::Paint and in
TGraphBentErrors::Paint to draw error rectangles.

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/TGraphErrors.cxx
File length: 23954 byte(s)
Diff to previous 8801
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 8801 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 09:43:34 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 22555 byte(s)
Diff to previous 8800
Minor correction to avoid a compiler warning

Revision 8800 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 6 09:40:30 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 22553 byte(s)
Diff to previous 8287
Implement a new TGraphErrors constructor reading data from a file (like TGraph)
TGraphErrors(const char *filename, const char *format, Option_t *)
// filename is assumed to contain at least 3 columns of numbers
// convention for format (default="%lg %lg %lg %lg)
//  format = "%lg %lg"         read only 2 first columns into X,Y
//  format = "%lg %lg %lg"     read only 3 first columns into X,Y and EY
//  format = "%lg %lg %lg %lg" read only 4 first columns into X,Y,EX,EY

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/TGraphErrors.cxx
File length: 21127 byte(s)
Diff to previous 6451
Implement copy constructor for all TGraph family of classes

Revision 6451 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 15 09:51:39 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 20725 byte(s)
Diff to previous 6418
Fix a typo in comments of TGraphErrors::Paint (thanks Ilka)

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/TGraphErrors.cxx
File length: 20726 byte(s)
Diff to previous 5843
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 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/TGraphErrors.cxx
File length: 20487 byte(s)
Diff to previous 5636
Protect several functions like ComputeRange, GetHistogram, GetXaxis
when gPad is null.

Revision 5636 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 22 10:05:22 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 20471 byte(s)
Diff to previous 5602
I the Paint functions, optimize the distance between the error bar
and the marker.

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/TGraphErrors.cxx
File length: 20517 byte(s)
Diff to previous 5235
Make const the function ComputeRange in TGraph, TGraphErrors
   and TGraphAsymmErrors.
Rewrite TGraph::GetHistogram to create the histogram without
painting the graph.

Revision 5235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 7 20:55:42 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 20511 byte(s)
Diff to previous 5103
TStyle::SetEndErrorSize moved from declaration to implementation file.
Document this function that can be used to remove the small lines at the end
of the error bars.
Default value for parameter changed from 1 to 2 in such a way that calling
  gStyle->setEndErrorSize(0); will remove the end lines

Modify THistPainter::PaintErrors and TGraphErrors::Paint accordingly.

Revision 5103 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 9 20:45:43 2002 UTC (12 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 20513 byte(s)
Diff to previous 4713
Modify the SavePrimitive functions to also save the associated histogram
information (in particular the axis titles) and also the TPaveStats.

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/TGraphErrors.cxx
File length: 20047 byte(s)
Diff to previous 4638
Add new methods
  TGraph::RemovePoint(Int_t point)
  TGraphErrors::RemovePoint(Int_t point)
  TGraphAsymm::RemovePoint(Int_t point)

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

Revision 4638 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 31 17:16:11 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 19481 byte(s)
Diff to previous 4585
In TGraphErrors::SetPoint and TGraphAsymmErrors::SetPoint, implement the same logic
as in TGraph::SetPoint deleting the current fHistogram if there is one created.

Revision 4585 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 23 08:46:15 2002 UTC (12 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 19408 byte(s)
Diff to previous 4284
Add support for option "x" (draw TGraph part only) in the Paint functions.

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/TGraphErrors.cxx
File length: 19386 byte(s)
Diff to previous 4105
Add a new constructor accepting a TH1* h as input argument.

Revision 4105 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 25 23:10:33 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 18882 byte(s)
Diff to previous 3748
Use the new function TStyle::GetEndErrorSize to set the length of
the lines drawn at the end of the error bars.
//     Use gStyle->SetErrorX(dx) to control the size of the error along x.
//     set dx = 0 to suppress the error along x.
//
//     Use gStyle->SetEndErrorSize(np) to control the size of the lines
//     at the end of the error bars (when option 1 is used).
//     By default np=1. (np reprersents the number of pixels).

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/TGraphErrors.cxx
File length: 18434 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/TGraphErrors.cxx
File length: 18434 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/TGraphErrors.cxx
File length: 18490 byte(s)
Diff to previous 3494
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 3494 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 18 15:43:05 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 16484 byte(s)
Diff to previous 3451
Improve the ComputeRange functions in case of log scales in X or/and Y.

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/TGraphErrors.cxx
File length: 16128 byte(s)
Diff to previous 3017
Modify the functions SavePrimitive to generate the code for
the associated fit functions.

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/TGraphErrors.cxx
File length: 15902 byte(s)
Diff to previous 2603
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 2603 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 20 21:05:30 2001 UTC (13 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 15078 byte(s)
Diff to previous 2468
Optimize size of error bars/error bar separators in case of small pads
or very assymetric pads. Take into account aspect ratio when computing
the marker size in TPostScript.

Revision 2468 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 27 08:12:27 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 15017 byte(s)
Diff to previous 2448
Implement new option "[]" in the TGraph::Paint and TGraphAsymmErrors::Paint.
   // if option "[]" is specified only the end vertical/horizonthal lines
   // of the error bars are drawn. This option is interesting to superimpose
   // systematic errors on top of a graph with statistical errors.

Revision 2448 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jun 24 17:04:38 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 14481 byte(s)
Diff to previous 2221
Modify the Paint functions to paint the TGraph symbols after the error bars

Revision 2221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 16 19:13:04 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 14458 byte(s)
Diff to previous 1902
Protection in TGraphErrors::Set in case the parameter n is less than fNpoints.
Thanks Eddy Offermann.

Revision 1902 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 6 07:10:06 2001 UTC (13 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 14451 byte(s)
Diff to previous 1847
Implement a new option in TGraphErrors::Paint.
   // if option contains ">" an arrow is drawn at the end of the error bars
   // if option contains "|>" a full arrow is drawn at the end of the error bars
   // the size of the arrow is set to 2/3 of the marker size.

Revision 1847 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 22 16:47:01 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 13404 byte(s)
Diff to previous 1715
Implement a new drawing option "X".
   // By default, error bars are drawn. If option "X" is specified,
   // the errors are not drawn (TGraph::Paint equivalent).

Revision 1715 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 28 07:22:46 2001 UTC (13 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 13232 byte(s)
Diff to previous 1225
Change float* or double* to const float* or const double* in the following
functions:
   TGraphErrors(Int_t n, const Float_t *x, const Float_t *y, const Float_t *ex=0, const Float_t *ey=0);
   TGraphErrors(Int_t n, const Double_t *x, const Double_t *y, const Double_t *ex=0, const Double_t *ey=0);

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/TGraphErrors.cxx
File length: 13184 byte(s)
Diff to previous 1205
Forgot to update the Streamer of these classes.

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/TGraphErrors.cxx
File length: 13009 byte(s)
Diff to previous 985
      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 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/TGraphErrors.cxx
File length: 12991 byte(s)
Diff to previous 759
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

Revision 759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 13 07:32:07 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 13084 byte(s)
Diff to previous 753
added new paint option "z"
   // by default horizonthal and vertical small lines are drawn at
   // the end of the error bars. if option "z" or "Z" is specified,
   // these lines are not drawn.

Revision 753 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 13:26:12 2000 UTC (14 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 12821 byte(s)
Diff to previous 549
Mods in the SavePrimitive to take into account the new class TMultiGraph

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/TGraphErrors.cxx
File length: 12719 byte(s)
Diff to previous 150
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 150 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:58:23 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGraphErrors.cxx
File length: 11830 byte(s)
Diff to previous 3
- Mods in TGraphErrors.h
  The internal dynamic arrays fEX and fEY have their type changed from Float_t to Double_t
  class VersionID changed from 1 to 2.
  New constructor:
        TGraphErrors(Int_t n);
  The arguments of the other constructors are now mandatory:
        TGraphErrors(Int_t n, Float_t *x, Float_t *y, Float_t *ex=0, Float_t *ey=0);
        TGraphErrors(Int_t n, Double_t *x, Double_t *y, Double_t *ex=0, Double_t *ey=0);
   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);
        Double_t        GetErrorX(Int_t bin);
        Double_t        GetErrorY(Int_t bin);
        Double_t       *GetEX() {return fEX;}
        Double_t       *GetEY() {return fEY;}
        virtual void    SetPoint(Int_t i, Double_t x, Double_t y);
        virtual void    SetPointError(Int_t i, Double_t ex, Double_t ey);

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

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