# Merge two histograms in one

**URL:** <https://root-forum.cern.ch/t/merge-two-histograms-in-one/40767>\
**Category:** Newbie\
**Created:** [July 31, 2020, 12:23am UTC](https://root-forum.cern.ch/t/merge-two-histograms-in-one/40767 "2020-07-31T00:23:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afzaal786](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/afzaal786/32/20527_2.png) [@Afzaal786](https://root-forum.cern.ch/u/Afzaal786)\
**Post date:** [July 31, 2020, 12:23am UTC](https://root-forum.cern.ch/t/merge-two-histograms-in-one/40767/1 "2020-07-31T00:23:40Z")

</div>

Hello, dear ROOT users hope you are doing great!  
I wanna merge Compton photons and electrons to reproduce that plot in paper but don’t know how to do it. I am using ROOT 6.18.04, Geant4.10.06 in Ubuntu. Any kind of help meant me a lot.  
Thanks for your time and consideration.

---

<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 31, 2020, 6:15am UTC](https://root-forum.cern.ch/t/merge-two-histograms-in-one/40767/2 "2020-07-31T06:15:10Z")

</div>

There is several ways: you can add the two histograms. You will then get a new one. You can also group them using [THStack](https://root.cern/doc/master/classTHStack.html), is that case the two histograms are drawn together.
