question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong default display for mplhep.histplot

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
andrzejnovakcommented, Mar 10, 2020

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.

1reaction
henryiiicommented, Mar 9, 2020

I could probably force set them in the function, but that’s not great.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found