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

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

Parent Directory Parent Directory


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

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 19003 byte(s)
Diff to previous 38627
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 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: 18938 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: 18834 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: 18817 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: 18804 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: 18647 byte(s)
Copied from: trunk/graf2d/graf/src/TGraphBentErrors.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/TGraphBentErrors.cxx
File length: 18647 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/TGraphBentErrors.cxx
File length: 25334 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/TGraphBentErrors.cxx
File length: 18647 byte(s)
Diff to previous 23140
- All the methods doing graphics are now in TGraphPainter.

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/TGraphBentErrors.cxx
File length: 25334 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/TGraphBentErrors.cxx
File length: 25334 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/TGraphBentErrors.cxx
File length: 25334 byte(s)
Diff to previous 20309
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 20309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 11 12:45:04 2007 UTC (7 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 25284 byte(s)
Diff to previous 20308
- The signatures of the two SetPointError methods were incomplete. The shift
  values in the various directions were missing. To preserve the backward 
  compatibility, the missing parameters have been added with default value = 0.
  The new signature is now used in SavePrimitive which allows a correct saving
  of the TGraphBentErrors.

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/TGraphBentErrors.cxx
File length: 24634 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/TGraphBentErrors.cxx
File length: 24628 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/TGraphBentErrors.cxx
File length: 24691 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/TGraphBentErrors.cxx
File length: 24750 byte(s)
Diff to previous 17469
remove :$ from tag line

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/TGraphBentErrors.cxx
File length: 24760 byte(s)
Diff to previous 15672
use forward declarations of TGraph, TH1, TAxis instead of includes.

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/TGraphBentErrors.cxx
File length: 24744 byte(s)
Diff to previous 13269
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 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/TGraphBentErrors.cxx
File length: 24736 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/TGraphBentErrors.cxx
File length: 24733 byte(s)
Diff to previous 12643
- Mods 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/TGraphBentErrors.cxx
File length: 25187 byte(s)
Diff to previous 12594
Fix coding conventions violations.

Revision 12594 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 2 19:08:28 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 24907 byte(s)
Diff to previous 11251
Fix coding conventions violations.CVS: ----------------------------------------------------------------------

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/TGraphBentErrors.cxx
File length: 24904 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/TGraphBentErrors.cxx
File length: 24872 byte(s)
Diff to previous 11207
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 11207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 1 09:33:46 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 23990 byte(s)
Diff to previous 11043
From Olivier:
- In TGraphBentErrors::Paint the TStyle parameter EndErrorSize was not
  taken into account.

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/TGraphBentErrors.cxx
File length: 23873 byte(s)
Diff to previous 10294
From Olivier:
- The errors boxes attributes (option E2) were not right when the graph
  was painted in an existing TFrame.

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/TGraphBentErrors.cxx
File length: 23737 byte(s)
Diff to previous 10029
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 10029 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 06:38:44 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 23703 byte(s)
Diff to previous 10002
Fix in all the TGraph classes. CtorAllocate should NOT be made virtual.
This is misleading since the 'virtual' part can not be used from within a constructor.

Minor fix in the example given in TGraphBentErrors (thanks Maxim Nikulin)

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

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/TGraphBentErrors.cxx
File length: 28393 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/TGraphBentErrors.cxx
File length: 27891 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/TGraphBentErrors.cxx
File length: 27194 byte(s)
Diff to previous 9408
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 9408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 6 14:55:04 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 26020 byte(s)
Diff to previous 8287
Update misleading comments in the GetErrorX,Y functions.

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

Revision 8195 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 13 14:27:00 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 25078 byte(s)
Diff to previous 6801
added missing cvs "// @(#)..." ident lines.

Revision 6801 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Jun 30 09:21:33 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGraphBentErrors.cxx
File length: 24600 byte(s)
Add new class (from Dave Morrison) to draw graphs with bent asymmetric errors.

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