# Changing color of markers in TRatioPlot

**URL:** <https://root-forum.cern.ch/t/changing-color-of-markers-in-tratioplot/34979>\
**Category:** Newbie\
**Created:** [July 3, 2019, 8:18am UTC](https://root-forum.cern.ch/t/changing-color-of-markers-in-tratioplot/34979 "2019-07-03T08:18:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk231](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/7ea924/32.png) [@tk231](https://root-forum.cern.ch/u/tk231)\
**Post date:** [July 3, 2019, 8:18am UTC](https://root-forum.cern.ch/t/changing-color-of-markers-in-tratioplot/34979/1 "2019-07-03T08:18:16Z")

</div>

Hi,

is there a way to change the marker colors in the TRatioPlot class? (I assume it would work with something along the lines of `rp->SetGraphDrawOpt();`, but I have no idea what to put in the brackets)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [July 3, 2019, 8:25am UTC](https://root-forum.cern.ch/t/changing-color-of-markers-in-tratioplot/34979/2 "2019-07-03T08:25:18Z")

</div>

```auto
   rp->GetLowerRefGraph()->SetLineColor(kRed);
   rp->GetLowerRefGraph()->SetMarkerStyle(kFullCircle);
   rp->GetLowerRefGraph()->SetMarkerColor(kBlue);

```

---

<div class="post-metadata">

**Author:** ![tk231](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/t/7ea924/32.png) [@tk231](https://root-forum.cern.ch/u/tk231)\
**Post date:** [July 3, 2019, 8:53am UTC](https://root-forum.cern.ch/t/changing-color-of-markers-in-tratioplot/34979/3 "2019-07-03T08:53:03Z")

</div>

Solved my problem! Thanks!
