{"action":"created","comment":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/22874206","id":22874206,"diff_hunk":"@@ -5624,29 +5634,23 @@ function printAll(m2t, env, fid)\n     versionString = '';\n end\n % ==============================================================================\n-function isHG2 = isHG2(m2t)\n+function tf = isHG2(m2t)\n % Checks if graphics system is HG2 (true) or HG1 (false).\n % HG1 : MATLAB up to R2014a and currently all OCTAVE versions\n % HG2 : MATLAB starting from R2014b (version 8.4)\n-    isHG2 = false;\n-    if strcmpi(m2t.env,'MATLAB') && ...\n-        ~isVersionBelow(m2t.env, m2t.envVersion, [8,4])\n-        isHG2 = true;\n-    end\n+    tf = strcmpi(m2t.env,'MATLAB') && ...\n+        ~isVersionBelow(m2t.env, m2t.envVersion, [8,4]);\n end\n % ==============================================================================\n-function isBelow = isVersionBelow(env, versionA, versionB)\n+function tf = isVersionBelow(env, versionA, versionB)","path":"src/matlab2tikz.m","position":433,"original_position":433,"commit_id":"ef129a3fc1ad3551c82fdd0ec44326b525c4757f","original_commit_id":"ef129a3fc1ad3551c82fdd0ec44326b525c4757f","user":{"login":"PeterPablo","id":4340267,"avatar_url":"https://avatars.githubusercontent.com/u/4340267?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterPablo","html_url":"https://github.com/PeterPablo","followers_url":"https://api.github.com/users/PeterPablo/followers","following_url":"https://api.github.com/users/PeterPablo/following{/other_user}","gists_url":"https://api.github.com/users/PeterPablo/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterPablo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterPablo/subscriptions","organizations_url":"https://api.github.com/users/PeterPablo/orgs","repos_url":"https://api.github.com/users/PeterPablo/repos","events_url":"https://api.github.com/users/PeterPablo/events{/privacy}","received_events_url":"https://api.github.com/users/PeterPablo/received_events","type":"User","site_admin":false},"body":"may be at a comment somewhere that `tf` means `truefalse` (boolean) for those helper functions.","created_at":"2015-01-13T16:36:07Z","updated_at":"2015-01-13T16:36:07Z","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/523#discussion_r22874206","pull_request_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523","_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/22874206"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/523#discussion_r22874206"},"pull_request":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523"}}},"pull_request":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523","id":27280275,"html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/523","diff_url":"https://github.com/matlab2tikz/matlab2tikz/pull/523.diff","patch_url":"https://github.com/matlab2tikz/matlab2tikz/pull/523.patch","issue_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/523","number":523,"state":"open","locked":false,"title":"3D axis detected from view","user":{"login":"okomarov","id":3731173,"avatar_url":"https://avatars.githubusercontent.com/u/3731173?v=3","gravatar_id":"","url":"https://api.github.com/users/okomarov","html_url":"https://github.com/okomarov","followers_url":"https://api.github.com/users/okomarov/followers","following_url":"https://api.github.com/users/okomarov/following{/other_user}","gists_url":"https://api.github.com/users/okomarov/gists{/gist_id}","starred_url":"https://api.github.com/users/okomarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okomarov/subscriptions","organizations_url":"https://api.github.com/users/okomarov/orgs","repos_url":"https://api.github.com/users/okomarov/repos","events_url":"https://api.github.com/users/okomarov/events{/privacy}","received_events_url":"https://api.github.com/users/okomarov/received_events","type":"User","site_admin":false},"body":"Detect 3D axis through the elevation of `view()` rather than the plotting heuristic of the children. The latter is also subject to spuriously force a flattened 3D axis when the z coordinates are always all 0. With the new approach, the data is trimmed if the axis is 2D.\r\n\r\nThis approach is more robust and reduces the amount of .tex code produced.","created_at":"2015-01-13T15:45:58Z","updated_at":"2015-01-13T16:36:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdc49031d1890d8b7765b2fd59439a9e0a5de8d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523/commits","review_comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523/comments","review_comment_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/{number}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/523/comments","statuses_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/ef129a3fc1ad3551c82fdd0ec44326b525c4757f","head":{"label":"okomarov:is3D","ref":"is3D","sha":"ef129a3fc1ad3551c82fdd0ec44326b525c4757f","user":{"login":"okomarov","id":3731173,"avatar_url":"https://avatars.githubusercontent.com/u/3731173?v=3","gravatar_id":"","url":"https://api.github.com/users/okomarov","html_url":"https://github.com/okomarov","followers_url":"https://api.github.com/users/okomarov/followers","following_url":"https://api.github.com/users/okomarov/following{/other_user}","gists_url":"https://api.github.com/users/okomarov/gists{/gist_id}","starred_url":"https://api.github.com/users/okomarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okomarov/subscriptions","organizations_url":"https://api.github.com/users/okomarov/orgs","repos_url":"https://api.github.com/users/okomarov/repos","events_url":"https://api.github.com/users/okomarov/events{/privacy}","received_events_url":"https://api.github.com/users/okomarov/received_events","type":"User","site_admin":false},"repo":{"id":25203376,"name":"matlab2tikz","full_name":"okomarov/matlab2tikz","owner":{"login":"okomarov","id":3731173,"avatar_url":"https://avatars.githubusercontent.com/u/3731173?v=3","gravatar_id":"","url":"https://api.github.com/users/okomarov","html_url":"https://github.com/okomarov","followers_url":"https://api.github.com/users/okomarov/followers","following_url":"https://api.github.com/users/okomarov/following{/other_user}","gists_url":"https://api.github.com/users/okomarov/gists{/gist_id}","starred_url":"https://api.github.com/users/okomarov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okomarov/subscriptions","organizations_url":"https://api.github.com/users/okomarov/orgs","repos_url":"https://api.github.com/users/okomarov/repos","events_url":"https://api.github.com/users/okomarov/events{/privacy}","received_events_url":"https://api.github.com/users/okomarov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/okomarov/matlab2tikz","description":"A converter that takes a MATLAB(R) figure and spits out a TikZ (Pgfplots) figure for smooth integration into LaTeX. ","fork":true,"url":"https://api.github.com/repos/okomarov/matlab2tikz","forks_url":"https://api.github.com/repos/okomarov/matlab2tikz/forks","keys_url":"https://api.github.com/repos/okomarov/matlab2tikz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okomarov/matlab2tikz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okomarov/matlab2tikz/teams","hooks_url":"https://api.github.com/repos/okomarov/matlab2tikz/hooks","issue_events_url":"https://api.github.com/repos/okomarov/matlab2tikz/issues/events{/number}","events_url":"https://api.github.com/repos/okomarov/matlab2tikz/events","assignees_url":"https://api.github.com/repos/okomarov/matlab2tikz/assignees{/user}","branches_url":"https://api.github.com/repos/okomarov/matlab2tikz/branches{/branch}","tags_url":"https://api.github.com/repos/okomarov/matlab2tikz/tags","blobs_url":"https://api.github.com/repos/okomarov/matlab2tikz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okomarov/matlab2tikz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okomarov/matlab2tikz/git/refs{/sha}","trees_url":"https://api.github.com/repos/okomarov/matlab2tikz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okomarov/matlab2tikz/statuses/{sha}","languages_url":"https://api.github.com/repos/okomarov/matlab2tikz/languages","stargazers_url":"https://api.github.com/repos/okomarov/matlab2tikz/stargazers","contributors_url":"https://api.github.com/repos/okomarov/matlab2tikz/contributors","subscribers_url":"https://api.github.com/repos/okomarov/matlab2tikz/subscribers","subscription_url":"https://api.github.com/repos/okomarov/matlab2tikz/subscription","commits_url":"https://api.github.com/repos/okomarov/matlab2tikz/commits{/sha}","git_commits_url":"https://api.github.com/repos/okomarov/matlab2tikz/git/commits{/sha}","comments_url":"https://api.github.com/repos/okomarov/matlab2tikz/comments{/number}","issue_comment_url":"https://api.github.com/repos/okomarov/matlab2tikz/issues/comments/{number}","contents_url":"https://api.github.com/repos/okomarov/matlab2tikz/contents/{+path}","compare_url":"https://api.github.com/repos/okomarov/matlab2tikz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okomarov/matlab2tikz/merges","archive_url":"https://api.github.com/repos/okomarov/matlab2tikz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okomarov/matlab2tikz/downloads","issues_url":"https://api.github.com/repos/okomarov/matlab2tikz/issues{/number}","pulls_url":"https://api.github.com/repos/okomarov/matlab2tikz/pulls{/number}","milestones_url":"https://api.github.com/repos/okomarov/matlab2tikz/milestones{/number}","notifications_url":"https://api.github.com/repos/okomarov/matlab2tikz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okomarov/matlab2tikz/labels{/name}","releases_url":"https://api.github.com/repos/okomarov/matlab2tikz/releases{/id}","created_at":"2014-10-14T11:33:38Z","updated_at":"2014-12-01T01:08:24Z","pushed_at":"2015-01-13T15:42:12Z","git_url":"git://github.com/okomarov/matlab2tikz.git","ssh_url":"git@github.com:okomarov/matlab2tikz.git","clone_url":"https://github.com/okomarov/matlab2tikz.git","svn_url":"https://github.com/okomarov/matlab2tikz","homepage":"http://www.mathworks.com/matlabcentral/fileexchange/22022-matlab2tikz","size":6433,"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":"dac4f2a1b4a502a82ee79251e7d6417b9e577455","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":"A converter that takes a MATLAB(R) figure and spits out a TikZ (Pgfplots) figure 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-01-10T18:48:20Z","pushed_at":"2015-01-12T17:22:02Z","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":7933,"stargazers_count":247,"watchers_count":247,"language":"Matlab","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":71,"mirror_url":null,"open_issues_count":68,"forks":71,"open_issues":68,"watchers":247,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/523"},"issue":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/523"},"comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/523/comments"},"review_comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523/comments"},"review_comment":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/523/commits"},"statuses":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/ef129a3fc1ad3551c82fdd0ec44326b525c4757f"}}}}