{"action":"created","comment":{"url":"https://api.github.com/repos/gonum/plot/pulls/comments/41086505","id":41086505,"diff_hunk":"@@ -280,12 +280,10 @@ func (a *verticalAxis) size() (w vg.Length) {\n // draw draws the axis along the left side of a draw.Canvas.\n func (a *verticalAxis) draw(c draw.Canvas) {\n \tx := c.Min.X\n+\ta.Label.TextStyle.Rotation += math.Pi / 2.","path":"axis.go","position":4,"original_position":4,"commit_id":"e06c0ac2ada15674cff5fdca1785090b37442f8e","original_commit_id":"e06c0ac2ada15674cff5fdca1785090b37442f8e","user":{"login":"eaburns","id":235271,"avatar_url":"https://avatars.githubusercontent.com/u/235271?v=3","gravatar_id":"","url":"https://api.github.com/users/eaburns","html_url":"https://github.com/eaburns","followers_url":"https://api.github.com/users/eaburns/followers","following_url":"https://api.github.com/users/eaburns/following{/other_user}","gists_url":"https://api.github.com/users/eaburns/gists{/gist_id}","starred_url":"https://api.github.com/users/eaburns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eaburns/subscriptions","organizations_url":"https://api.github.com/users/eaburns/orgs","repos_url":"https://api.github.com/users/eaburns/repos","events_url":"https://api.github.com/users/eaburns/events{/privacy}","received_events_url":"https://api.github.com/users/eaburns/received_events","type":"User","site_admin":false},"body":"It bothers me that calling `draw` has the side affect of Incrementing `Rotation`. Won't this cause a second call to draw to have an incorrect rotation? Can we do this without changing the fields of the axis? At very least, we should have a deferred call that restores the original rotation.","created_at":"2015-10-03T12:09:51Z","updated_at":"2015-10-03T12:09:51Z","html_url":"https://github.com/gonum/plot/pull/227#discussion_r41086505","pull_request_url":"https://api.github.com/repos/gonum/plot/pulls/227","_links":{"self":{"href":"https://api.github.com/repos/gonum/plot/pulls/comments/41086505"},"html":{"href":"https://github.com/gonum/plot/pull/227#discussion_r41086505"},"pull_request":{"href":"https://api.github.com/repos/gonum/plot/pulls/227"}}},"pull_request":{"url":"https://api.github.com/repos/gonum/plot/pulls/227","id":46678029,"html_url":"https://github.com/gonum/plot/pull/227","diff_url":"https://github.com/gonum/plot/pull/227.diff","patch_url":"https://github.com/gonum/plot/pull/227.patch","issue_url":"https://api.github.com/repos/gonum/plot/issues/227","number":227,"state":"open","locked":false,"title":"Add rotation to draw.TextStyle","user":{"login":"ctessum","id":6193153,"avatar_url":"https://avatars.githubusercontent.com/u/6193153?v=3","gravatar_id":"","url":"https://api.github.com/users/ctessum","html_url":"https://github.com/ctessum","followers_url":"https://api.github.com/users/ctessum/followers","following_url":"https://api.github.com/users/ctessum/following{/other_user}","gists_url":"https://api.github.com/users/ctessum/gists{/gist_id}","starred_url":"https://api.github.com/users/ctessum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctessum/subscriptions","organizations_url":"https://api.github.com/users/ctessum/orgs","repos_url":"https://api.github.com/users/ctessum/repos","events_url":"https://api.github.com/users/ctessum/events{/privacy}","received_events_url":"https://api.github.com/users/ctessum/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-02T20:22:55Z","updated_at":"2015-10-03T12:09:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"18d28fb30579756ebfa10400b4f14c8940ed6994","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gonum/plot/pulls/227/commits","review_comments_url":"https://api.github.com/repos/gonum/plot/pulls/227/comments","review_comment_url":"https://api.github.com/repos/gonum/plot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gonum/plot/issues/227/comments","statuses_url":"https://api.github.com/repos/gonum/plot/statuses/e06c0ac2ada15674cff5fdca1785090b37442f8e","head":{"label":"gonum:textrotate","ref":"textrotate","sha":"e06c0ac2ada15674cff5fdca1785090b37442f8e","user":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"repo":{"id":11601889,"name":"plot","full_name":"gonum/plot","owner":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gonum/plot","description":"A repository for plotting and visualizing data","fork":false,"url":"https://api.github.com/repos/gonum/plot","forks_url":"https://api.github.com/repos/gonum/plot/forks","keys_url":"https://api.github.com/repos/gonum/plot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonum/plot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonum/plot/teams","hooks_url":"https://api.github.com/repos/gonum/plot/hooks","issue_events_url":"https://api.github.com/repos/gonum/plot/issues/events{/number}","events_url":"https://api.github.com/repos/gonum/plot/events","assignees_url":"https://api.github.com/repos/gonum/plot/assignees{/user}","branches_url":"https://api.github.com/repos/gonum/plot/branches{/branch}","tags_url":"https://api.github.com/repos/gonum/plot/tags","blobs_url":"https://api.github.com/repos/gonum/plot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonum/plot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonum/plot/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonum/plot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonum/plot/statuses/{sha}","languages_url":"https://api.github.com/repos/gonum/plot/languages","stargazers_url":"https://api.github.com/repos/gonum/plot/stargazers","contributors_url":"https://api.github.com/repos/gonum/plot/contributors","subscribers_url":"https://api.github.com/repos/gonum/plot/subscribers","subscription_url":"https://api.github.com/repos/gonum/plot/subscription","commits_url":"https://api.github.com/repos/gonum/plot/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonum/plot/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonum/plot/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonum/plot/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonum/plot/contents/{+path}","compare_url":"https://api.github.com/repos/gonum/plot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonum/plot/merges","archive_url":"https://api.github.com/repos/gonum/plot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonum/plot/downloads","issues_url":"https://api.github.com/repos/gonum/plot/issues{/number}","pulls_url":"https://api.github.com/repos/gonum/plot/pulls{/number}","milestones_url":"https://api.github.com/repos/gonum/plot/milestones{/number}","notifications_url":"https://api.github.com/repos/gonum/plot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonum/plot/labels{/name}","releases_url":"https://api.github.com/repos/gonum/plot/releases{/id}","created_at":"2013-07-23T07:01:13Z","updated_at":"2015-10-03T00:20:08Z","pushed_at":"2015-10-02T21:13:39Z","git_url":"git://github.com/gonum/plot.git","ssh_url":"git@github.com:gonum/plot.git","clone_url":"https://github.com/gonum/plot.git","svn_url":"https://github.com/gonum/plot","homepage":"","size":2443,"stargazers_count":139,"watchers_count":139,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":45,"forks":22,"open_issues":45,"watchers":139,"default_branch":"master"}},"base":{"label":"gonum:master","ref":"master","sha":"ca0e8e59a591931264eaa9370bc4b3df5c5735e5","user":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"repo":{"id":11601889,"name":"plot","full_name":"gonum/plot","owner":{"login":"gonum","id":3771091,"avatar_url":"https://avatars.githubusercontent.com/u/3771091?v=3","gravatar_id":"","url":"https://api.github.com/users/gonum","html_url":"https://github.com/gonum","followers_url":"https://api.github.com/users/gonum/followers","following_url":"https://api.github.com/users/gonum/following{/other_user}","gists_url":"https://api.github.com/users/gonum/gists{/gist_id}","starred_url":"https://api.github.com/users/gonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gonum/subscriptions","organizations_url":"https://api.github.com/users/gonum/orgs","repos_url":"https://api.github.com/users/gonum/repos","events_url":"https://api.github.com/users/gonum/events{/privacy}","received_events_url":"https://api.github.com/users/gonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gonum/plot","description":"A repository for plotting and visualizing data","fork":false,"url":"https://api.github.com/repos/gonum/plot","forks_url":"https://api.github.com/repos/gonum/plot/forks","keys_url":"https://api.github.com/repos/gonum/plot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gonum/plot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gonum/plot/teams","hooks_url":"https://api.github.com/repos/gonum/plot/hooks","issue_events_url":"https://api.github.com/repos/gonum/plot/issues/events{/number}","events_url":"https://api.github.com/repos/gonum/plot/events","assignees_url":"https://api.github.com/repos/gonum/plot/assignees{/user}","branches_url":"https://api.github.com/repos/gonum/plot/branches{/branch}","tags_url":"https://api.github.com/repos/gonum/plot/tags","blobs_url":"https://api.github.com/repos/gonum/plot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gonum/plot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gonum/plot/git/refs{/sha}","trees_url":"https://api.github.com/repos/gonum/plot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gonum/plot/statuses/{sha}","languages_url":"https://api.github.com/repos/gonum/plot/languages","stargazers_url":"https://api.github.com/repos/gonum/plot/stargazers","contributors_url":"https://api.github.com/repos/gonum/plot/contributors","subscribers_url":"https://api.github.com/repos/gonum/plot/subscribers","subscription_url":"https://api.github.com/repos/gonum/plot/subscription","commits_url":"https://api.github.com/repos/gonum/plot/commits{/sha}","git_commits_url":"https://api.github.com/repos/gonum/plot/git/commits{/sha}","comments_url":"https://api.github.com/repos/gonum/plot/comments{/number}","issue_comment_url":"https://api.github.com/repos/gonum/plot/issues/comments{/number}","contents_url":"https://api.github.com/repos/gonum/plot/contents/{+path}","compare_url":"https://api.github.com/repos/gonum/plot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gonum/plot/merges","archive_url":"https://api.github.com/repos/gonum/plot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gonum/plot/downloads","issues_url":"https://api.github.com/repos/gonum/plot/issues{/number}","pulls_url":"https://api.github.com/repos/gonum/plot/pulls{/number}","milestones_url":"https://api.github.com/repos/gonum/plot/milestones{/number}","notifications_url":"https://api.github.com/repos/gonum/plot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gonum/plot/labels{/name}","releases_url":"https://api.github.com/repos/gonum/plot/releases{/id}","created_at":"2013-07-23T07:01:13Z","updated_at":"2015-10-03T00:20:08Z","pushed_at":"2015-10-02T21:13:39Z","git_url":"git://github.com/gonum/plot.git","ssh_url":"git@github.com:gonum/plot.git","clone_url":"https://github.com/gonum/plot.git","svn_url":"https://github.com/gonum/plot","homepage":"","size":2443,"stargazers_count":139,"watchers_count":139,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":45,"forks":22,"open_issues":45,"watchers":139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gonum/plot/pulls/227"},"html":{"href":"https://github.com/gonum/plot/pull/227"},"issue":{"href":"https://api.github.com/repos/gonum/plot/issues/227"},"comments":{"href":"https://api.github.com/repos/gonum/plot/issues/227/comments"},"review_comments":{"href":"https://api.github.com/repos/gonum/plot/pulls/227/comments"},"review_comment":{"href":"https://api.github.com/repos/gonum/plot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gonum/plot/pulls/227/commits"},"statuses":{"href":"https://api.github.com/repos/gonum/plot/statuses/e06c0ac2ada15674cff5fdca1785090b37442f8e"}}}}