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] Axis label propagation when wrapping histogram by hist.Hist #549

Open
alexander-held opened this issue Dec 4, 2023 · 0 comments
Open

Comments

@alexander-held
Copy link
Member

Describe the bug

When wrapping an existing histogram object by hist.Hist(), I expected that I can set metadata (such as axis labels) in the hist.Hist() call. This currently does not work, see reproducer below.

Am I using the interface in the wrong way here?

Steps to reproduce

import boost_histogram as bh
import hist

boost_h = bh.Histogram(bh.axis.Regular(2, 0, 1))
print(hist.Hist(boost_h, label="abc").axes[0].label)

-> prints Axis 0

relevant versions:

boost-histogram               1.3.2
hist                          2.7.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant