FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1 · Issue #24264 · matplotlib/matplotlib · GitHub

[Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1 #24264

Closed

Description

Bug summary

I have code that executes:

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.

Code for reproduction

import matplotlib.pyplot as plt
the_rc = plt.style.library["seaborn-colorblind"]

Actual outcome

Traceback (most recent call last):
KeyError: 'seaborn-colorblind'

Expected outcome

seaborn-colorblind should be set as the matplotlib library style and I should be able to continue plotting with that style.

Additional information

  • Bug occurs with matplotlib version 3.6.1
  • Bug does not occur with matplotlib version 3.4.3
  • Tested on MacOSX and Ubuntu (same behavior on both)

Operating system

OS/X

Matplotlib Version

3.6.1

Matplotlib Backend

MacOSX

Python version

3.9.7

Jupyter version

No response

Installation

pip

Activity

  1. added this to the v3.6.2 milestone on Oct 25, 2022
  2. QuLogic commented on Oct 25, 2022

    Member

    This is due to the style renaming, but it's an oversight that this dictionary does not provide an alias for the old names.

  3. added a commit that references this issue on Oct 25, 2022
    be61b41
  4. added
    API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …
    on Oct 25, 2022
  5. added 2 commits that reference this issue on Oct 25, 2022
    6d176ed
    0c1f7e5
  6. added a commit that references this issue on Dec 19, 2022
    6caf94a
  7. added 3 commits that reference this issue on Apr 19, 2026
    0c49a07
    73d731b
    9197824
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    API: changesChanges to the public API, typically requiring deprecation.API: consistencyConsistency of the matplotlib API, including naming, behavior, defaults, …Maintenance

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL