Title: [Bug]: set_prop_cycle does not affect Cn colors · Issue #32004 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: set_prop_cycle does not affect Cn colors · Issue #32004 · matplotlib/matplotlib
X Title: [Bug]: set_prop_cycle does not affect Cn colors · Issue #32004 · matplotlib/matplotlib
Description: Bug summary Updating the color cycler with set_prop_cycle does not affect the colors selected explicitly with the "Cn" notation. Code for reproduction fig, ax = plt.subplots() ax.set_prop_cycle(color=["k"]) # Expect this line to be black...
Open Graph Description: Bug summary Updating the color cycler with set_prop_cycle does not affect the colors selected explicitly with the "Cn" notation. Code for reproduction fig, ax = plt.subplots() ax.set_prop_cycle(col...
X Description: Bug summary Updating the color cycler with set_prop_cycle does not affect the colors selected explicitly with the "Cn" notation. Code for reproduction fig, ax = plt.subplots() ax.set_prop...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32004
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: set_prop_cycle does not affect Cn colors","articleBody":"### Bug summary\n\nUpdating the color cycler with `set_prop_cycle` does not affect the colors selected explicitly with the `\"Cn\"` notation.\n\n### Code for reproduction\n\n```Python\nfig, ax = plt.subplots()\n\nax.set_prop_cycle(color=[\"k\"])\n# Expect this line to be black; it is drawn blue\nax.plot([0, 1], [0, 1], color=\"C0\")\n```\n\n### Actual outcome\n\nColors are selected based on the global cycler.\n\n### Expected outcome\n\nExpect colors to be selected according to the updated cycler.\n\n### Additional information\n\nOccurs on windows + mpl 3.11.0 and linux + mpl 3.10.0\n\n### Operating system\n\nWindows and linux (RHEL9)\n\n### Matplotlib Version\n\n3.11.0\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.12.13\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\nNone","author":{"url":"https://github.com/aschankler","@type":"Person","name":"aschankler"},"datePublished":"2026-07-06T18:00:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/32004/matplotlib/issues/32004"}
| 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:e3a10e74-7d7c-c960-a203-57b90261b60a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D836:1443D0:8E4266:BC0C85:6A62ABFA |
| html-safe-nonce | d021d167ab7bfbab8f0363836969ee3c17c1ca5349a2d84270f987fc6960f952 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODM2OjE0NDNEMDo4RTQyNjY6QkMwQzg1OjZBNjJBQkZBIiwidmlzaXRvcl9pZCI6IjY1ODg4OTE2OTQzMjY1Mjc5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dabdbcdc1ccb0eed68e5a878fd09af46fc44ae7fa31dd1afe76b49e2f2baf1c5 |
| hovercard-subject-tag | issue:4821790360 |
| 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/32004/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a52ca2ef39f17e0ff08ab5fd4a9ea9948a225e142e6a8f0faef84cc36dbe9bb/matplotlib/matplotlib/issues/32004 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a52ca2ef39f17e0ff08ab5fd4a9ea9948a225e142e6a8f0faef84cc36dbe9bb/matplotlib/matplotlib/issues/32004 |
| og:image:alt | Bug summary Updating the color cycler with set_prop_cycle does not affect the colors selected explicitly with the "Cn" notation. Code for reproduction fig, ax = plt.subplots() ax.set_prop_cycle(col... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aschankler |
| hostname | github.com |
| expected-hostname | github.com |
| None | e362a1b5e54cdb52dad78dc403bb9e6a8362e7c0448a1d804fe243f9fac57954 |
| 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 | 5410e150d3e7c804f80827080c5f130c97eaf5a4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width