You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1 #24264
import matplotlib.pyplot as plt
the_rc = plt.style.library["seaborn-colorblind"]
Using version 3.4.3 of matplotlib, this works fine. I recently installed my code on a machine with matplotlib version 3.6.1 and upon importing my code, this generated a key error for line the_rc = plt.style.library["seaborn-colorblind"] saying "seaborn-colorblind" was a bad key.
Activity
QuLogic commentedon Oct 25, 2022
This is due to the style renaming, but it's an oversight that this dictionary does not provide an alias for the old names.
Restore (and warn on) seaborn styles in style.library
Restore (and warn on) seaborn styles in style.library
Restore (and warn on) seaborn styles in style.library
Restore (and warn on) seaborn styles in style.library
Restore (and warn on) seaborn styles in style.library
Restore (and warn on) seaborn styles in style.library
Restore (and warn on) seaborn styles in style.library