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

bug: TProfile2D bins with entries but value 0 not being shown in COL draw option #316

Closed
will-cern opened this issue Jul 24, 2024 · 1 comment
Assignees
Labels

Comments

@will-cern
Copy link

Hello,

I've noticed that JSROOT doesn't display the bins that have entries in a TProfile2D but where the value/content of the bin is 0.
Here's a reproducer:

%jsroot on
p = ROOT.TProfile2D("p","p",10,0,10,10,0,10)
p.Fill(4,4,0)
p.Draw("COLZ")
ROOT.gPad.GetCanvas().Draw()

That filled bin should show up. It does with jsroot is turned off.

@linev
Copy link
Member

linev commented Jul 26, 2024

Now empty TProfile2D bins with non-zero entries will be shown in color draw.

profile2d

@linev linev closed this as completed Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants