{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5766","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5766/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5766/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5766/events","html_url":"https://github.com/scikit-learn/scikit-learn/issues/5766","id":115783392,"number":5766,"title":"Excess code in PCA plotting tutorial","user":{"login":"hlin117","id":1865885,"avatar_url":"https://avatars.githubusercontent.com/u/1865885?v=3","gravatar_id":"","url":"https://api.github.com/users/hlin117","html_url":"https://github.com/hlin117","followers_url":"https://api.github.com/users/hlin117/followers","following_url":"https://api.github.com/users/hlin117/following{/other_user}","gists_url":"https://api.github.com/users/hlin117/gists{/gist_id}","starred_url":"https://api.github.com/users/hlin117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlin117/subscriptions","organizations_url":"https://api.github.com/users/hlin117/orgs","repos_url":"https://api.github.com/users/hlin117/repos","events_url":"https://api.github.com/users/hlin117/events{/privacy}","received_events_url":"https://api.github.com/users/hlin117/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-09T03:12:18Z","updated_at":"2015-11-11T15:58:21Z","closed_at":null,"body":"I'm concerned that there is excess code in the PCA plotting tutorial <a href=\"http://scikit-learn.org/stable/auto_examples/decomposition/plot_pca_iris.html\">here</a>. It seems that the following lines of code don't do anything to the plot:\r\n\r\n```\r\nx_surf = [X[:, 0].min(), X[:, 0].max(),\r\n          X[:, 0].min(), X[:, 0].max()]\r\ny_surf = [X[:, 0].max(), X[:, 0].max(),\r\n          X[:, 0].min(), X[:, 0].min()]\r\nx_surf = np.array(x_surf)\r\ny_surf = np.array(y_surf)\r\nv0 = pca.transform(pca.components_[[0]])\r\nv0 /= v0[-1]\r\nv1 = pca.transform(pca.components_[[1]])\r\nv1 /= v1[-1] \r\n```"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/155825807","html_url":"https://github.com/scikit-learn/scikit-learn/issues/5766#issuecomment-155825807","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5766","id":155825807,"user":{"login":"hlin117","id":1865885,"avatar_url":"https://avatars.githubusercontent.com/u/1865885?v=3","gravatar_id":"","url":"https://api.github.com/users/hlin117","html_url":"https://github.com/hlin117","followers_url":"https://api.github.com/users/hlin117/followers","following_url":"https://api.github.com/users/hlin117/following{/other_user}","gists_url":"https://api.github.com/users/hlin117/gists{/gist_id}","starred_url":"https://api.github.com/users/hlin117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlin117/subscriptions","organizations_url":"https://api.github.com/users/hlin117/orgs","repos_url":"https://api.github.com/users/hlin117/repos","events_url":"https://api.github.com/users/hlin117/events{/privacy}","received_events_url":"https://api.github.com/users/hlin117/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T15:58:21Z","updated_at":"2015-11-11T15:58:21Z","body":"I'm new to modifying documentation for scikit-learn. I've done a `git ls-files | iris` to try finding where `plot_pca_iris.html` is, but I haven't found it. Where is the location of the file that I need to modify?"}}