{"action":"created","comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/56451687","id":56451687,"diff_hunk":"@@ -2419,24 +2421,37 @@ def stem(self, *args, **kwargs):\n             basefmt = kwargs.pop('basefmt', args[2])\n         except IndexError:\n             basefmt = kwargs.pop('basefmt', 'r-')\n+        try:\n+            orientation = kwargs.pop('orientation', args[3])\n+        except IndexError:\n+            orientation = kwargs.pop('orientation', 'vertical')\n \n         bottom = kwargs.pop('bottom', None)\n         label = kwargs.pop('label', None)\n-\n-        markerline, = self.plot(x, y, markerfmt, label=\"_nolegend_\")\n+        if (orientation == \"vertical\"):\n+            markerline, = self.plot(x, y, markerfmt, label=\"_nolegend_\")\n+        elif (orientation == \"horizontal\"):\n+            markerline, = self.plot(y, x, markerfmt, label=\"_nolegend_\")\n \n         if bottom is None:\n             bottom = 0\n \n         stemlines = []\n         for thisx, thisy in zip(x, y):\n-            l, = self.plot([thisx, thisx], [bottom, thisy], linefmt,\n+            if (orientation == \"vertical\"):\n+                l, = self.plot([thisx, thisx], [bottom, thisy], linefmt,\n+                           label=\"_nolegend_\")","path":"lib/matplotlib/axes/_axes.py","position":39,"original_position":39,"commit_id":"dd834fbe2de3e3be68eeb64e61e93603a27a292d","original_commit_id":"dd834fbe2de3e3be68eeb64e61e93603a27a292d","user":{"login":"QuLogic","id":302469,"avatar_url":"https://avatars.githubusercontent.com/u/302469?v=3","gravatar_id":"","url":"https://api.github.com/users/QuLogic","html_url":"https://github.com/QuLogic","followers_url":"https://api.github.com/users/QuLogic/followers","following_url":"https://api.github.com/users/QuLogic/following{/other_user}","gists_url":"https://api.github.com/users/QuLogic/gists{/gist_id}","starred_url":"https://api.github.com/users/QuLogic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QuLogic/subscriptions","organizations_url":"https://api.github.com/users/QuLogic/orgs","repos_url":"https://api.github.com/users/QuLogic/repos","events_url":"https://api.github.com/users/QuLogic/events{/privacy}","received_events_url":"https://api.github.com/users/QuLogic/received_events","type":"User","site_admin":false},"body":"Unaligned with opening parenthesis.","created_at":"2016-03-17T03:38:41Z","updated_at":"2016-03-17T03:38:41Z","html_url":"https://github.com/matplotlib/matplotlib/pull/6172#discussion_r56451687","pull_request_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172","_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/56451687"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/6172#discussion_r56451687"},"pull_request":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172"}}},"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172","id":63159530,"html_url":"https://github.com/matplotlib/matplotlib/pull/6172","diff_url":"https://github.com/matplotlib/matplotlib/pull/6172.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/6172.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6172","number":6172,"state":"open","locked":false,"title":"Implemented issue #5856","user":{"login":"ItsRLuo","id":5624595,"avatar_url":"https://avatars.githubusercontent.com/u/5624595?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsRLuo","html_url":"https://github.com/ItsRLuo","followers_url":"https://api.github.com/users/ItsRLuo/followers","following_url":"https://api.github.com/users/ItsRLuo/following{/other_user}","gists_url":"https://api.github.com/users/ItsRLuo/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsRLuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsRLuo/subscriptions","organizations_url":"https://api.github.com/users/ItsRLuo/orgs","repos_url":"https://api.github.com/users/ItsRLuo/repos","events_url":"https://api.github.com/users/ItsRLuo/events{/privacy}","received_events_url":"https://api.github.com/users/ItsRLuo/received_events","type":"User","site_admin":false},"body":"Added a parameter in the argument: orientation that takes \"horizontal\" or \"vertical\" like @anntzer suggested.","created_at":"2016-03-17T01:01:01Z","updated_at":"2016-03-17T03:38:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eca7c346fbe05f6d29da7e5eee42484832b37977","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/6172/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/dd834fbe2de3e3be68eeb64e61e93603a27a292d","head":{"label":"ItsRLuo:master","ref":"master","sha":"dd834fbe2de3e3be68eeb64e61e93603a27a292d","user":{"login":"ItsRLuo","id":5624595,"avatar_url":"https://avatars.githubusercontent.com/u/5624595?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsRLuo","html_url":"https://github.com/ItsRLuo","followers_url":"https://api.github.com/users/ItsRLuo/followers","following_url":"https://api.github.com/users/ItsRLuo/following{/other_user}","gists_url":"https://api.github.com/users/ItsRLuo/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsRLuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsRLuo/subscriptions","organizations_url":"https://api.github.com/users/ItsRLuo/orgs","repos_url":"https://api.github.com/users/ItsRLuo/repos","events_url":"https://api.github.com/users/ItsRLuo/events{/privacy}","received_events_url":"https://api.github.com/users/ItsRLuo/received_events","type":"User","site_admin":false},"repo":{"id":54076981,"name":"matplotlib","full_name":"ItsRLuo/matplotlib","owner":{"login":"ItsRLuo","id":5624595,"avatar_url":"https://avatars.githubusercontent.com/u/5624595?v=3","gravatar_id":"","url":"https://api.github.com/users/ItsRLuo","html_url":"https://github.com/ItsRLuo","followers_url":"https://api.github.com/users/ItsRLuo/followers","following_url":"https://api.github.com/users/ItsRLuo/following{/other_user}","gists_url":"https://api.github.com/users/ItsRLuo/gists{/gist_id}","starred_url":"https://api.github.com/users/ItsRLuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ItsRLuo/subscriptions","organizations_url":"https://api.github.com/users/ItsRLuo/orgs","repos_url":"https://api.github.com/users/ItsRLuo/repos","events_url":"https://api.github.com/users/ItsRLuo/events{/privacy}","received_events_url":"https://api.github.com/users/ItsRLuo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ItsRLuo/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/ItsRLuo/matplotlib","forks_url":"https://api.github.com/repos/ItsRLuo/matplotlib/forks","keys_url":"https://api.github.com/repos/ItsRLuo/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ItsRLuo/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ItsRLuo/matplotlib/teams","hooks_url":"https://api.github.com/repos/ItsRLuo/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/ItsRLuo/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/ItsRLuo/matplotlib/events","assignees_url":"https://api.github.com/repos/ItsRLuo/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/ItsRLuo/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/ItsRLuo/matplotlib/tags","blobs_url":"https://api.github.com/repos/ItsRLuo/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ItsRLuo/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ItsRLuo/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/ItsRLuo/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ItsRLuo/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/ItsRLuo/matplotlib/languages","stargazers_url":"https://api.github.com/repos/ItsRLuo/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/ItsRLuo/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/ItsRLuo/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/ItsRLuo/matplotlib/subscription","commits_url":"https://api.github.com/repos/ItsRLuo/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/ItsRLuo/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/ItsRLuo/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/ItsRLuo/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/ItsRLuo/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/ItsRLuo/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ItsRLuo/matplotlib/merges","archive_url":"https://api.github.com/repos/ItsRLuo/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ItsRLuo/matplotlib/downloads","issues_url":"https://api.github.com/repos/ItsRLuo/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/ItsRLuo/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/ItsRLuo/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/ItsRLuo/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ItsRLuo/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/ItsRLuo/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/ItsRLuo/matplotlib/deployments","created_at":"2016-03-17T00:50:32Z","updated_at":"2016-03-17T00:50:40Z","pushed_at":"2016-03-17T02:56:23Z","git_url":"git://github.com/ItsRLuo/matplotlib.git","ssh_url":"git@github.com:ItsRLuo/matplotlib.git","clone_url":"https://github.com/ItsRLuo/matplotlib.git","svn_url":"https://github.com/ItsRLuo/matplotlib","homepage":"http://matplotlib.org/","size":276896,"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":"matplotlib:master","ref":"master","sha":"2b9739631b3c8fde929e358c7b5410c6c8cd18be","user":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","deployments_url":"https://api.github.com/repos/matplotlib/matplotlib/deployments","created_at":"2011-02-19T03:17:12Z","updated_at":"2016-03-17T02:07:23Z","pushed_at":"2016-03-17T03:25:57Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":384461,"stargazers_count":3400,"watchers_count":3400,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1735,"mirror_url":null,"open_issues_count":871,"forks":1735,"open_issues":871,"watchers":3400,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/6172"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/6172"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/6172/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/6172/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/dd834fbe2de3e3be68eeb64e61e93603a27a292d"}}}}