Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New AddPoint method #6688

Merged
merged 3 commits into from Oct 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions README/ReleaseNotes/v624/index.md
Expand Up @@ -99,6 +99,8 @@ For details, see the RooFit tutorial [rf612_recoverFromInvalidParameters.C](http

## 2D Graphics Libraries

- Add the method `AddPoint`to `TGraph(x,y)` and `TGraph2D(x,y,z)`. equivalent to `SetPoint(g->GetN(),x,y)`and `SetPoint(g->GetN(),x,y,z)`


## 3D Graphics Libraries

Expand Down
1 change: 1 addition & 0 deletions hist/hist/inc/TGraph.h
Expand Up @@ -88,6 +88,7 @@ class TGraph : public TNamed, public TAttLine, public TAttFill, public TAttMarke
TGraph(const char *filename, const char *format="%lg %lg", Option_t *option="");
virtual ~TGraph();

virtual void AddPoint(Double_t x, Double_t y) { SetPoint(fNpoints, x, y); } ///< Append a new point to the graph.
virtual void Apply(TF1 *f);
virtual void Browse(TBrowser *b);
virtual Double_t Chisquare(TF1 *f1, Option_t *option="") const;
Expand Down
1 change: 1 addition & 0 deletions hist/hist/inc/TGraph2D.h
Expand Up @@ -90,6 +90,7 @@ class TGraph2D : public TNamed, public TAttLine, public TAttFill, public TAttMar

TGraph2D& operator=(const TGraph2D &);

virtual void AddPoint(Double_t x, Double_t y, Double_t z) { SetPoint(fNpoints, x, y, z); } ///< Append a new point to the graph.
virtual void Browse(TBrowser *);
virtual void Clear(Option_t *option="");
virtual void DirectoryAutoAdd(TDirectory *);
Expand Down