How to name x&y axis after to_hist a TH2F histogram #342
Unanswered
ZhenxuanZhang-Jensen
asked this question in
Q&A
Replies: 1 comment 14 replies
-
You need to rename both at the same time, since that's the only way to verify the names are valid. Just do this: h = hist["h1"].to_hist()
h.axes.name = ("x", "y")
h.plot2d_full() |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose I just created a TH2F histogram and use to_hist() to make it a hist, and how can I name the x and y axis to different name?
Beta Was this translation helpful? Give feedback.
All reactions