{"action":"created","comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/62842584","id":62842584,"diff_hunk":"@@ -10,6 +10,7 @@\n \n _multiprocess_can_split_ = True\n \n+import pyparsing;","path":"lib/matplotlib/tests/__init__.py","position":4,"original_position":4,"commit_id":"5a3a8827b685c49853f4bedb9484d8ef4fae9c98","original_commit_id":"5a3a8827b685c49853f4bedb9484d8ef4fae9c98","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},"body":"Why?","created_at":"2016-05-11T12:58:21Z","updated_at":"2016-05-11T12:58:21Z","html_url":"https://github.com/matplotlib/matplotlib/pull/6400#discussion_r62842584","pull_request_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400","_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/62842584"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/6400#discussion_r62842584"},"pull_request":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400"}}},"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400","id":69663460,"html_url":"https://github.com/matplotlib/matplotlib/pull/6400","diff_url":"https://github.com/matplotlib/matplotlib/pull/6400.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/6400.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6400","number":6400,"state":"open","locked":false,"title":"encode_as and subplots_iterator","user":{"login":"prinsherbert","id":7011110,"avatar_url":"https://avatars.githubusercontent.com/u/7011110?v=3","gravatar_id":"","url":"https://api.github.com/users/prinsherbert","html_url":"https://github.com/prinsherbert","followers_url":"https://api.github.com/users/prinsherbert/followers","following_url":"https://api.github.com/users/prinsherbert/following{/other_user}","gists_url":"https://api.github.com/users/prinsherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/prinsherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prinsherbert/subscriptions","organizations_url":"https://api.github.com/users/prinsherbert/orgs","repos_url":"https://api.github.com/users/prinsherbert/repos","events_url":"https://api.github.com/users/prinsherbert/events{/privacy}","received_events_url":"https://api.github.com/users/prinsherbert/received_events","type":"User","site_admin":false},"body":"Added an {figure,.pyplot}.encode_as feature to encode a figure as a bytestring (not writing it to file), which can be practical in combination with the base64-package. Also addded a {figure,pyplot}.subplots_iterator which returns an iterator over subplots, which can be practical in for example ipynb's, where one wants to make many graphs and likes them to be 3 (or 5 or whatever) on a line.\r\n\r\nNote that subplots_iterator allows for some rather pythonic constructs, like\r\n\r\n    for data_set, axis in zip(  data_sets, pyplot.axis_iterator(nrows=1, ncols=1)  ):\r\n       axis.plot(data_set)\r\n       axis.set_....\r\n","created_at":"2016-05-11T12:29:43Z","updated_at":"2016-05-11T12:58:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdf3b7002453f5890733e5c37929470d04da5e9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6400/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/5a3a8827b685c49853f4bedb9484d8ef4fae9c98","head":{"label":"prinsherbert:master","ref":"master","sha":"5a3a8827b685c49853f4bedb9484d8ef4fae9c98","user":{"login":"prinsherbert","id":7011110,"avatar_url":"https://avatars.githubusercontent.com/u/7011110?v=3","gravatar_id":"","url":"https://api.github.com/users/prinsherbert","html_url":"https://github.com/prinsherbert","followers_url":"https://api.github.com/users/prinsherbert/followers","following_url":"https://api.github.com/users/prinsherbert/following{/other_user}","gists_url":"https://api.github.com/users/prinsherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/prinsherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prinsherbert/subscriptions","organizations_url":"https://api.github.com/users/prinsherbert/orgs","repos_url":"https://api.github.com/users/prinsherbert/repos","events_url":"https://api.github.com/users/prinsherbert/events{/privacy}","received_events_url":"https://api.github.com/users/prinsherbert/received_events","type":"User","site_admin":false},"repo":{"id":48422055,"name":"matplotlib","full_name":"prinsherbert/matplotlib","owner":{"login":"prinsherbert","id":7011110,"avatar_url":"https://avatars.githubusercontent.com/u/7011110?v=3","gravatar_id":"","url":"https://api.github.com/users/prinsherbert","html_url":"https://github.com/prinsherbert","followers_url":"https://api.github.com/users/prinsherbert/followers","following_url":"https://api.github.com/users/prinsherbert/following{/other_user}","gists_url":"https://api.github.com/users/prinsherbert/gists{/gist_id}","starred_url":"https://api.github.com/users/prinsherbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prinsherbert/subscriptions","organizations_url":"https://api.github.com/users/prinsherbert/orgs","repos_url":"https://api.github.com/users/prinsherbert/repos","events_url":"https://api.github.com/users/prinsherbert/events{/privacy}","received_events_url":"https://api.github.com/users/prinsherbert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prinsherbert/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/prinsherbert/matplotlib","forks_url":"https://api.github.com/repos/prinsherbert/matplotlib/forks","keys_url":"https://api.github.com/repos/prinsherbert/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prinsherbert/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prinsherbert/matplotlib/teams","hooks_url":"https://api.github.com/repos/prinsherbert/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/prinsherbert/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/prinsherbert/matplotlib/events","assignees_url":"https://api.github.com/repos/prinsherbert/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/prinsherbert/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/prinsherbert/matplotlib/tags","blobs_url":"https://api.github.com/repos/prinsherbert/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prinsherbert/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prinsherbert/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/prinsherbert/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prinsherbert/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/prinsherbert/matplotlib/languages","stargazers_url":"https://api.github.com/repos/prinsherbert/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/prinsherbert/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/prinsherbert/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/prinsherbert/matplotlib/subscription","commits_url":"https://api.github.com/repos/prinsherbert/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/prinsherbert/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/prinsherbert/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/prinsherbert/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/prinsherbert/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/prinsherbert/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prinsherbert/matplotlib/merges","archive_url":"https://api.github.com/repos/prinsherbert/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prinsherbert/matplotlib/downloads","issues_url":"https://api.github.com/repos/prinsherbert/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/prinsherbert/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/prinsherbert/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/prinsherbert/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prinsherbert/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/prinsherbert/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/prinsherbert/matplotlib/deployments","created_at":"2015-12-22T09:10:37Z","updated_at":"2016-05-11T12:25:11Z","pushed_at":"2016-05-11T12:24:45Z","git_url":"git://github.com/prinsherbert/matplotlib.git","ssh_url":"git@github.com:prinsherbert/matplotlib.git","clone_url":"https://github.com/prinsherbert/matplotlib.git","svn_url":"https://github.com/prinsherbert/matplotlib","homepage":"http://matplotlib.org/","size":284626,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matplotlib:master","ref":"master","sha":"b16e6f3d6007e668599e83e0a87e1174b1fd8884","user":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/matplotlib/matplotlib/deployments","created_at":"2011-02-19T03:17:12Z","updated_at":"2016-05-11T11:05:27Z","pushed_at":"2016-05-11T12:45:05Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":393926,"stargazers_count":3602,"watchers_count":3602,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1821,"mirror_url":null,"open_issues_count":872,"forks":1821,"open_issues":872,"watchers":3602,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/6400"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/6400"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/6400/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6400/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/5a3a8827b685c49853f4bedb9484d8ef4fae9c98"}}}}