# Drawing TGraphErr

**URL:** <https://root-forum.cern.ch/t/drawing-tgrapherr/51357>\
**Category:** Newbie\
**Created:** [August 26, 2022, 2:42pm UTC](https://root-forum.cern.ch/t/drawing-tgrapherr/51357 "2022-08-26T14:42:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [August 26, 2022, 2:49pm UTC](https://root-forum.cern.ch/t/drawing-tgrapherr/51357/2 "2022-08-26T14:49:59Z")

</div>

Move the line:  
`TGraphErrors *gEff = new TGraphErrors(nbins_mpipi, XX,YY,ERR);`  
to a place right before the line:  
`gEff->SetMarkerColor(jtmin_t+1);`

---

_[View the full topic](https://root-forum.cern.ch/t/drawing-tgrapherr/51357)._
