# Plotting post fit pdf vs data when using variable binning

**URL:** <https://root-forum.cern.ch/t/plotting-post-fit-pdf-vs-data-when-using-variable-binning/64303>\
**Category:** Roofit and RooStats\
**Created:** [October 10, 2025, 7:32am UTC](https://root-forum.cern.ch/t/plotting-post-fit-pdf-vs-data-when-using-variable-binning/64303 "2025-10-10T07:32:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliasilva](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/juliasilva/32/23955_2.png) [@juliasilva](https://root-forum.cern.ch/u/juliasilva)\
**Post date:** [October 10, 2025, 7:32am UTC](https://root-forum.cern.ch/t/plotting-post-fit-pdf-vs-data-when-using-variable-binning/64303/1 "2025-10-10T07:32:40Z")

</div>

Hi experts!

I have a HistFactory model built from variable binning histograms and I am struggling to correctly plot the post fit result on top of the data, given the internal re-normalisation treatment described here: [[RF] RooDataHist from a variable binning TH1D: different shape, different bin content · Issue #16028 · root-project/root · GitHub](https://github.com/root-project/root/issues/16028#issuecomment-2654174476)

I have tried doing createHistogram from the pdfs as seemed to be hinted here that that could work: [https://its.cern.ch/jira/browse/ROOT-10498](https://its.cern.ch/jira/browse/ROOT-10498) - but that doesnt seem to be working.

So it is not clear to me what is the way to do this correctly and get the validation fit plots I need.

Is there a good way to do this?

Cheers,

Júlia

---

<div class="post-metadata">

**Author:** ![juliasilva](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/juliasilva/32/23955_2.png) [@juliasilva](https://root-forum.cern.ch/u/juliasilva)\
**Post date:** [October 13, 2025, 7:31am UTC](https://root-forum.cern.ch/t/plotting-post-fit-pdf-vs-data-when-using-variable-binning/64303/2 "2025-10-13T07:31:47Z")

</div>

Hey guys,

Just pinging again to give this question a bump.

Thanks in advance.

Best,

Júlia

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [October 13, 2025, 12:51pm UTC](https://root-forum.cern.ch/t/plotting-post-fit-pdf-vs-data-when-using-variable-binning/64303/3 "2025-10-13T12:51:20Z")

</div>

Let see if @jonas can help here

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [October 27, 2025, 12:52pm UTC](https://root-forum.cern.ch/t/plotting-post-fit-pdf-vs-data-when-using-variable-binning/64303/4 "2025-10-27T12:52:04Z")

</div>

Closed on October 27, 2025, 12:52pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
