# TGraphErrors member function AddPointError()

**URL:** <https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945>\
**Category:** Newbie\
**Tags:** root\
**Created:** [February 14, 2025, 11:03am UTC](https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945 "2025-02-14T11:03:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.V.2025](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@A.V.2025](https://root-forum.cern.ch/u/A.V.2025)\
**Post date:** [February 14, 2025, 11:03am UTC](https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945/1 "2025-02-14T11:03:08Z")

</div>

Hello Rooters,

I’m working on a **TGraphErrors** which is supposed to be filled with single points. Therefore is use the classes **member function AddPointError()** as stated in the documentation / class reference.  
Sadly the following **error message** is reutrned for evry single line of AddPointError():  
error: no member named ‘AddPointError’ in ‘TGraphErrors’  
RatioGraph-\>AddPointError(5.89909,0.956899,0.006294,0.000388);  
~~~~~~~~~~ ^

For reference I present you a functional cut of the Root Macro below and attach the entire file. [edit: new here-\>cant attach file cuz link]

```auto
void RatioPlot(){
    auto *RatioGraph = new TGraphErrors();
    RatioGraph->SetTitle("Transmission Ratios;Target length along beam axis [mm];Transmission [a.u.]");
    RatioGraph->GetXaxis()->CenterTitle();
    RatioGraph->GetYaxis()->CenterTitle();
    //s533_50_gC_6mm_0045
    RatioGraph->AddPointError(5.89909,0.956899,0.006294,0.000388);
    //s533_50_gC_12mm_0046
    RatioGraph->AddPointError(11.801295,0.918984,0.007238109145,0.000457);
    auto *RatioCanvas = new TCanvas("Transmission Ratios","RatioCanvas",1,1,2220,1440);
    
    RatioGraph->Draw("ap");
}

```

* * *

_ROOT Version:_ ROOT 6.30/04  
_Platform:_ Linux Debian +/- Bookworm  
_Compiler:_ Standard Root Cling ?

* * *

---

<div class="post-metadata">

**Author:** ![yus](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/y/9fc348/32.png) [@yus](https://root-forum.cern.ch/u/yus)\
**Post date:** [February 14, 2025, 11:30am UTC](https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945/2 "2025-02-14T11:30:25Z")

</div>

Hi,  
`TGraphErrors::AddPointError()` does not exist in ROOT 6.30 ([proof](https://root.cern.ch/doc/v630/classTGraphErrors.html)) or in 6.32 ([proof](https://root.cern.ch/doc/v632/classTGraphErrors.html)). You need ROOT 6.34 for that.

---

<div class="post-metadata">

**Author:** ![A.V.2025](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/6de8d8/32.png) [@A.V.2025](https://root-forum.cern.ch/u/A.V.2025)\
**Post date:** [February 14, 2025, 11:56am UTC](https://root-forum.cern.ch/t/tgrapherrors-member-function-addpointerror/62945/3 "2025-02-14T11:56:23Z")

</div>

Welp, sucks for me I guess.

Thanks for the information! 👍
