{"action":"created","comment":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/42839569","id":42839569,"diff_hunk":"@@ -3842,8 +3845,52 @@ function warnFacetedInterp(m2t)\n     [m2t, drawOptions] = setColor(m2t, h, drawOptions, 'fill', faceColor);\n end\n % ==============================================================================\n+function [m2t,str] = drawBaseline(m2t,hparent,isVertical)\n+    str = '';\n+    baseValue = get(hparent, 'BaseValue');\n+    if isOff(get(hparent,'ShowBaseLine')) || ~isHG2() || baseValue ~= 0\n+        return\n+    end\n+    \n+    if ~exist('isVertical','var')","path":"src/matlab2tikz.m","position":21,"original_position":21,"commit_id":"3a5fb9387d2728f96bf8553f0cbe105528c94f99","original_commit_id":"3a5fb9387d2728f96bf8553f0cbe105528c94f99","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":"Please put this at the top of the function, that makes sure that `isVertical` is available in the whole function.","created_at":"2015-10-23T07:33:51Z","updated_at":"2015-10-23T07:33:51Z","html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/798#discussion_r42839569","pull_request_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798","_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments/42839569"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/798#discussion_r42839569"},"pull_request":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798"}}},"pull_request":{"url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798","id":48531640,"html_url":"https://github.com/matlab2tikz/matlab2tikz/pull/798","diff_url":"https://github.com/matlab2tikz/matlab2tikz/pull/798.diff","patch_url":"https://github.com/matlab2tikz/matlab2tikz/pull/798.patch","issue_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/798","number":798,"state":"open","locked":false,"title":"drawBaseline for barplots and stemseries","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":"Now draws baseline in barplots and stemseries plots:\r\n\r\nACID(32)\r\n![capture](https://cloud.githubusercontent.com/assets/3731173/10682105/39ce0cee-7929-11e5-8e92-c0f4e98a6f6f.PNG)\r\n","created_at":"2015-10-23T00:56:59Z","updated_at":"2015-10-23T07:33:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3a538aae0b97e1c28125f3fd45b2d7b9f783342","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798/commits","review_comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798/comments","review_comment_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/798/comments","statuses_url":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/3a5fb9387d2728f96bf8553f0cbe105528c94f99","head":{"label":"okomarov:baseline","ref":"baseline","sha":"3a5fb9387d2728f96bf8553f0cbe105528c94f99","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-10-23T01:23:17Z","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":5398,"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":"6860893f726f30266a2ba7c4231d926755119e7e","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-23T01:35:23Z","pushed_at":"2015-10-23T01:23:18Z","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":10770,"stargazers_count":313,"watchers_count":313,"language":"Matlab","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"open_issues_count":109,"forks":89,"open_issues":109,"watchers":313,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798"},"html":{"href":"https://github.com/matlab2tikz/matlab2tikz/pull/798"},"issue":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/798"},"comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/issues/798/comments"},"review_comments":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798/comments"},"review_comment":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/pulls/798/commits"},"statuses":{"href":"https://api.github.com/repos/matlab2tikz/matlab2tikz/statuses/3a5fb9387d2728f96bf8553f0cbe105528c94f99"}}}}