# What plotting library to use for HEP

**URL:** <https://discourse.julialang.org/t/what-plotting-library-to-use-for-hep/76962>\
**Category:** Statistics\
**Tags:** question, plotting\
**Created:** [February 23, 2022, 8:11am UTC](https://discourse.julialang.org/t/what-plotting-library-to-use-for-hep/76962 "2022-02-23T08:11:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoram](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shoram/32/34083_2.png) [@shoram](https://discourse.julialang.org/u/shoram)\
**Post date:** [February 23, 2022, 8:11am UTC](https://discourse.julialang.org/t/what-plotting-library-to-use-for-hep/76962/1 "2022-02-23T08:11:03Z")

</div>

Hi all, I am starting my phd in particle physics and would love to use Julia for data analysis/visualization. Do you have any advice on what plotting library should I use which has the most ROOT (from CERN) features?

Since pretty much 90% of what I’m doing is working with histograms (1D, 2D) and fitting, I was wondering which plotting library is best for such usecase. I have been dabbling quite a bit with Plots.jl but I’m missing some of the features like “GetBinContent()”, “Fill()”, setting specific number of bins in 2D histogram for each axis, getting overflow/underflow bins, etc.

Thanks for any advice!

---

<div class="post-metadata">

**Author:** ![wc4wc4wc4](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wc4wc4wc4/32/23038_2.png) [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Post date:** [February 23, 2022, 8:43am UTC](https://discourse.julialang.org/t/what-plotting-library-to-use-for-hep/76962/2 "2022-02-23T08:43:29Z")

</div>

Have you checked out [FHist.jl](https://github.com/Moelf/FHist.jl)?

---

<div class="post-metadata">

**Author:** ![shoram](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shoram/32/34083_2.png) [@shoram](https://discourse.julialang.org/u/shoram)\
**Post date:** [February 23, 2022, 8:59am UTC](https://discourse.julialang.org/t/what-plotting-library-to-use-for-hep/76962/3 "2022-02-23T08:59:33Z")

</div>

I have not known such a library exists, I’m pretty new to Julia and don’t know all the packages yet, but at a first glance it looks like this could be it. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![wc4wc4wc4](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wc4wc4wc4/32/23038_2.png) [@wc4wc4wc4](https://discourse.julialang.org/u/wc4wc4wc4)\
**Post date:** [February 23, 2022, 9:08am UTC](https://discourse.julialang.org/t/what-plotting-library-to-use-for-hep/76962/4 "2022-02-23T09:08:07Z")

</div>

Not that I am doing that much HEP-related stuff anymore, but it might be worth it to look through some of [these slides](https://indico.cern.ch/event/1074269/) as well. That’s also where I found the above mentioned package.
