{"action":"created","comment":{"url":"https://api.github.com/repos/gonum/plot/pulls/comments/24492210","id":24492210,"diff_hunk":"@@ -26,42 +13,19 @@ func Points(pt float64) Length {\n \treturn Length(pt)\n }\n \n-// Inches returns a length for the given numer of inches.\n-func Inches(in float64) Length {\n-\treturn Length(in * ptInch)\n-}\n-\n-// Centimeters returns a length for the given number of centimeters.\n-func Centimeters(cm float64) Length {\n-\treturn Length(cm * ptCentimeter)\n-}\n-\n-// Millimeters returns a length for the given number of millimeters.\n-func Millimeters(mm float64) Length {\n-\treturn Length(mm * ptMillimeter)\n-}\n+// Common lengths.\n+const (\n+\tInch       Length = 72\n+\tCentimeter        = Inch / 2.54","path":"vg/len.go","position":41,"original_position":41,"commit_id":"37e47e3bc1b928d1e278885ba29bd8b45498fde7","original_commit_id":"37e47e3bc1b928d1e278885ba29bd8b45498fde7","user":{"login":"kortschak","id":275221,"avatar_url":"https://avatars.githubusercontent.com/u/275221?v=3","gravatar_id":"","url":"https://api.github.com/users/kortschak","html_url":"https://github.com/kortschak","followers_url":"https://api.github.com/users/kortschak/followers","following_url":"https://api.github.com/users/kortschak/following{/other_user}","gists_url":"https://api.github.com/users/kortschak/gists{/gist_id}","starred_url":"https://api.github.com/users/kortschak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kortschak/subscriptions","organizations_url":"https://api.github.com/users/kortschak/orgs","repos_url":"https://api.github.com/users/kortschak/repos","events_url":"https://api.github.com/users/kortschak/events{/privacy}","received_events_url":"https://api.github.com/users/kortschak/received_events","type":"User","site_admin":false},"body":"Missed this, but it's spelled in American in gonum/unit, so we should leave it.","created_at":"2015-02-11T12:48:29Z","updated_at":"2015-02-11T12:48:29Z","html_url":"https://github.com/gonum/plot/pull/9#discussion_r24492210","pull_request_url":"https://api.github.com/repos/gonum/plot/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/gonum/plot/pulls/comments/24492210"},"html":{"href":"https://github.com/gonum/plot/pull/9#discussion_r24492210"},"pull_request":{"href":"https://api.github.com/repos/gonum/plot/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/gonum/plot/pulls/9","id":29074030,"html_url":"https://github.com/gonum/plot/pull/9","diff_url":"https://github.com/gonum/plot/pull/9.diff","patch_url":"https://github.com/gonum/plot/pull/9.patch","issue_url":"https://api.github.com/repos/gonum/plot/issues/9","number":9,"state":"open","locked":false,"title":"Gonum redesign vgdraw","user":{"login":"sbinet","id":1070920,"avatar_url":"https://avatars.githubusercontent.com/u/1070920?v=3","gravatar_id":"","url":"https://api.github.com/users/sbinet","html_url":"https://github.com/sbinet","followers_url":"https://api.github.com/users/sbinet/followers","following_url":"https://api.github.com/users/sbinet/following{/other_user}","gists_url":"https://api.github.com/users/sbinet/gists{/gist_id}","starred_url":"https://api.github.com/users/sbinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbinet/subscriptions","organizations_url":"https://api.github.com/users/sbinet/orgs","repos_url":"https://api.github.com/users/sbinet/repos","events_url":"https://api.github.com/users/sbinet/events{/privacy}","received_events_url":"https://api.github.com/users/sbinet/received_events","type":"User","site_admin":false},"body":"- add vgdraw.Canvas (in replacement of plot.DrawArea)\r\n- introduce vg.Inch, vg.Centimeter and vg.Millimeter\r\n- introduce plot.Ticker interface\r\n- introduce plot.Normalizer interface\r\n- support for persistency\r\n","created_at":"2015-02-11T08:20:04Z","updated_at":"2015-02-11T12:48:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44f2eec85ecec523c2bbd5473f0473abfe8fc9d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gonum/plot/pulls/9/commits","review_comments_url":"https://api.github.com/repos/gonum/plot/pulls/9/comments","review_comment_url":"https://api.github.com/repos/gonum/plot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gonum/plot/issues/9/comments","statuses_url":"https://api.github.com/repos/gonum/plot/statuses/37e47e3bc1b928d1e278885ba29bd8b45498fde7","head":{"label":"sbinet:gonum-redesign-vgdraw","ref":"gonum-redesign-vgdraw","sha":"37e47e3bc1b928d1e278885ba29bd8b45498fde7","user":{"login":"sbinet","id":1070920,"avatar_url":"https://avatars.githubusercontent.com/u/1070920?v=3","gravatar_id":"","url":"https://api.github.com/users/sbinet","html_url":"https://github.com/sbinet","followers_url":"https://api.github.com/users/sbinet/followers","following_url":"https://api.github.com/users/sbinet/following{/other_user}","gists_url":"https://api.github.com/users/sbinet/gists{/gist_id}","starred_url":"https://api.github.com/users/sbinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbinet/subscriptions","organizations_url":"https://api.github.com/users/sbinet/orgs","repos_url":"https://api.github.com/users/sbinet/repos","events_url":"https://api.github.com/users/sbinet/events{/privacy}","received_events_url":"https://api.github.com/users/sbinet/received_events","type":"User","site_admin":false},"repo":{"id":30636296,"name":"gonum-plot","full_name":"sbinet/gonum-plot","owner":{"login":"sbinet","id":1070920,"avatar_url":"https://avatars.githubusercontent.com/u/1070920?v=3","gravatar_id":"","url":"https://api.github.com/users/sbinet","html_url":"https://github.com/sbinet","followers_url":"https://api.github.com/users/sbinet/followers","following_url":"https://api.github.com/users/sbinet/following{/other_user}","gists_url":"https://api.github.com/users/sbinet/gists{/gist_id}","starred_url":"https://api.github.com/users/sbinet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbinet/subscriptions","organizations_url":"https://api.github.com/users/sbinet/orgs","repos_url":"https://api.github.com/users/sbinet/repos","events_url":"https://api.github.com/users/sbinet/events{/privacy}","received_events_url":"https://api.github.com/users/sbinet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sbinet/gonum-plot","description":"A repository for plotting and visualizing data","fork":true,"url":"https://api.github.com/repos/sbinet/gonum-plot","forks_url":"https://api.github.com/repos/sbinet/gonum-plot/forks","keys_url":"https://api.github.com/repos/sbinet/gonum-plot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sbinet/gonum-plot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sbinet/gonum-plot/teams","hooks_url":"https://api.github.com/repos/sbinet/gonum-plot/hooks","issue_events_url":"https://api.github.com/repos/sbinet/gonum-plot/issues/events{/number}","events_url":"https://api.github.com/repos/sbinet/gonum-plot/events","assignees_url":"https://api.github.com/repos/sbinet/gonum-plot/assignees{/user}","branches_url":"https://api.github.com/repos/sbinet/gonum-plot/branches{/branch}","tags_url":"https://api.github.com/repos/sbinet/gonum-plot/tags","blobs_url":"https://api.github.com/repos/sbinet/gonum-plot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sbinet/gonum-plot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sbinet/gonum-plot/git/refs{/sha}","trees_url":"https://api.github.com/repos/sbinet/gonum-plot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sbinet/gonum-plot/statuses/{sha}","languages_url":"https://api.github.com/repos/sbinet/gonum-plot/languages","stargazers_url":"https://api.github.com/repos/sbinet/gonum-plot/stargazers","contributors_url":"https://api.github.com/repos/sbinet/gonum-plot/contributors","subscribers_url":"https://api.github.com/repos/sbinet/gonum-plot/subscribers","subscription_url":"https://api.github.com/repos/sbinet/gonum-plot/subscription","commits_url":"https://api.github.com/repos/sbinet/gonum-plot/commits{/sha}","git_commits_url":"https://api.github.com/repos/sbinet/gonum-plot/git/commits{/sha}","comments_url":"https://api.github.com/repos/sbinet/gonum-plot/comments{/number}","issue_comment_url":"https://api.github.com/repos/sbinet/gonum-plot/issues/comments/{number}","contents_url":"https://api.github.com/repos/sbinet/gonum-plot/contents/{+path}","compare_url":"https://api.github.com/repos/sbinet/gonum-plot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sbinet/gonum-plot/merges","archive_url":"https://api.github.com/repos/sbinet/gonum-plot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sbinet/gonum-plot/downloads","issues_url":"https://api.github.com/repos/sbinet/gonum-plot/issues{/number}","pulls_url":"https://api.github.com/repos/sbinet/gonum-plot/pulls{/number}","milestones_url":"https://api.github.com/repos/sbinet/gonum-plot/milestones{/number}","notifications_url":"https://api.github.com/repos/sbinet/gonum-plot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sbinet/gonum-plot/labels{/name}","releases_url":"https://api.github.com/repos/sbinet/gonum-plot/releases{/id}","created_at":"2015-02-11T07:38:01Z","updated_at":"2015-02-11T07:38:22Z","pushed_at":"2015-02-11T12:07:15Z","git_url":"git://github.com/sbinet/gonum-plot.git","ssh_url":"git@github.com:sbinet/gonum-plot.git","clone_url":"https://github.com/sbinet/gonum-plot.git","svn_url":"https://github.com/sbinet/gonum-plot","homepage":"","size":1138,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"gonum:master","ref":"master","sha":"6a37e87e9e0b169426c4984344aa6321cddf5b69","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-02-11T10:06:25Z","pushed_at":"2015-02-11T12:38:43Z","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":1138,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gonum/plot/pulls/9"},"html":{"href":"https://github.com/gonum/plot/pull/9"},"issue":{"href":"https://api.github.com/repos/gonum/plot/issues/9"},"comments":{"href":"https://api.github.com/repos/gonum/plot/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/gonum/plot/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/gonum/plot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gonum/plot/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/gonum/plot/statuses/37e47e3bc1b928d1e278885ba29bd8b45498fde7"}}}}