Skip to content
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

Suppress yerr drawing globally #360

Open
gipert opened this issue Feb 9, 2022 · 3 comments
Open

Suppress yerr drawing globally #360

gipert opened this issue Feb 9, 2022 · 3 comments

Comments

@gipert
Copy link

gipert commented Feb 9, 2022

Hi, my question might have a trivial answer but I cannot help myself with the docs or the source code. How do I set yerr=None for all histograms with a global option (in matplotlib, I would look for a rcParams key)? Most of the times I'm not interested in displaying error bars, I would be happier if uncertainty bars were not drawn by default. Thanks!

@andrzejnovak
Copy link
Member

Hi @gipert I don't think this is currently possible. histplot(..., yerr=False) should turn them of on fcn call basis, but we don't have a global setting for this rn.

We have custom (not heavily used) rcParams for labelling and could use the same logic to turn off error bars by default

rcParams = Config(

@gipert
Copy link
Author

gipert commented Feb 9, 2022

Would be great to have such an option.

Apart from this, why not defaulting to yerr=False? I think pretty much all of the histogram plotting libraries around (first of all, ROOT), do this.

@andrzejnovak
Copy link
Member

You're welcome to make a PR or leave this issue open, but it won't be done with any particular priority. I don't think passing histtype and yerr is horribly inconvenient.

I'm a sense it is the default, if you only supply counts and bin edges they aren't automatically computed by default, if you supply a histogram object that carries weights2, the information gets displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants