# Y correction in a correlation plot

**URL:** <https://root-forum.cern.ch/t/y-correction-in-a-correlation-plot/53205>\
**Category:** Newbie\
**Created:** [January 21, 2023, 8:15pm UTC](https://root-forum.cern.ch/t/y-correction-in-a-correlation-plot/53205 "2023-01-21T20:15:21Z")\
**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:** [January 21, 2023, 8:39pm UTC](https://root-forum.cern.ch/t/y-correction-in-a-correlation-plot/53205/2 "2023-01-21T20:39:21Z")

</div>

Try:

`ch1->Draw(TString::Format("(Y1 - Y2) - (%g / TMath::Sqrt(X)) : 1. / TMath::Sqrt(X)", slope1), "", "colz");`

---

_[View the full topic](https://root-forum.cern.ch/t/y-correction-in-a-correlation-plot/53205)._
