scikit-hep: 'module' object has no attribute 'to_rgba' when plotting histograms with error bars

Hi

I was just trying to reproduce the example I here https://github.com/scikit-hep/scikit-hep/blob/master/doc/examples/visual/errorbars.ipynb

_ = skh_plt.hist(data, bins=20, errorbars = True)
plt.title('Simple Error Bar Example')

but when errorbars is set to True there is an error

capture d ecran 2018-04-23 a 15 29 25

Matt

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (20 by maintainers)

Most upvoted comments

matplotlib 1.5.x is not compatible, please update to a current version

On Thu, Apr 4, 2019 at 1:54 PM Joe McGlinchy notifications@github.com wrote:

Also seeing this with the following versions:

Python: 3.6.7 | packaged by conda-forge | (default, Feb 20 2019, 02:51:38) [GCC 7.3.0] numpy: 1.16.2 matplotlib: 1.5.3

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/scikit-hep/scikit-hep/issues/58#issuecomment-479999504, or mute the thread https://github.com/notifications/unsubscribe-auth/AE1KfaZJpl87uP4ykRuy6lAYLWMhvVcQks5vdjxPgaJpZM4Tf5bb .

@oppianmatt unfortunately that looks like an edge-case incompatibility that will not be fixed on matplotlib’s end, and will likely not be supported here. I recommend upgrading to python 3 and/or using anaconda to manage python installs on CentOS.

@srugano your version of matplotlib is incompatible with this package, please update to a version greater than 2.0