Title: [Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1 · Issue #24264 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1 · Issue #24264 · matplotlib/matplotlib
X Title: [Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1 · Issue #24264 · matplotlib/matplotlib
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...
Open Graph 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 c...
X 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 inst...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24264
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Setting matplotlib.pyplot.style.library['seaborn-colorblind'] result in key error on matplotlib v3.6.1","articleBody":"### Bug summary\n\nI have code that executes:\r\n```\r\nimport matplotlib.pyplot as plt\r\nthe_rc = plt.style.library[\"seaborn-colorblind\"]\r\n```\r\n\r\nUsing 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.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\nthe_rc = plt.style.library[\"seaborn-colorblind\"]\n```\n\n\n### Actual outcome\n\nTraceback (most recent call last):\r\nKeyError: 'seaborn-colorblind'\n\n### Expected outcome\n\nseaborn-colorblind should be set as the matplotlib library style and I should be able to continue plotting with that style.\n\n### Additional information\n\n- Bug occurs with matplotlib version 3.6.1\r\n- Bug does not occur with matplotlib version 3.4.3\r\n- Tested on MacOSX and Ubuntu (same behavior on both)\n\n### Operating system\n\nOS/X\n\n### Matplotlib Version\n\n3.6.1\n\n### Matplotlib Backend\n\nMacOSX\n\n### Python version\n\n3.9.7\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/kaylai","@type":"Person","name":"kaylai"},"datePublished":"2022-10-24T21:57:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/24264/matplotlib/issues/24264"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17dd16ad-7be6-231b-968e-d5a075566625 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B152:2946B:37E70E:4F76D1:6A50F80C |
| html-safe-nonce | b4155c906b96148325180433ff607d5125c6ee78c0339a07ead21a0d5ac6a952 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTUyOjI5NDZCOjM3RTcwRTo0Rjc2RDE6NkE1MEY4MEMiLCJ2aXNpdG9yX2lkIjoiMzk2MDA2MjU2MjgzODU3NTExNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c5d62e290fc806ab3e5517dbb7c2f3a1d5647971cf23c230aeb61e8020998e9e |
| hovercard-subject-tag | issue:1421509547 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/24264/issue_layout |
| twitter:image | https://opengraph.githubassets.com/584b4167d7902c64f51700478d33cd0781f29afbce8acf07a7626d7205d70b9f/matplotlib/matplotlib/issues/24264 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/584b4167d7902c64f51700478d33cd0781f29afbce8acf07a7626d7205d70b9f/matplotlib/matplotlib/issues/24264 |
| og:image:alt | 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 c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kaylai |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5266e58c17a510c403505cc811606465e90a881d2007ee7df1c4800d5c659838 |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8d836581d020676cc0ef4a83cd2fe17e4af02c3d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width