{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7219","repository_url":"https://api.github.com/repos/matplotlib/matplotlib","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7219/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7219/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7219/events","html_url":"https://github.com/matplotlib/matplotlib/issues/7219","id":181008799,"number":7219,"title":"Cycler passed as string for rc","user":{"login":"akels","id":2894312,"avatar_url":"https://avatars.githubusercontent.com/u/2894312?v=3","gravatar_id":"","url":"https://api.github.com/users/akels","html_url":"https://github.com/akels","followers_url":"https://api.github.com/users/akels/followers","following_url":"https://api.github.com/users/akels/following{/other_user}","gists_url":"https://api.github.com/users/akels/gists{/gist_id}","starred_url":"https://api.github.com/users/akels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akels/subscriptions","organizations_url":"https://api.github.com/users/akels/orgs","repos_url":"https://api.github.com/users/akels/repos","events_url":"https://api.github.com/users/akels/events{/privacy}","received_events_url":"https://api.github.com/users/akels/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/20","html_url":"https://github.com/matplotlib/matplotlib/milestones/2.0.1%20(next%20bug%20fix%20release)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/20/labels","id":1306895,"number":20,"title":"2.0.1 (next bug fix release)","description":"","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":169,"closed_issues":49,"state":"open","created_at":"2015-09-15T17:47:44Z","updated_at":"2016-10-04T23:10:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-04T21:24:15Z","updated_at":"2016-10-04T23:26:03Z","closed_at":null,"body":"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\r\n\r\n    import pylab as plt\r\n\r\n    ### WORKS\r\n    plt.rc(\"axes\",prop_cycle=plt.cycler('linestyle', ['-', (0,(5,5))]) )\r\n    plt.plot([1,2])\r\n    plt.plot([1,4])\r\n    plt.show()\r\n\r\n    ### ERROR\r\n\r\n    plt.rc(\"axes\",prop_cycle=\"cycler('linestyle', ['-', (0,(5,5))])\" )\r\n    plt.plot([1,2])\r\n    plt.plot([1,4])\r\n    plt.show()\r\n\r\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.  \r\n"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/251542373","html_url":"https://github.com/matplotlib/matplotlib/issues/7219#issuecomment-251542373","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7219","id":251542373,"user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T23:26:03Z","updated_at":"2016-10-04T23:26:03Z","body":"I hope you encountered this by reading in a style file / putting this in `matplotlibrc`.\r\n\r\nIt looks like the validation/parsing on this is not good enough.  This particular case is a bit tricky as the linestyle _can_ be a list of strings so treating this as a list of strings seems reasonable.  "}}
{"actor":{"display_login":"tacaswell"}}