Closed yoavram closed 6 years ago
Thank you for reporting this bug. I saw the same warning message in my other package matplotlib-scalebar. I applied the same fix to matplotlib-colorbar which consists in reinitializing only the validate function.
matplotlib.rcParams.validate = \
dict((key, converter) for key, (default, converter) in
six.iteritems(defaultParams)
if key not in matplotlib._all_deprecated)
It seems to work on my system, but I would appreciate if you have time to check it on yours. If it works, I will release a new version.
Commit 6b4737290465d3daee0c46088f6842714f768a61 seems to be working fine!
In release 0.3.5
When importing
from matplotlib_colorbar.colorbar import Colorbar
after matplotlib has already been imported, say with%matplotlib inline
, a warning comes up:I managed to trace the warning, and it's coming from
matplotlib_colorbar/colorbar.py
, line 83:If this is OK, maybe you can suppress the warning?