{"action":"created","comment":{"url":"https://api.github.com/repos/scipy/scipy/pulls/comments/25804574","id":25804574,"diff_hunk":"@@ -1464,6 +1464,36 @@ class RegularGridInterpolator(object):\n \n     .. versionadded:: 0.14\n \n+    Example\n+    -------\n+\n+    Evaluate a simple example function on the points of a 3D grid:\n+\n+    >>> from scipy.interpolate import RegularGridInterpolator\n+    >>> def f(x,y,z):\n+    >>>     return 2 * x**3 + 3 * y**2 - z\n+    >>> x = np.linspace(1, 4, 11)\n+    >>> y = np.linspace(4, 7, 22)\n+    >>> z = np.linspace(7, 9, 33)\n+    >>> data = np.zeros((11, 22, 33))\n+    >>> for i in range(11):\n+    >>>     for j in range(22):","path":"scipy/interpolate/interpolate.py","position":17,"original_position":17,"commit_id":"b32681c7411cbd048b4ba516cd29a0368187748c","original_commit_id":"b32681c7411cbd048b4ba516cd29a0368187748c","user":{"login":"pv","id":35046,"avatar_url":"https://avatars.githubusercontent.com/u/35046?v=3","gravatar_id":"","url":"https://api.github.com/users/pv","html_url":"https://github.com/pv","followers_url":"https://api.github.com/users/pv/followers","following_url":"https://api.github.com/users/pv/following{/other_user}","gists_url":"https://api.github.com/users/pv/gists{/gist_id}","starred_url":"https://api.github.com/users/pv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pv/subscriptions","organizations_url":"https://api.github.com/users/pv/orgs","repos_url":"https://api.github.com/users/pv/repos","events_url":"https://api.github.com/users/pv/events{/privacy}","received_events_url":"https://api.github.com/users/pv/received_events","type":"User","site_admin":false},"body":"meshgrid(x, y, z, indexing='ij', sparse=True)\n","created_at":"2015-03-04T19:23:10Z","updated_at":"2015-03-04T19:23:10Z","html_url":"https://github.com/scipy/scipy/pull/4593#discussion_r25804574","pull_request_url":"https://api.github.com/repos/scipy/scipy/pulls/4593","_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments/25804574"},"html":{"href":"https://github.com/scipy/scipy/pull/4593#discussion_r25804574"},"pull_request":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4593"}}},"pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/4593","id":30489939,"html_url":"https://github.com/scipy/scipy/pull/4593","diff_url":"https://github.com/scipy/scipy/pull/4593.diff","patch_url":"https://github.com/scipy/scipy/pull/4593.patch","issue_url":"https://api.github.com/repos/scipy/scipy/issues/4593","number":4593,"state":"open","locked":false,"title":"DOC - add example to RegularGridInterpolator","user":{"login":"sbyrnes321","id":1857674,"avatar_url":"https://avatars.githubusercontent.com/u/1857674?v=3","gravatar_id":"","url":"https://api.github.com/users/sbyrnes321","html_url":"https://github.com/sbyrnes321","followers_url":"https://api.github.com/users/sbyrnes321/followers","following_url":"https://api.github.com/users/sbyrnes321/following{/other_user}","gists_url":"https://api.github.com/users/sbyrnes321/gists{/gist_id}","starred_url":"https://api.github.com/users/sbyrnes321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbyrnes321/subscriptions","organizations_url":"https://api.github.com/users/sbyrnes321/orgs","repos_url":"https://api.github.com/users/sbyrnes321/repos","events_url":"https://api.github.com/users/sbyrnes321/events{/privacy}","received_events_url":"https://api.github.com/users/sbyrnes321/received_events","type":"User","site_admin":false},"body":"I just posted an example of RegularGridInterpolator [on stackoverflow this morning](http://stackoverflow.com/questions/21836067/interpolate-3d-volume-with-numpy-and-or-scipy/28858633#28858633), and then it occurred to me that it would be nice to have a similar example usage in the docs.\r\n\r\n(Before accepting this PR, someone should please check that it builds properly with the doc-generator and that it passes doctests if applicable. Sorry that I am not doing that myself ... it seems complicated to set up. :-P)","created_at":"2015-03-04T18:14:48Z","updated_at":"2015-03-04T19:23:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afce355836e22bb5a3248a355558cb333527c66a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scipy/scipy/pulls/4593/commits","review_comments_url":"https://api.github.com/repos/scipy/scipy/pulls/4593/comments","review_comment_url":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/4593/comments","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/b32681c7411cbd048b4ba516cd29a0368187748c","head":{"label":"sbyrnes321:Example-RegularGridInterpolator","ref":"Example-RegularGridInterpolator","sha":"b32681c7411cbd048b4ba516cd29a0368187748c","user":{"login":"sbyrnes321","id":1857674,"avatar_url":"https://avatars.githubusercontent.com/u/1857674?v=3","gravatar_id":"","url":"https://api.github.com/users/sbyrnes321","html_url":"https://github.com/sbyrnes321","followers_url":"https://api.github.com/users/sbyrnes321/followers","following_url":"https://api.github.com/users/sbyrnes321/following{/other_user}","gists_url":"https://api.github.com/users/sbyrnes321/gists{/gist_id}","starred_url":"https://api.github.com/users/sbyrnes321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbyrnes321/subscriptions","organizations_url":"https://api.github.com/users/sbyrnes321/orgs","repos_url":"https://api.github.com/users/sbyrnes321/repos","events_url":"https://api.github.com/users/sbyrnes321/events{/privacy}","received_events_url":"https://api.github.com/users/sbyrnes321/received_events","type":"User","site_admin":false},"repo":{"id":31668827,"name":"scipy","full_name":"sbyrnes321/scipy","owner":{"login":"sbyrnes321","id":1857674,"avatar_url":"https://avatars.githubusercontent.com/u/1857674?v=3","gravatar_id":"","url":"https://api.github.com/users/sbyrnes321","html_url":"https://github.com/sbyrnes321","followers_url":"https://api.github.com/users/sbyrnes321/followers","following_url":"https://api.github.com/users/sbyrnes321/following{/other_user}","gists_url":"https://api.github.com/users/sbyrnes321/gists{/gist_id}","starred_url":"https://api.github.com/users/sbyrnes321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbyrnes321/subscriptions","organizations_url":"https://api.github.com/users/sbyrnes321/orgs","repos_url":"https://api.github.com/users/sbyrnes321/repos","events_url":"https://api.github.com/users/sbyrnes321/events{/privacy}","received_events_url":"https://api.github.com/users/sbyrnes321/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbyrnes321/scipy","description":"Scipy library main repository","fork":true,"url":"https://api.github.com/repos/sbyrnes321/scipy","forks_url":"https://api.github.com/repos/sbyrnes321/scipy/forks","keys_url":"https://api.github.com/repos/sbyrnes321/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbyrnes321/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbyrnes321/scipy/teams","hooks_url":"https://api.github.com/repos/sbyrnes321/scipy/hooks","issue_events_url":"https://api.github.com/repos/sbyrnes321/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/sbyrnes321/scipy/events","assignees_url":"https://api.github.com/repos/sbyrnes321/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/sbyrnes321/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/sbyrnes321/scipy/tags","blobs_url":"https://api.github.com/repos/sbyrnes321/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbyrnes321/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbyrnes321/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbyrnes321/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbyrnes321/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/sbyrnes321/scipy/languages","stargazers_url":"https://api.github.com/repos/sbyrnes321/scipy/stargazers","contributors_url":"https://api.github.com/repos/sbyrnes321/scipy/contributors","subscribers_url":"https://api.github.com/repos/sbyrnes321/scipy/subscribers","subscription_url":"https://api.github.com/repos/sbyrnes321/scipy/subscription","commits_url":"https://api.github.com/repos/sbyrnes321/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbyrnes321/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbyrnes321/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbyrnes321/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/sbyrnes321/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/sbyrnes321/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbyrnes321/scipy/merges","archive_url":"https://api.github.com/repos/sbyrnes321/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbyrnes321/scipy/downloads","issues_url":"https://api.github.com/repos/sbyrnes321/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/sbyrnes321/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/sbyrnes321/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/sbyrnes321/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbyrnes321/scipy/labels{/name}","releases_url":"https://api.github.com/repos/sbyrnes321/scipy/releases{/id}","created_at":"2015-03-04T17:03:42Z","updated_at":"2015-03-04T17:03:50Z","pushed_at":"2015-03-04T18:12:16Z","git_url":"git://github.com/sbyrnes321/scipy.git","ssh_url":"git@github.com:sbyrnes321/scipy.git","clone_url":"https://github.com/sbyrnes321/scipy.git","svn_url":"https://github.com/sbyrnes321/scipy","homepage":"http://scipy.org/scipylib/","size":83802,"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":"scipy:master","ref":"master","sha":"dc080ec245e963916ecc7fae940d2cf90d13680c","user":{"login":"scipy","id":288277,"avatar_url":"https://avatars.githubusercontent.com/u/288277?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"repo":{"id":1460385,"name":"scipy","full_name":"scipy/scipy","owner":{"login":"scipy","id":288277,"avatar_url":"https://avatars.githubusercontent.com/u/288277?v=3","gravatar_id":"","url":"https://api.github.com/users/scipy","html_url":"https://github.com/scipy","followers_url":"https://api.github.com/users/scipy/followers","following_url":"https://api.github.com/users/scipy/following{/other_user}","gists_url":"https://api.github.com/users/scipy/gists{/gist_id}","starred_url":"https://api.github.com/users/scipy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scipy/subscriptions","organizations_url":"https://api.github.com/users/scipy/orgs","repos_url":"https://api.github.com/users/scipy/repos","events_url":"https://api.github.com/users/scipy/events{/privacy}","received_events_url":"https://api.github.com/users/scipy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scipy/scipy","description":"Scipy library main repository","fork":false,"url":"https://api.github.com/repos/scipy/scipy","forks_url":"https://api.github.com/repos/scipy/scipy/forks","keys_url":"https://api.github.com/repos/scipy/scipy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scipy/scipy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scipy/scipy/teams","hooks_url":"https://api.github.com/repos/scipy/scipy/hooks","issue_events_url":"https://api.github.com/repos/scipy/scipy/issues/events{/number}","events_url":"https://api.github.com/repos/scipy/scipy/events","assignees_url":"https://api.github.com/repos/scipy/scipy/assignees{/user}","branches_url":"https://api.github.com/repos/scipy/scipy/branches{/branch}","tags_url":"https://api.github.com/repos/scipy/scipy/tags","blobs_url":"https://api.github.com/repos/scipy/scipy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scipy/scipy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scipy/scipy/git/refs{/sha}","trees_url":"https://api.github.com/repos/scipy/scipy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scipy/scipy/statuses/{sha}","languages_url":"https://api.github.com/repos/scipy/scipy/languages","stargazers_url":"https://api.github.com/repos/scipy/scipy/stargazers","contributors_url":"https://api.github.com/repos/scipy/scipy/contributors","subscribers_url":"https://api.github.com/repos/scipy/scipy/subscribers","subscription_url":"https://api.github.com/repos/scipy/scipy/subscription","commits_url":"https://api.github.com/repos/scipy/scipy/commits{/sha}","git_commits_url":"https://api.github.com/repos/scipy/scipy/git/commits{/sha}","comments_url":"https://api.github.com/repos/scipy/scipy/comments{/number}","issue_comment_url":"https://api.github.com/repos/scipy/scipy/issues/comments{/number}","contents_url":"https://api.github.com/repos/scipy/scipy/contents/{+path}","compare_url":"https://api.github.com/repos/scipy/scipy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scipy/scipy/merges","archive_url":"https://api.github.com/repos/scipy/scipy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scipy/scipy/downloads","issues_url":"https://api.github.com/repos/scipy/scipy/issues{/number}","pulls_url":"https://api.github.com/repos/scipy/scipy/pulls{/number}","milestones_url":"https://api.github.com/repos/scipy/scipy/milestones{/number}","notifications_url":"https://api.github.com/repos/scipy/scipy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scipy/scipy/labels{/name}","releases_url":"https://api.github.com/repos/scipy/scipy/releases{/id}","created_at":"2011-03-09T18:52:03Z","updated_at":"2015-03-04T13:32:12Z","pushed_at":"2015-03-04T13:32:12Z","git_url":"git://github.com/scipy/scipy.git","ssh_url":"git@github.com:scipy/scipy.git","clone_url":"https://github.com/scipy/scipy.git","svn_url":"https://github.com/scipy/scipy","homepage":"http://scipy.org/scipylib/","size":83802,"stargazers_count":1523,"watchers_count":1523,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":803,"mirror_url":null,"open_issues_count":785,"forks":803,"open_issues":785,"watchers":1523,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4593"},"html":{"href":"https://github.com/scipy/scipy/pull/4593"},"issue":{"href":"https://api.github.com/repos/scipy/scipy/issues/4593"},"comments":{"href":"https://api.github.com/repos/scipy/scipy/issues/4593/comments"},"review_comments":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4593/comments"},"review_comment":{"href":"https://api.github.com/repos/scipy/scipy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scipy/scipy/pulls/4593/commits"},"statuses":{"href":"https://api.github.com/repos/scipy/scipy/statuses/b32681c7411cbd048b4ba516cd29a0368187748c"}}}}