{"action":"opened","number":4553,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4553","id":38465568,"html_url":"https://github.com/matplotlib/matplotlib/pull/4553","diff_url":"https://github.com/matplotlib/matplotlib/pull/4553.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/4553.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4553","number":4553,"state":"open","locked":false,"title":"BUG fix:  prevent 2D axis from showing up after calling Axes3D.cla()","user":{"login":"grlee77","id":6528957,"avatar_url":"https://avatars.githubusercontent.com/u/6528957?v=3","gravatar_id":"","url":"https://api.github.com/users/grlee77","html_url":"https://github.com/grlee77","followers_url":"https://api.github.com/users/grlee77/followers","following_url":"https://api.github.com/users/grlee77/following{/other_user}","gists_url":"https://api.github.com/users/grlee77/gists{/gist_id}","starred_url":"https://api.github.com/users/grlee77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grlee77/subscriptions","organizations_url":"https://api.github.com/users/grlee77/orgs","repos_url":"https://api.github.com/users/grlee77/repos","events_url":"https://api.github.com/users/grlee77/events{/privacy}","received_events_url":"https://api.github.com/users/grlee77/received_events","type":"User","site_admin":false},"body":"This fixes a bug in Axes3D where the call to .cla() erroneously results in a 2D axis being drawn.\r\n\r\nTo see the bug on current master, run the following code and note that a 2D rather than 3D axis is displayed\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\n\r\nax = plt.subplot(111, projection='3d')\r\na = np.random.rand(128, 3)\r\nax.scatter3D(a[:, 0], a[:, 1], a[:, 2], 'k.')\r\nax.set_axis_off()  #have to turn of the 3D axis to be able to see the 2D one introduced by cla()\r\nax.cla()\r\nplt.show()\r\n\r\n```\r\nHere is a screenshot of the output of the above:\r\n![cla_bug](https://cloud.githubusercontent.com/assets/6528957/8336563/6be353ca-1a73-11e5-99aa-c9e566c2d3ff.png)\r\n","created_at":"2015-06-24T17:19:07Z","updated_at":"2015-06-24T17:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4553/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4553/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4553/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/6f154138f8be42b39cf71a21a87e346eb6ac1164","head":{"label":"grlee77:axes3D_clear","ref":"axes3D_clear","sha":"6f154138f8be42b39cf71a21a87e346eb6ac1164","user":{"login":"grlee77","id":6528957,"avatar_url":"https://avatars.githubusercontent.com/u/6528957?v=3","gravatar_id":"","url":"https://api.github.com/users/grlee77","html_url":"https://github.com/grlee77","followers_url":"https://api.github.com/users/grlee77/followers","following_url":"https://api.github.com/users/grlee77/following{/other_user}","gists_url":"https://api.github.com/users/grlee77/gists{/gist_id}","starred_url":"https://api.github.com/users/grlee77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grlee77/subscriptions","organizations_url":"https://api.github.com/users/grlee77/orgs","repos_url":"https://api.github.com/users/grlee77/repos","events_url":"https://api.github.com/users/grlee77/events{/privacy}","received_events_url":"https://api.github.com/users/grlee77/received_events","type":"User","site_admin":false},"repo":{"id":37997700,"name":"matplotlib","full_name":"grlee77/matplotlib","owner":{"login":"grlee77","id":6528957,"avatar_url":"https://avatars.githubusercontent.com/u/6528957?v=3","gravatar_id":"","url":"https://api.github.com/users/grlee77","html_url":"https://github.com/grlee77","followers_url":"https://api.github.com/users/grlee77/followers","following_url":"https://api.github.com/users/grlee77/following{/other_user}","gists_url":"https://api.github.com/users/grlee77/gists{/gist_id}","starred_url":"https://api.github.com/users/grlee77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grlee77/subscriptions","organizations_url":"https://api.github.com/users/grlee77/orgs","repos_url":"https://api.github.com/users/grlee77/repos","events_url":"https://api.github.com/users/grlee77/events{/privacy}","received_events_url":"https://api.github.com/users/grlee77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/grlee77/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/grlee77/matplotlib","forks_url":"https://api.github.com/repos/grlee77/matplotlib/forks","keys_url":"https://api.github.com/repos/grlee77/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grlee77/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grlee77/matplotlib/teams","hooks_url":"https://api.github.com/repos/grlee77/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/grlee77/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/grlee77/matplotlib/events","assignees_url":"https://api.github.com/repos/grlee77/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/grlee77/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/grlee77/matplotlib/tags","blobs_url":"https://api.github.com/repos/grlee77/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grlee77/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grlee77/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/grlee77/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grlee77/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/grlee77/matplotlib/languages","stargazers_url":"https://api.github.com/repos/grlee77/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/grlee77/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/grlee77/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/grlee77/matplotlib/subscription","commits_url":"https://api.github.com/repos/grlee77/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/grlee77/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/grlee77/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/grlee77/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/grlee77/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/grlee77/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grlee77/matplotlib/merges","archive_url":"https://api.github.com/repos/grlee77/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grlee77/matplotlib/downloads","issues_url":"https://api.github.com/repos/grlee77/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/grlee77/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/grlee77/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/grlee77/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grlee77/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/grlee77/matplotlib/releases{/id}","created_at":"2015-06-24T16:48:24Z","updated_at":"2015-06-24T16:48:32Z","pushed_at":"2015-06-24T17:12:29Z","git_url":"git://github.com/grlee77/matplotlib.git","ssh_url":"git@github.com:grlee77/matplotlib.git","clone_url":"https://github.com/grlee77/matplotlib.git","svn_url":"https://github.com/grlee77/matplotlib","homepage":"http://matplotlib.org/","size":267915,"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":"42f09b6e223a1dff8df47261153bf5bb3e89a1b9","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}","created_at":"2011-02-19T03:17:12Z","updated_at":"2015-06-24T11:50:09Z","pushed_at":"2015-06-24T16:34:09Z","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":267915,"stargazers_count":2597,"watchers_count":2597,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1325,"mirror_url":null,"open_issues_count":539,"forks":1325,"open_issues":539,"watchers":2597,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4553"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/4553"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/4553"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/4553/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4553/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4553/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/6f154138f8be42b39cf71a21a87e346eb6ac1164"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}