Wrong default display for mplhep.histplot
See original GitHub issueThe command
hep.histplot(h, bins, ax=axs[0])
does not produce a histogram in HEP-style. It draws markers at the edges, which is wrong, and the lines of the histogram do not go down to zero.
hep.histplot(h, bins, edges=True, ax=axs[1])
is closer to the expected skyline, but the markers are still wrong. Apart from the wrong markers, this should be the default. In fact, I cannot imagine that one ever wants to have edges=False.
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (18 by maintainers)
Top Results From Across the Web
API reference - mplhep - Read the Docs
mplhep. histplot (H, bins=None, *, yerr: ArrayLike | bool | None = None, w2=None, ... default None, optional) – Array of per-bin labels...
Read more >2: First look at data — Analysis essentials documentation
In this lesson we will look at a toy dataset simulating J / ψ → μ + μ − events. We will discuss...
Read more >Scikit-HEP/community
The colors are less important in the new display. The new display tells you in words what's wrong and it uses CAPITAL LETTERS...
Read more >How to use the mplhep.histplot function in mplhep
To help you get started, we've selected a few mplhep.histplot examples, ... edges, label=plot_info['label'], yerr=_error, histtype=histtype, ax=ax, ...
Read more >histograms-advanced
the array (or list of arrays) of the histogram content; the array of the bins (begin the edge ... PROBLEM: default bar width...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Fair enough, I can’t imagine a use case where one would actually want to show those markers, so I think we can hard-code it.
Unless the markers get drawn at every corner (Mickey-mouse style), they really are not even correct and would probably not ever be useful and could be forced off, I would think.