{"action":"opened","number":11388,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11388","id":193112692,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMTEyNjky","html_url":"https://github.com/matplotlib/matplotlib/pull/11388","diff_url":"https://github.com/matplotlib/matplotlib/pull/11388.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/11388.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11388","number":11388,"state":"open","locked":false,"title":"DOC: Constrained layout tutorial improvements","user":{"login":"ImportanceOfBeingErnest","id":23121882,"node_id":"MDQ6VXNlcjIzMTIxODgy","avatar_url":"https://avatars2.githubusercontent.com/u/23121882?v=4","gravatar_id":"","url":"https://api.github.com/users/ImportanceOfBeingErnest","html_url":"https://github.com/ImportanceOfBeingErnest","followers_url":"https://api.github.com/users/ImportanceOfBeingErnest/followers","following_url":"https://api.github.com/users/ImportanceOfBeingErnest/following{/other_user}","gists_url":"https://api.github.com/users/ImportanceOfBeingErnest/gists{/gist_id}","starred_url":"https://api.github.com/users/ImportanceOfBeingErnest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImportanceOfBeingErnest/subscriptions","organizations_url":"https://api.github.com/users/ImportanceOfBeingErnest/orgs","repos_url":"https://api.github.com/users/ImportanceOfBeingErnest/repos","events_url":"https://api.github.com/users/ImportanceOfBeingErnest/events{/privacy}","received_events_url":"https://api.github.com/users/ImportanceOfBeingErnest/received_events","type":"User","site_admin":false},"body":"## PR Summary\r\n\r\nIt wasn't clear to me that *constrained_layout* needs to be activated *before*  adding any subplots to a figure. I find this an important piece of information and added it in the [constrained layout guide](https://matplotlib.org/tutorials/intermediate/constrainedlayout_guide.html). Also see [minimal discussion](https://gitter.im/matplotlib/matplotlib?at=5b17fa9a99fa7f4c064d7a0b) on gitter.\r\n\r\nWhile doings so, I also improved some other parts of this guide, mainly adding or fixing links/references. \r\n\r\nWhen reading I came across a function [`.arange_subplotspecs`](https://github.com/matplotlib/matplotlib/search?q=arange_subplotspecs&unscoped_q=arange_subplotspecs) which seems to not exist anywhere in the code base. Suggestions on how to change that could still be incoorporated here.\r\n\r\nattn. @jklymak (who wrote that guide and should hence be the expert to review this.)\r\n\r\n## PR Checklist\r\n\r\n- [x] Documentation is sphinx and numpydoc compliant\r\n\r\n","created_at":"2018-06-06T19:13:52Z","updated_at":"2018-06-06T19:13:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11388/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11388/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/11388/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/38211bab258435fa354d2b680bedbc409bd05a54","head":{"label":"ImportanceOfBeingErnest:doc_constrained_layout_improvement","ref":"doc_constrained_layout_improvement","sha":"38211bab258435fa354d2b680bedbc409bd05a54","user":{"login":"ImportanceOfBeingErnest","id":23121882,"node_id":"MDQ6VXNlcjIzMTIxODgy","avatar_url":"https://avatars2.githubusercontent.com/u/23121882?v=4","gravatar_id":"","url":"https://api.github.com/users/ImportanceOfBeingErnest","html_url":"https://github.com/ImportanceOfBeingErnest","followers_url":"https://api.github.com/users/ImportanceOfBeingErnest/followers","following_url":"https://api.github.com/users/ImportanceOfBeingErnest/following{/other_user}","gists_url":"https://api.github.com/users/ImportanceOfBeingErnest/gists{/gist_id}","starred_url":"https://api.github.com/users/ImportanceOfBeingErnest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImportanceOfBeingErnest/subscriptions","organizations_url":"https://api.github.com/users/ImportanceOfBeingErnest/orgs","repos_url":"https://api.github.com/users/ImportanceOfBeingErnest/repos","events_url":"https://api.github.com/users/ImportanceOfBeingErnest/events{/privacy}","received_events_url":"https://api.github.com/users/ImportanceOfBeingErnest/received_events","type":"User","site_admin":false},"repo":{"id":100939689,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA5Mzk2ODk=","name":"matplotlib","full_name":"ImportanceOfBeingErnest/matplotlib","owner":{"login":"ImportanceOfBeingErnest","id":23121882,"node_id":"MDQ6VXNlcjIzMTIxODgy","avatar_url":"https://avatars2.githubusercontent.com/u/23121882?v=4","gravatar_id":"","url":"https://api.github.com/users/ImportanceOfBeingErnest","html_url":"https://github.com/ImportanceOfBeingErnest","followers_url":"https://api.github.com/users/ImportanceOfBeingErnest/followers","following_url":"https://api.github.com/users/ImportanceOfBeingErnest/following{/other_user}","gists_url":"https://api.github.com/users/ImportanceOfBeingErnest/gists{/gist_id}","starred_url":"https://api.github.com/users/ImportanceOfBeingErnest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImportanceOfBeingErnest/subscriptions","organizations_url":"https://api.github.com/users/ImportanceOfBeingErnest/orgs","repos_url":"https://api.github.com/users/ImportanceOfBeingErnest/repos","events_url":"https://api.github.com/users/ImportanceOfBeingErnest/events{/privacy}","received_events_url":"https://api.github.com/users/ImportanceOfBeingErnest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ImportanceOfBeingErnest/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib","forks_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/forks","keys_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/teams","hooks_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/events","assignees_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/tags","blobs_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/languages","stargazers_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/subscription","commits_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/merges","archive_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/downloads","issues_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/ImportanceOfBeingErnest/matplotlib/deployments","created_at":"2017-08-21T10:07:39Z","updated_at":"2018-06-06T08:53:58Z","pushed_at":"2018-06-06T18:59:58Z","git_url":"git://github.com/ImportanceOfBeingErnest/matplotlib.git","ssh_url":"git@github.com:ImportanceOfBeingErnest/matplotlib.git","clone_url":"https://github.com/ImportanceOfBeingErnest/matplotlib.git","svn_url":"https://github.com/ImportanceOfBeingErnest/matplotlib","homepage":"http://matplotlib.org/","size":327902,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matplotlib:master","ref":"master","sha":"6665bc739997adddcdba6c880b8e1ce568c88776","user":{"login":"matplotlib","id":215947,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTk0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/215947?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg1MTIy","name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxNTk0Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/215947?v=4","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":"2018-06-06T17:42:22Z","pushed_at":"2018-06-06T18:08:21Z","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":327950,"stargazers_count":7391,"watchers_count":7391,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3436,"mirror_url":null,"archived":false,"open_issues_count":1349,"license":null,"forks":3436,"open_issues":1349,"watchers":7391,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11388"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/11388"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/11388"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/11388/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11388/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/11388/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/38211bab258435fa354d2b680bedbc409bd05a54"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":55,"deletions":33,"changed_files":3}}
{"actor":{"display_login":"ImportanceOfBeingErnest"}}