Root 6.22.06 and matplotlib and Jupyter - what to do?

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.22.06
Platform: SL7.9
Compiler: gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)

I want to use matplotlib with root histograms.
I started with writing my own,
then I tried looking at root2matplotlib
which referred me to rootpy
which doesn’t work with my modern root build
so I’m now looking at pyroot which works
but seems to have no interface to matplotlib.
Can someone point me to a modern tool set for using root with matplotlib?

Thanks, Heidi (I’m trying to get my MINERvA colleagues away from 5.34 with nice looking plots.)

You might try to configure ROOT using: -Dpyroot_legacy=ON

Actually, I’m not having any issues - just asking for advice on what packages to use if I am looking for modern matplotlib integration root. I’m using the binary distribution as I’m trying to find a config that’s easy to share without rebuilding root. I can run numpy and matplotlib just fine, but only by writing my own interfaces to histograms.
I’m assuming there is a modern set of tools out there before i start trying to resurrect old code.

Dear Heidi,

Just wondering - what’s wrong with using ROOT plots with Jupyter? See e.g. - it’s that simple :slight_smile:

Cheers, Axel.