-
Notifications
You must be signed in to change notification settings - Fork 26
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] plot2d_full does not work properly on Int axes #488
Comments
Few quick tips: No need to wrap import matplotlib.pyplot as plt
import numpy as np
from hist import Hist
h = (
Hist.new.Int(-5, 5, name="S", label="s [units]", flow=False)
.Int(-5, 5, name="W", label="w [units]", flow=False)
.Double()
)
np.random.seed(42)
s_data = np.random.normal(loc=1, size=100_000)
w_data = np.random.normal(size=100_000)
# normal fill
h.fill(s_data, w_data)
fig = plt.figure(figsize=(8, 8))
fig.suptitle("This is a plot", fontsize=16)
h.plot2d_full()
plt.show() Now I'm not sure why the right counts tick labels (which I think doesn't have anything to do with the Int-Int main plot?) is all smashed into one spot. That's possibly buggy. Actually, filling this with doubles looks buggy too, will investigate. |
Thanks for the tips. |
Describe the bug
Calling plot2d_full on an (Int,Int)-axes hist produces a garbled side axis.
Also, there is no documentation on how to add a title to a plot2d_full plot.
Steps to reproduce
An example that highlights the broken behaviour. Include OS and system info if relevant.
Reproduce: try this:
The text was updated successfully, but these errors were encountered: