Title: Axhline doesn’t cycle through colors · Issue #16714 · matplotlib/matplotlib · GitHub
Open Graph Title: Axhline doesn’t cycle through colors · Issue #16714 · matplotlib/matplotlib
X Title: Axhline doesn’t cycle through colors · Issue #16714 · matplotlib/matplotlib
Description: As requested by @story645, I am posting a possible bug I reported in the forum https://discourse.matplotlib.org/t/axhline-doesnt-cycle-through-colors/20938 When I plot horizontal lines using axhline, there resulting lines are all the sam...
Open Graph Description: As requested by @story645, I am posting a possible bug I reported in the forum https://discourse.matplotlib.org/t/axhline-doesnt-cycle-through-colors/20938 When I plot horizontal lines using axhlin...
X Description: As requested by @story645, I am posting a possible bug I reported in the forum https://discourse.matplotlib.org/t/axhline-doesnt-cycle-through-colors/20938 When I plot horizontal lines using axhlin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16714
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Axhline doesn’t cycle through colors","articleBody":"As requested by @story645, I am posting a possible bug I reported in the forum https://discourse.matplotlib.org/t/axhline-doesnt-cycle-through-colors/20938 \r\n\r\nWhen I plot horizontal lines using `axhline`, there resulting lines are all the same color. It doesn’t cycle automatically. Is this behavior expected? Do I need to manually setup the color cycling? If so how can I do this easily? Why does matplotlib not automatically cycle through the colors for `axhline`?\r\n\r\nmatplotlib v3.2.0\r\n\r\n```\r\n%matplotlib widget\r\nimport matplotlib.pyplot as plt\r\n\r\nfig, ax = plt.subplots()\r\n\r\ncount = 5\r\n\r\nfor n in range(count):\r\n ax.axhline(y=n**2, label=n) \r\n \r\nax.legend()\r\nplt.show()\r\n```\r\n\r\n","author":{"url":"https://github.com/01baftb","@type":"Person","name":"01baftb"},"datePublished":"2020-03-09T18:02:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/16714/matplotlib/issues/16714"}
| 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:ffe76a7d-cf78-f7e4-b60c-05b2c5932126 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4D0:1CDD30:1076007:162AE08:6A544B73 |
| html-safe-nonce | c6f20d482f7b5afcde9c0a6f2586cdaf8efb3ddcf59b671865d725f838ca35b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEQwOjFDREQzMDoxMDc2MDA3OjE2MkFFMDg6NkE1NDRCNzMiLCJ2aXNpdG9yX2lkIjoiMjEzMjIzNDExOTI5MTM1ODA2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 11d56565c68b07aeaafca488e9201c79c206aa25a556a30772018626457d0069 |
| hovercard-subject-tag | issue:578091021 |
| 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/16714/issue_layout |
| twitter:image | https://opengraph.githubassets.com/de95b333b40e585875ccca9156ae0e8ebfd837630b5fd51fcd10127964b68eeb/matplotlib/matplotlib/issues/16714 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/de95b333b40e585875ccca9156ae0e8ebfd837630b5fd51fcd10127964b68eeb/matplotlib/matplotlib/issues/16714 |
| og:image:alt | As requested by @story645, I am posting a possible bug I reported in the forum https://discourse.matplotlib.org/t/axhline-doesnt-cycle-through-colors/20938 When I plot horizontal lines using axhlin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | 01baftb |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width