# Command-line script for overlaying hists from multiple files

**URL:** <https://root-forum.cern.ch/t/command-line-script-for-overlaying-hists-from-multiple-files/9923>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [April 6, 2010, 2:14pm UTC](https://root-forum.cern.ch/t/command-line-script-for-overlaying-hists-from-multiple-files/9923 "2010-04-06T14:14:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jklukas](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/db5fbb/32.png) [@jklukas](https://root-forum.cern.ch/u/jklukas)\
**Post date:** [April 6, 2010, 2:14pm UTC](https://root-forum.cern.ch/t/command-line-script-for-overlaying-hists-from-multiple-files/9923/1 "2010-04-06T14:14:32Z")

</div>

Using pyROOT, I have developed a command-line application that can automatically overlay histrograms from several files, putting out image files, or even a combined pdf of all histograms. I have been adding quite a bit of functionality through command-line options for things like normalization, changing colors, setting titles, setting log axes and overflow bins, etc.

It is part of a larger python module whose goal is to enable plotting root histograms with the matplotlib module, so it also includes options for using matplotlib output rather than root.

Full documentation is available here:  
[packages.python.org/root2matplot … erlayHists](http://packages.python.org/root2matplot/#module-root2matplot.overlayHists)

It’s already available on lxplus5 machines if you follow instructions on the above page, for those at CERN.

---

<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:** [November 6, 2015, 11:54am UTC](https://root-forum.cern.ch/t/command-line-script-for-overlaying-hists-from-multiple-files/9923/2 "2015-11-06T11:54:23Z")

</div>

See also [here](https://root.cern.ch/how/how-quickly-inspect-content-file).
