Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You can import plots to plotly. #1037

Open
Esword618 opened this issue Nov 21, 2023 · 2 comments
Open

You can import plots to plotly. #1037

Esword618 opened this issue Nov 21, 2023 · 2 comments
Labels
feature New feature or request

Comments

@Esword618
Copy link

Esword618 commented Nov 21, 2023

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

Tasks

No tasks being tracked yet.
@Esword618 Esword618 added the feature New feature or request label Nov 21, 2023
@jpivarski
Copy link
Member

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
Copy link
Author

ok,thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants