{"action":"created","comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/97166420","pull_request_review_id":17775834,"id":97166420,"diff_hunk":"@@ -1,21 +1,31 @@\n \"\"\"\n-This example demonstrates the \"bmh\" style, which is the design used in the\n-Bayesian Methods for Hackers online book.\n+========================================\n+Bayesian Methods for Hackers style sheet\n+========================================\n+\n+This example demonstrates the style used in the Bayesian Methods for Hackers\n+[1]_ online book.\n+\n+.. [1] http://camdavidsonpilon.github.io/Probabilistic-Programming-and-Bayesian-Methods-for-Hackers/\n+\n \"\"\"\n from numpy.random import beta\n import matplotlib.pyplot as plt\n \n plt.style.use('bmh')\n \n \n-def plot_beta_hist(a, b):\n-    plt.hist(beta(a, b, size=10000), histtype=\"stepfilled\",\n-             bins=25, alpha=0.8, normed=True)\n-    return\n+def plot_beta_hist(ax, a, b):\n+    ax.hist(beta(a, b, size=10000), histtype=\"stepfilled\",\n+            bins=25, alpha=0.8, normed=True)\n+    return ax","path":"examples/style_sheets/plot_bmh.py","position":27,"original_position":27,"commit_id":"69eee924c89a54a1e8ac287637d549a8d485ad69","original_commit_id":"69eee924c89a54a1e8ac287637d549a8d485ad69","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"body":"Remove this line; the return value is not used for anything.","created_at":"2017-01-20T22:12:53Z","updated_at":"2017-01-20T22:14:40Z","html_url":"https://github.com/matplotlib/matplotlib/pull/7890#discussion_r97166420","pull_request_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890","_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/97166420"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/7890#discussion_r97166420"},"pull_request":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890"}}},"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890","id":102430873,"html_url":"https://github.com/matplotlib/matplotlib/pull/7890","diff_url":"https://github.com/matplotlib/matplotlib/pull/7890.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/7890.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7890","number":7890,"state":"open","locked":false,"title":"[MRG+2] DOC Convert style sheet examples to MEP12","user":{"login":"naoyak","id":3279641,"avatar_url":"https://avatars.githubusercontent.com/u/3279641?v=3","gravatar_id":"","url":"https://api.github.com/users/naoyak","html_url":"https://github.com/naoyak","followers_url":"https://api.github.com/users/naoyak/followers","following_url":"https://api.github.com/users/naoyak/following{/other_user}","gists_url":"https://api.github.com/users/naoyak/gists{/gist_id}","starred_url":"https://api.github.com/users/naoyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoyak/subscriptions","organizations_url":"https://api.github.com/users/naoyak/orgs","repos_url":"https://api.github.com/users/naoyak/repos","events_url":"https://api.github.com/users/naoyak/events{/privacy}","received_events_url":"https://api.github.com/users/naoyak/received_events","type":"User","site_admin":false},"body":"Ref: #7206 \r\n\r\nAdded titles to docstrings for sphinx-gallery and updated some code syntax.","created_at":"2017-01-20T09:42:31Z","updated_at":"2017-01-20T22:14:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8585a205ae49afb178b76953b85a95765914cb1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/7890/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/69eee924c89a54a1e8ac287637d549a8d485ad69","head":{"label":"naoyak:mep12-style-sheets","ref":"mep12-style-sheets","sha":"69eee924c89a54a1e8ac287637d549a8d485ad69","user":{"login":"naoyak","id":3279641,"avatar_url":"https://avatars.githubusercontent.com/u/3279641?v=3","gravatar_id":"","url":"https://api.github.com/users/naoyak","html_url":"https://github.com/naoyak","followers_url":"https://api.github.com/users/naoyak/followers","following_url":"https://api.github.com/users/naoyak/following{/other_user}","gists_url":"https://api.github.com/users/naoyak/gists{/gist_id}","starred_url":"https://api.github.com/users/naoyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoyak/subscriptions","organizations_url":"https://api.github.com/users/naoyak/orgs","repos_url":"https://api.github.com/users/naoyak/repos","events_url":"https://api.github.com/users/naoyak/events{/privacy}","received_events_url":"https://api.github.com/users/naoyak/received_events","type":"User","site_admin":false},"repo":{"id":77886138,"name":"matplotlib","full_name":"naoyak/matplotlib","owner":{"login":"naoyak","id":3279641,"avatar_url":"https://avatars.githubusercontent.com/u/3279641?v=3","gravatar_id":"","url":"https://api.github.com/users/naoyak","html_url":"https://github.com/naoyak","followers_url":"https://api.github.com/users/naoyak/followers","following_url":"https://api.github.com/users/naoyak/following{/other_user}","gists_url":"https://api.github.com/users/naoyak/gists{/gist_id}","starred_url":"https://api.github.com/users/naoyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naoyak/subscriptions","organizations_url":"https://api.github.com/users/naoyak/orgs","repos_url":"https://api.github.com/users/naoyak/repos","events_url":"https://api.github.com/users/naoyak/events{/privacy}","received_events_url":"https://api.github.com/users/naoyak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/naoyak/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/naoyak/matplotlib","forks_url":"https://api.github.com/repos/naoyak/matplotlib/forks","keys_url":"https://api.github.com/repos/naoyak/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/naoyak/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/naoyak/matplotlib/teams","hooks_url":"https://api.github.com/repos/naoyak/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/naoyak/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/naoyak/matplotlib/events","assignees_url":"https://api.github.com/repos/naoyak/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/naoyak/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/naoyak/matplotlib/tags","blobs_url":"https://api.github.com/repos/naoyak/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/naoyak/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/naoyak/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/naoyak/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/naoyak/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/naoyak/matplotlib/languages","stargazers_url":"https://api.github.com/repos/naoyak/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/naoyak/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/naoyak/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/naoyak/matplotlib/subscription","commits_url":"https://api.github.com/repos/naoyak/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/naoyak/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/naoyak/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/naoyak/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/naoyak/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/naoyak/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/naoyak/matplotlib/merges","archive_url":"https://api.github.com/repos/naoyak/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/naoyak/matplotlib/downloads","issues_url":"https://api.github.com/repos/naoyak/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/naoyak/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/naoyak/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/naoyak/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/naoyak/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/naoyak/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/naoyak/matplotlib/deployments","created_at":"2017-01-03T05:16:25Z","updated_at":"2017-01-03T05:16:35Z","pushed_at":"2017-01-20T20:35:58Z","git_url":"git://github.com/naoyak/matplotlib.git","ssh_url":"git@github.com:naoyak/matplotlib.git","clone_url":"https://github.com/naoyak/matplotlib.git","svn_url":"https://github.com/naoyak/matplotlib","homepage":"http://matplotlib.org/","size":298161,"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":"194afed22801bac75f81f2d2e58a430f3760e2eb","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":"2017-01-20T13:34:14Z","pushed_at":"2017-01-20T22:05:17Z","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":298163,"stargazers_count":4678,"watchers_count":4678,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2268,"mirror_url":null,"open_issues_count":1082,"forks":2268,"open_issues":1082,"watchers":4678,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/7890"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/7890"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/7890/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/7890/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/69eee924c89a54a1e8ac287637d549a8d485ad69"}}}}
{"actor":{"display_login":"QuLogic"}}