{"action":"created","comment":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/41736738","id":41736738,"diff_hunk":"@@ -206,8 +203,9 @@ function pruneOutsideBox(meta, handle)\n   %hasMarkers = ~strcmp(marker,'none');\n   hasLines = true;","path":"src/cleanfigure.m","position":34,"original_position":53,"commit_id":"1bf6ad4eef4b8c1f3967c7ded2fe2fa7da6b067f","original_commit_id":"2d4ca290146d8107519aa7fa1dbb365516dbb1fe","user":{"login":"egeerardyn","id":177360,"avatar_url":"https://avatars.githubusercontent.com/u/177360?v=3","gravatar_id":"","url":"https://api.github.com/users/egeerardyn","html_url":"https://github.com/egeerardyn","followers_url":"https://api.github.com/users/egeerardyn/followers","following_url":"https://api.github.com/users/egeerardyn/following{/other_user}","gists_url":"https://api.github.com/users/egeerardyn/gists{/gist_id}","starred_url":"https://api.github.com/users/egeerardyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egeerardyn/subscriptions","organizations_url":"https://api.github.com/users/egeerardyn/orgs","repos_url":"https://api.github.com/users/egeerardyn/repos","events_url":"https://api.github.com/users/egeerardyn/events{/privacy}","received_events_url":"https://api.github.com/users/egeerardyn/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-10-12T09:11:37Z","updated_at":"2015-10-12T09:11:37Z","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/787#discussion_r41736738","pull_request_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787","_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/41736738"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/787#discussion_r41736738"},"pull_request":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787"}}},"pull_request":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787","id":47266778,"html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/787","diff_url":"https://github.com/matlab2tikz/matlab2tikz/pull/787.diff","patch_url":"https://github.com/matlab2tikz/matlab2tikz/pull/787.patch","issue_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/787","number":787,"state":"open","locked":false,"title":"Cleanfigure restructure","user":{"login":"miscco","id":3017120,"avatar_url":"https://avatars.githubusercontent.com/u/3017120?v=3","gravatar_id":"","url":"https://api.github.com/users/miscco","html_url":"https://github.com/miscco","followers_url":"https://api.github.com/users/miscco/followers","following_url":"https://api.github.com/users/miscco/following{/other_user}","gists_url":"https://api.github.com/users/miscco/gists{/gist_id}","starred_url":"https://api.github.com/users/miscco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miscco/subscriptions","organizations_url":"https://api.github.com/users/miscco/orgs","repos_url":"https://api.github.com/users/miscco/repos","events_url":"https://api.github.com/users/miscco/events{/privacy}","received_events_url":"https://api.github.com/users/miscco/received_events","type":"User","site_admin":false},"body":"So when I was writing the 3D projection part in #779, I realized, that I had to do a lot of restructuring. \r\n\r\nTo keep it \"cleaner\" I decided to pull it out and make a new PR. So there are some new functions:\r\n\r\n```matlab\r\n[xData, yData] = getVisualData(meta, handle)\r\n[xLim, yLim] = getVisualLimits(meta)\r\n\r\nreplaceData(handle, id_replace, dataReplace)\r\ninsertData(handle, id_insert, dataInsert)\r\nremoveData(meta, handle, id_remove)\r\n\r\nremoveNaNs(meta, handle)\r\n```\r\n\r\nI believe their names are rather self explanatory. To get them working i had to restructure our simplification functions slightly. In the end I decided, that every function should generate lists of indices e.g. id_replace for all the data that should be replaced and removed and so on.\r\n\r\nThis unifies the data handling and should help us to maintain the stuff easier.\r\n\r\nI have also renamed some of the output when it was a mask rather out","created_at":"2015-10-09T12:40:04Z","updated_at":"2015-10-12T09:11:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae7acd01b0dacad4ce3bea65406bd0a064bb42dc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787/commits","review_comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787/comments","review_comment_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/787/comments","statuses_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/1bf6ad4eef4b8c1f3967c7ded2fe2fa7da6b067f","head":{"label":"miscco:Cleanfigure_Restructure","ref":"Cleanfigure_Restructure","sha":"1bf6ad4eef4b8c1f3967c7ded2fe2fa7da6b067f","user":{"login":"miscco","id":3017120,"avatar_url":"https://avatars.githubusercontent.com/u/3017120?v=3","gravatar_id":"","url":"https://api.github.com/users/miscco","html_url":"https://github.com/miscco","followers_url":"https://api.github.com/users/miscco/followers","following_url":"https://api.github.com/users/miscco/following{/other_user}","gists_url":"https://api.github.com/users/miscco/gists{/gist_id}","starred_url":"https://api.github.com/users/miscco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miscco/subscriptions","organizations_url":"https://api.github.com/users/miscco/orgs","repos_url":"https://api.github.com/users/miscco/repos","events_url":"https://api.github.com/users/miscco/events{/privacy}","received_events_url":"https://api.github.com/users/miscco/received_events","type":"User","site_admin":false},"repo":{"id":41079586,"name":"matlab2tikz","full_name":"miscco/matlab2tikz","owner":{"login":"miscco","id":3017120,"avatar_url":"https://avatars.githubusercontent.com/u/3017120?v=3","gravatar_id":"","url":"https://api.github.com/users/miscco","html_url":"https://github.com/miscco","followers_url":"https://api.github.com/users/miscco/followers","following_url":"https://api.github.com/users/miscco/following{/other_user}","gists_url":"https://api.github.com/users/miscco/gists{/gist_id}","starred_url":"https://api.github.com/users/miscco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miscco/subscriptions","organizations_url":"https://api.github.com/users/miscco/orgs","repos_url":"https://api.github.com/users/miscco/repos","events_url":"https://api.github.com/users/miscco/events{/privacy}","received_events_url":"https://api.github.com/users/miscco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miscco/matlab2tikz","description":"This program converts MATLAB®/Octave figures to TikZ/pgfplots figures for smooth integration into LaTeX.","fork":true,"url":"https://api.github.com/repos/miscco/matlab2tikz","forks_url":"https://api.github.com/repos/miscco/matlab2tikz/forks","keys_url":"https://api.github.com/repos/miscco/matlab2tikz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miscco/matlab2tikz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miscco/matlab2tikz/teams","hooks_url":"https://api.github.com/repos/miscco/matlab2tikz/hooks","issue_events_url":"https://api.github.com/repos/miscco/matlab2tikz/issues/events{/number}","events_url":"https://api.github.com/repos/miscco/matlab2tikz/events","assignees_url":"https://api.github.com/repos/miscco/matlab2tikz/assignees{/user}","branches_url":"https://api.github.com/repos/miscco/matlab2tikz/branches{/branch}","tags_url":"https://api.github.com/repos/miscco/matlab2tikz/tags","blobs_url":"https://api.github.com/repos/miscco/matlab2tikz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miscco/matlab2tikz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miscco/matlab2tikz/git/refs{/sha}","trees_url":"https://api.github.com/repos/miscco/matlab2tikz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miscco/matlab2tikz/statuses/{sha}","languages_url":"https://api.github.com/repos/miscco/matlab2tikz/languages","stargazers_url":"https://api.github.com/repos/miscco/matlab2tikz/stargazers","contributors_url":"https://api.github.com/repos/miscco/matlab2tikz/contributors","subscribers_url":"https://api.github.com/repos/miscco/matlab2tikz/subscribers","subscription_url":"https://api.github.com/repos/miscco/matlab2tikz/subscription","commits_url":"https://api.github.com/repos/miscco/matlab2tikz/commits{/sha}","git_commits_url":"https://api.github.com/repos/miscco/matlab2tikz/git/commits{/sha}","comments_url":"https://api.github.com/repos/miscco/matlab2tikz/comments{/number}","issue_comment_url":"https://api.github.com/repos/miscco/matlab2tikz/issues/comments{/number}","contents_url":"https://api.github.com/repos/miscco/matlab2tikz/contents/{+path}","compare_url":"https://api.github.com/repos/miscco/matlab2tikz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miscco/matlab2tikz/merges","archive_url":"https://api.github.com/repos/miscco/matlab2tikz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miscco/matlab2tikz/downloads","issues_url":"https://api.github.com/repos/miscco/matlab2tikz/issues{/number}","pulls_url":"https://api.github.com/repos/miscco/matlab2tikz/pulls{/number}","milestones_url":"https://api.github.com/repos/miscco/matlab2tikz/milestones{/number}","notifications_url":"https://api.github.com/repos/miscco/matlab2tikz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miscco/matlab2tikz/labels{/name}","releases_url":"https://api.github.com/repos/miscco/matlab2tikz/releases{/id}","created_at":"2015-08-20T06:33:40Z","updated_at":"2015-08-20T06:33:41Z","pushed_at":"2015-10-12T07:36:06Z","git_url":"git://github.com/miscco/matlab2tikz.git","ssh_url":"git@github.com:miscco/matlab2tikz.git","clone_url":"https://github.com/miscco/matlab2tikz.git","svn_url":"https://github.com/miscco/matlab2tikz","homepage":"http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz","size":7208,"stargazers_count":0,"watchers_count":0,"language":"Matlab","has_issues":false,"has_downloads":false,"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":"matlab2tikz:develop","ref":"develop","sha":"5d4cee99ab245f4af4d6e3480e8cd6cb297bc817","user":{"login":"matlab2tikz","id":10036397,"avatar_url":"https://avatars.githubusercontent.com/u/10036397?v=3","gravatar_id":"","url":"https://api.github.com/users/matlab2tikz","html_url":"https://github.com/matlab2tikz","followers_url":"https://api.github.com/users/matlab2tikz/followers","following_url":"https://api.github.com/users/matlab2tikz/following{/other_user}","gists_url":"https://api.github.com/users/matlab2tikz/gists{/gist_id}","starred_url":"https://api.github.com/users/matlab2tikz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matlab2tikz/subscriptions","organizations_url":"https://api.github.com/users/matlab2tikz/orgs","repos_url":"https://api.github.com/users/matlab2tikz/repos","events_url":"https://api.github.com/users/matlab2tikz/events{/privacy}","received_events_url":"https://api.github.com/users/matlab2tikz/received_events","type":"Organization","site_admin":false},"repo":{"id":579842,"name":"matlab2tikz","full_name":"matlab2tikz/matlab2tikz","owner":{"login":"matlab2tikz","id":10036397,"avatar_url":"https://avatars.githubusercontent.com/u/10036397?v=3","gravatar_id":"","url":"https://api.github.com/users/matlab2tikz","html_url":"https://github.com/matlab2tikz","followers_url":"https://api.github.com/users/matlab2tikz/followers","following_url":"https://api.github.com/users/matlab2tikz/following{/other_user}","gists_url":"https://api.github.com/users/matlab2tikz/gists{/gist_id}","starred_url":"https://api.github.com/users/matlab2tikz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matlab2tikz/subscriptions","organizations_url":"https://api.github.com/users/matlab2tikz/orgs","repos_url":"https://api.github.com/users/matlab2tikz/repos","events_url":"https://api.github.com/users/matlab2tikz/events{/privacy}","received_events_url":"https://api.github.com/users/matlab2tikz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matlab2tikz/matlab2tikz","description":"This program converts MATLAB®/Octave figures to TikZ/pgfplots figures for smooth integration into LaTeX.","fork":false,"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz","forks_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/forks","keys_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/teams","hooks_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/hooks","issue_events_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/events{/number}","events_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/events","assignees_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/assignees{/user}","branches_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/branches{/branch}","tags_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/tags","blobs_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/refs{/sha}","trees_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/{sha}","languages_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/languages","stargazers_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/stargazers","contributors_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/contributors","subscribers_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/subscribers","subscription_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/subscription","commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/commits{/sha}","git_commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/git/commits{/sha}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/comments{/number}","issue_comment_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/comments{/number}","contents_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/contents/{+path}","compare_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/merges","archive_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/downloads","issues_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues{/number}","pulls_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls{/number}","milestones_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/milestones{/number}","notifications_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/labels{/name}","releases_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/releases{/id}","created_at":"2010-03-25T22:52:27Z","updated_at":"2015-10-08T20:00:59Z","pushed_at":"2015-10-12T08:34:06Z","git_url":"git://github.com/matlab2tikz/matlab2tikz.git","ssh_url":"git@github.com:matlab2tikz/matlab2tikz.git","clone_url":"https://github.com/matlab2tikz/matlab2tikz.git","svn_url":"https://github.com/matlab2tikz/matlab2tikz","homepage":"http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz","size":10528,"stargazers_count":309,"watchers_count":309,"language":"Matlab","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":105,"forks":90,"open_issues":105,"watchers":309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/787"},"issue":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/787"},"comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/787/comments"},"review_comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787/comments"},"review_comment":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/787/commits"},"statuses":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/1bf6ad4eef4b8c1f3967c7ded2fe2fa7da6b067f"}}}}