Title: Cycler passed as string for rc · Issue #7219 · matplotlib/matplotlib · GitHub
Open Graph Title: Cycler passed as string for rc · Issue #7219 · matplotlib/matplotlib
X Title: Cycler passed as string for rc · Issue #7219 · matplotlib/matplotlib
Description: Hello, I think I have found a bug with cycler when It is passed as a string for rc parameters. Here is example code I have import pylab as plt ### WORKS plt.rc("axes",prop_cycle=plt.cycler('linestyle', ['-', (0,(5,5))]) ) plt.plot([1,2])...
Open Graph Description: Hello, I think I have found a bug with cycler when It is passed as a string for rc parameters. Here is example code I have import pylab as plt ### WORKS plt.rc("axes",prop_cycle=plt.cycler('linesty...
X Description: Hello, I think I have found a bug with cycler when It is passed as a string for rc parameters. Here is example code I have import pylab as plt ### WORKS plt.rc("axes",prop_cycle=plt.cycle...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7219
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cycler passed as string for rc","articleBody":"Hello, I think I have found a bug with cycler when It is passed as a string for rc parameters. Here is example code I have\n\n```\nimport pylab as plt\n\n### WORKS\nplt.rc(\"axes\",prop_cycle=plt.cycler('linestyle', ['-', (0,(5,5))]) )\nplt.plot([1,2])\nplt.plot([1,4])\nplt.show()\n\n### ERROR\n\nplt.rc(\"axes\",prop_cycle=\"cycler('linestyle', ['-', (0,(5,5))])\" )\nplt.plot([1,2])\nplt.plot([1,4])\nplt.show()\n```\n\nWhen I run this code the first part works but the second part produces a long error - [error.txt](https://github.com/matplotlib/matplotlib/files/509552/error.txt). I am using Ubuntu 16.04 and upgraded matplotlib to 1.5.3 with pip today. \n","author":{"url":"https://github.com/JanisErdmanis","@type":"Person","name":"JanisErdmanis"},"datePublished":"2016-10-04T21:24:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/7219/matplotlib/issues/7219"}
| 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:66a5cad4-d8a1-1241-0bf6-3f23de07ea72 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CD6:21C9D6:392D1:49B41:6A53D342 |
| html-safe-nonce | beff185a9bab2f4918cfe02fca248e4fa2ee3120092bd94bb3149498aded6c35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0Q2OjIxQzlENjozOTJEMTo0OUI0MTo2QTUzRDM0MiIsInZpc2l0b3JfaWQiOiI0NTEzODQ0MTI2ODgyNzE0NDM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 102a42b34cb07b55cb155ab5f1f8a4980ecd63b0fb292a88157655ada4916c83 |
| hovercard-subject-tag | issue:181008799 |
| 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/7219/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b78f78a5eada1d87ccf977a2ee8d31c111654b2266b0220175caa51aa9651173/matplotlib/matplotlib/issues/7219 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b78f78a5eada1d87ccf977a2ee8d31c111654b2266b0220175caa51aa9651173/matplotlib/matplotlib/issues/7219 |
| og:image:alt | Hello, I think I have found a bug with cycler when It is passed as a string for rc parameters. Here is example code I have import pylab as plt ### WORKS plt.rc("axes",prop_cycle=plt.cycler('linesty... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JanisErdmanis |
| 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