scikit-hep / uproot5

ROOT I/O in pure Python and NumPy.
https://uproot.readthedocs.io
BSD 3-Clause "New" or "Revised" License
235 stars 75 forks source link

You can import plots to plotly. #1037

Open Esword618 opened 11 months ago

Esword618 commented 11 months ago

plotly's graph is interactive, making it easier to see the data directly when analyzing it.

### Tasks
jpivarski commented 8 months ago

If this is for histograms only, could this be a hist issue? (I can transfer it.) If so, then the workflow would be

root_file["hist_name"].to_hist().plotly()

I can transfer this issue if that's the case.

If this is also for TGraphs, then something would have to be done in Uproot as well.

It might also make sense for this to be an extremely lightweight package, uproot-plotly, that provides functions that extract data from Uproot (and hist's?) public APIs and sends them to plotly. It's already the case that hist's Matplotlib plotting is handled by a lightweight package, mplhep.

scientific-python/cookie makes short work of creating a new package. (Dividing work-to-do into small packages that only access other packages through public APIs is a good way to keep the ecosystem maintainable, and it provides exposure to early career developers because each package has a clear author.)

Esword618 commented 8 months ago

ok,thanks.