Replies: 1 comment 1 reply
-
That's an interesting ask. You want the "plotted" bins to be artificial, but labelled correctly right? I think that is a bit too niche to implement in mplhep, but the way to go (similar to the SO answer I think) is to redefine the bins on the hist object (or extract the vals and pass arbitrary bins) and then manually set the ticks. What we can improve is that currently passing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm opening this thread because I wasn't able to find an easy way to achieve what I'm trying to do.
Let's say I have the following simple reproducer:
This works fine, but what I would like to have is for the edges in
edges
to be shown at the same distance, so that it it looks like the bins all have the same width (even if in practice they don't). Pretty much it is the same question asked here.Is there an easy way to do this e.g. from the options in
mplhep.histplot
?Thanks,
Massimiliano
Beta Was this translation helpful? Give feedback.
All reactions