{"action":"created","comment":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/39903454","id":39903454,"diff_hunk":"@@ -35,7 +35,9 @@\n \n \"\"\"\n \n-fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(6, 3))\n+fig = plt.figure(figsize=(6,3))\n+ax1 = fig.add_subplot(1, 2, 1, adjustable='box-forced')\n+ax2 = fig.add_subplot(1, 2, 2, sharex = ax1, sharey = ax1, adjustable='box-forced')","path":"doc/examples/applications/plot_coins_segmentation.py","position":7,"original_position":7,"commit_id":"8e885f4c7c6fed93dc8418bd97b3016c68fc0c4c","original_commit_id":"8e885f4c7c6fed93dc8418bd97b3016c68fc0c4c","user":{"login":"JDWarner","id":2184487,"avatar_url":"https://avatars.githubusercontent.com/u/2184487?v=3","gravatar_id":"","url":"https://api.github.com/users/JDWarner","html_url":"https://github.com/JDWarner","followers_url":"https://api.github.com/users/JDWarner/followers","following_url":"https://api.github.com/users/JDWarner/following{/other_user}","gists_url":"https://api.github.com/users/JDWarner/gists{/gist_id}","starred_url":"https://api.github.com/users/JDWarner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDWarner/subscriptions","organizations_url":"https://api.github.com/users/JDWarner/orgs","repos_url":"https://api.github.com/users/JDWarner/repos","events_url":"https://api.github.com/users/JDWarner/events{/privacy}","received_events_url":"https://api.github.com/users/JDWarner/received_events","type":"User","site_admin":false},"body":"We recently standardized the plot creation API to `fig, (ax0, ax1, ...) = plt.subplots(...)`, which is the preferred Matplotlib style. There are a couple different ways this is implemented in this PR; I prefer the style shown in `plot_morphology.py` to the style here as it continues the use of `plt.subplots`.","created_at":"2015-09-18T21:33:19Z","updated_at":"2015-09-18T21:33:19Z","html_url":"https://github.com/scikit-image/scikit-image/pull/1704#discussion_r39903454","pull_request_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704","_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments/39903454"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1704#discussion_r39903454"},"pull_request":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704"}}},"pull_request":{"url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704","id":44756363,"html_url":"https://github.com/scikit-image/scikit-image/pull/1704","diff_url":"https://github.com/scikit-image/scikit-image/pull/1704.diff","patch_url":"https://github.com/scikit-image/scikit-image/pull/1704.patch","issue_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1704","number":1704,"state":"open","locked":false,"title":"Example subplots share axes","user":{"login":"MartinSavc","id":13271582,"avatar_url":"https://avatars.githubusercontent.com/u/13271582?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinSavc","html_url":"https://github.com/MartinSavc","followers_url":"https://api.github.com/users/MartinSavc/followers","following_url":"https://api.github.com/users/MartinSavc/following{/other_user}","gists_url":"https://api.github.com/users/MartinSavc/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinSavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinSavc/subscriptions","organizations_url":"https://api.github.com/users/MartinSavc/orgs","repos_url":"https://api.github.com/users/MartinSavc/repos","events_url":"https://api.github.com/users/MartinSavc/events{/privacy}","received_events_url":"https://api.github.com/users/MartinSavc/received_events","type":"User","site_admin":false},"body":"Fixes #1686","created_at":"2015-09-11T08:09:19Z","updated_at":"2015-09-18T21:33:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba6f2a4b155a5c3c7e1ef23e379d6a81d5271748","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704/commits","review_comments_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704/comments","review_comment_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/1704/comments","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/8e885f4c7c6fed93dc8418bd97b3016c68fc0c4c","head":{"label":"MartinSavc:example_subplots_share_axes","ref":"example_subplots_share_axes","sha":"8e885f4c7c6fed93dc8418bd97b3016c68fc0c4c","user":{"login":"MartinSavc","id":13271582,"avatar_url":"https://avatars.githubusercontent.com/u/13271582?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinSavc","html_url":"https://github.com/MartinSavc","followers_url":"https://api.github.com/users/MartinSavc/followers","following_url":"https://api.github.com/users/MartinSavc/following{/other_user}","gists_url":"https://api.github.com/users/MartinSavc/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinSavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinSavc/subscriptions","organizations_url":"https://api.github.com/users/MartinSavc/orgs","repos_url":"https://api.github.com/users/MartinSavc/repos","events_url":"https://api.github.com/users/MartinSavc/events{/privacy}","received_events_url":"https://api.github.com/users/MartinSavc/received_events","type":"User","site_admin":false},"repo":{"id":38872769,"name":"scikit-image","full_name":"MartinSavc/scikit-image","owner":{"login":"MartinSavc","id":13271582,"avatar_url":"https://avatars.githubusercontent.com/u/13271582?v=3","gravatar_id":"","url":"https://api.github.com/users/MartinSavc","html_url":"https://github.com/MartinSavc","followers_url":"https://api.github.com/users/MartinSavc/followers","following_url":"https://api.github.com/users/MartinSavc/following{/other_user}","gists_url":"https://api.github.com/users/MartinSavc/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinSavc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinSavc/subscriptions","organizations_url":"https://api.github.com/users/MartinSavc/orgs","repos_url":"https://api.github.com/users/MartinSavc/repos","events_url":"https://api.github.com/users/MartinSavc/events{/privacy}","received_events_url":"https://api.github.com/users/MartinSavc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MartinSavc/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":true,"url":"https://api.github.com/repos/MartinSavc/scikit-image","forks_url":"https://api.github.com/repos/MartinSavc/scikit-image/forks","keys_url":"https://api.github.com/repos/MartinSavc/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MartinSavc/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MartinSavc/scikit-image/teams","hooks_url":"https://api.github.com/repos/MartinSavc/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/MartinSavc/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/MartinSavc/scikit-image/events","assignees_url":"https://api.github.com/repos/MartinSavc/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/MartinSavc/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/MartinSavc/scikit-image/tags","blobs_url":"https://api.github.com/repos/MartinSavc/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MartinSavc/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MartinSavc/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/MartinSavc/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MartinSavc/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/MartinSavc/scikit-image/languages","stargazers_url":"https://api.github.com/repos/MartinSavc/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/MartinSavc/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/MartinSavc/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/MartinSavc/scikit-image/subscription","commits_url":"https://api.github.com/repos/MartinSavc/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/MartinSavc/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/MartinSavc/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/MartinSavc/scikit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/MartinSavc/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/MartinSavc/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MartinSavc/scikit-image/merges","archive_url":"https://api.github.com/repos/MartinSavc/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MartinSavc/scikit-image/downloads","issues_url":"https://api.github.com/repos/MartinSavc/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/MartinSavc/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/MartinSavc/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/MartinSavc/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MartinSavc/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/MartinSavc/scikit-image/releases{/id}","created_at":"2015-07-10T09:33:14Z","updated_at":"2015-07-10T09:33:16Z","pushed_at":"2015-09-18T15:54:24Z","git_url":"git://github.com/MartinSavc/scikit-image.git","ssh_url":"git@github.com:MartinSavc/scikit-image.git","clone_url":"https://github.com/MartinSavc/scikit-image.git","svn_url":"https://github.com/MartinSavc/scikit-image","homepage":"http://scikit-image.org","size":39786,"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":"scikit-image:master","ref":"master","sha":"33646e0a609793371bbcf7a0b4e37188734c978c","user":{"login":"scikit-image","id":897180,"avatar_url":"https://avatars.githubusercontent.com/u/897180?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-image","html_url":"https://github.com/scikit-image","followers_url":"https://api.github.com/users/scikit-image/followers","following_url":"https://api.github.com/users/scikit-image/following{/other_user}","gists_url":"https://api.github.com/users/scikit-image/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-image/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-image/subscriptions","organizations_url":"https://api.github.com/users/scikit-image/orgs","repos_url":"https://api.github.com/users/scikit-image/repos","events_url":"https://api.github.com/users/scikit-image/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-image/received_events","type":"Organization","site_admin":false},"repo":{"id":2014929,"name":"scikit-image","full_name":"scikit-image/scikit-image","owner":{"login":"scikit-image","id":897180,"avatar_url":"https://avatars.githubusercontent.com/u/897180?v=3","gravatar_id":"","url":"https://api.github.com/users/scikit-image","html_url":"https://github.com/scikit-image","followers_url":"https://api.github.com/users/scikit-image/followers","following_url":"https://api.github.com/users/scikit-image/following{/other_user}","gists_url":"https://api.github.com/users/scikit-image/gists{/gist_id}","starred_url":"https://api.github.com/users/scikit-image/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scikit-image/subscriptions","organizations_url":"https://api.github.com/users/scikit-image/orgs","repos_url":"https://api.github.com/users/scikit-image/repos","events_url":"https://api.github.com/users/scikit-image/events{/privacy}","received_events_url":"https://api.github.com/users/scikit-image/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scikit-image/scikit-image","description":"Image Processing SciKit (Toolbox for SciPy)","fork":false,"url":"https://api.github.com/repos/scikit-image/scikit-image","forks_url":"https://api.github.com/repos/scikit-image/scikit-image/forks","keys_url":"https://api.github.com/repos/scikit-image/scikit-image/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scikit-image/scikit-image/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scikit-image/scikit-image/teams","hooks_url":"https://api.github.com/repos/scikit-image/scikit-image/hooks","issue_events_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/events{/number}","events_url":"https://api.github.com/repos/scikit-image/scikit-image/events","assignees_url":"https://api.github.com/repos/scikit-image/scikit-image/assignees{/user}","branches_url":"https://api.github.com/repos/scikit-image/scikit-image/branches{/branch}","tags_url":"https://api.github.com/repos/scikit-image/scikit-image/tags","blobs_url":"https://api.github.com/repos/scikit-image/scikit-image/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scikit-image/scikit-image/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scikit-image/scikit-image/git/refs{/sha}","trees_url":"https://api.github.com/repos/scikit-image/scikit-image/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scikit-image/scikit-image/statuses/{sha}","languages_url":"https://api.github.com/repos/scikit-image/scikit-image/languages","stargazers_url":"https://api.github.com/repos/scikit-image/scikit-image/stargazers","contributors_url":"https://api.github.com/repos/scikit-image/scikit-image/contributors","subscribers_url":"https://api.github.com/repos/scikit-image/scikit-image/subscribers","subscription_url":"https://api.github.com/repos/scikit-image/scikit-image/subscription","commits_url":"https://api.github.com/repos/scikit-image/scikit-image/commits{/sha}","git_commits_url":"https://api.github.com/repos/scikit-image/scikit-image/git/commits{/sha}","comments_url":"https://api.github.com/repos/scikit-image/scikit-image/comments{/number}","issue_comment_url":"https://api.github.com/repos/scikit-image/scikit-image/issues/comments{/number}","contents_url":"https://api.github.com/repos/scikit-image/scikit-image/contents/{+path}","compare_url":"https://api.github.com/repos/scikit-image/scikit-image/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scikit-image/scikit-image/merges","archive_url":"https://api.github.com/repos/scikit-image/scikit-image/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scikit-image/scikit-image/downloads","issues_url":"https://api.github.com/repos/scikit-image/scikit-image/issues{/number}","pulls_url":"https://api.github.com/repos/scikit-image/scikit-image/pulls{/number}","milestones_url":"https://api.github.com/repos/scikit-image/scikit-image/milestones{/number}","notifications_url":"https://api.github.com/repos/scikit-image/scikit-image/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scikit-image/scikit-image/labels{/name}","releases_url":"https://api.github.com/repos/scikit-image/scikit-image/releases{/id}","created_at":"2011-07-07T22:07:20Z","updated_at":"2015-09-17T07:48:06Z","pushed_at":"2015-09-18T15:17:40Z","git_url":"git://github.com/scikit-image/scikit-image.git","ssh_url":"git@github.com:scikit-image/scikit-image.git","clone_url":"https://github.com/scikit-image/scikit-image.git","svn_url":"https://github.com/scikit-image/scikit-image","homepage":"http://scikit-image.org","size":73785,"stargazers_count":804,"watchers_count":804,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":424,"mirror_url":null,"open_issues_count":216,"forks":424,"open_issues":216,"watchers":804,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704"},"html":{"href":"https://github.com/scikit-image/scikit-image/pull/1704"},"issue":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1704"},"comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/issues/1704/comments"},"review_comments":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704/comments"},"review_comment":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scikit-image/scikit-image/pulls/1704/commits"},"statuses":{"href":"https://api.github.com/repos/scikit-image/scikit-image/statuses/8e885f4c7c6fed93dc8418bd97b3016c68fc0c4c"}}}}