{"action":"created","comment":{"url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/24628032","id":24628032,"diff_hunk":"@@ -110,9 +112,20 @@ def add_fit_parameters(canvas, params_names, workspace, show_consts=True):\n     workspace -- RooWorkspace to retrieve parameters from\n     show_consts -- Add a \"(C)\" label to constant parameters (default: True)\n     \"\"\"\n-    latex = ROOT.TLatex()\n-    latex.SetTextSize(12)\n-    for idx, (param, name) in enumerate(params_names):\n+    nparam = len(params_names)\n+    rightbdr = 1. - canvas.GetRightMargin()\n+    topbdr = 1. - canvas.GetTopMargin()\n+    box = ROOT.TPaveStats(\n+        0.65,\n+        topbdr -\n+        0.05 *\n+        nparam,\n+        rightbdr -\n+        0.01,\n+        topbdr -\n+        0.01,\n+        'NDC')","path":"analysis/charmproduction/plotting/utilities.py","position":42,"original_position":42,"commit_id":"5d8574e7f7b675d0d442be87890aec7b870739d0","original_commit_id":"5d8574e7f7b675d0d442be87890aec7b870739d0","user":{"login":"dominikmuller","id":9555975,"avatar_url":"https://avatars.githubusercontent.com/u/9555975?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikmuller","html_url":"https://github.com/dominikmuller","followers_url":"https://api.github.com/users/dominikmuller/followers","following_url":"https://api.github.com/users/dominikmuller/following{/other_user}","gists_url":"https://api.github.com/users/dominikmuller/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikmuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikmuller/subscriptions","organizations_url":"https://api.github.com/users/dominikmuller/orgs","repos_url":"https://api.github.com/users/dominikmuller/repos","events_url":"https://api.github.com/users/dominikmuller/events{/privacy}","received_events_url":"https://api.github.com/users/dominikmuller/received_events","type":"User","site_admin":false},"body":"Sorry sure, that's what my vim did automatically ","created_at":"2015-02-12T22:40:43Z","updated_at":"2015-02-12T22:40:43Z","html_url":"https://github.com/alexpearce/CharmProduction/pull/80#discussion_r24628032","pull_request_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/24628032"},"html":{"href":"https://github.com/alexpearce/CharmProduction/pull/80#discussion_r24628032"},"pull_request":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80","id":29201099,"html_url":"https://github.com/alexpearce/CharmProduction/pull/80","diff_url":"https://github.com/alexpearce/CharmProduction/pull/80.diff","patch_url":"https://github.com/alexpearce/CharmProduction/pull/80.patch","issue_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/80","number":80,"state":"open","locked":false,"title":"RooFit Plots + Tex output","user":{"login":"dominikmuller","id":9555975,"avatar_url":"https://avatars.githubusercontent.com/u/9555975?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikmuller","html_url":"https://github.com/dominikmuller","followers_url":"https://api.github.com/users/dominikmuller/followers","following_url":"https://api.github.com/users/dominikmuller/following{/other_user}","gists_url":"https://api.github.com/users/dominikmuller/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikmuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikmuller/subscriptions","organizations_url":"https://api.github.com/users/dominikmuller/orgs","repos_url":"https://api.github.com/users/dominikmuller/repos","events_url":"https://api.github.com/users/dominikmuller/events{/privacy}","received_events_url":"https://api.github.com/users/dominikmuller/received_events","type":"User","site_admin":false},"body":"![pretty](https://cloud.githubusercontent.com/assets/9555975/6173546/b3ba4e74-b2e0-11e4-9e14-6f68db095b4f.png)\r\n\r\nStill some work left, have to organise the actual saving of all the plots somewhere. Also haven't checked any other but the integrated invariant mass plot yet.","created_at":"2015-02-12T17:58:24Z","updated_at":"2015-02-12T22:40:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a69633f3ea592f0550780b334aea47552b8ca46","assignee":{"login":"dominikmuller","id":9555975,"avatar_url":"https://avatars.githubusercontent.com/u/9555975?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikmuller","html_url":"https://github.com/dominikmuller","followers_url":"https://api.github.com/users/dominikmuller/followers","following_url":"https://api.github.com/users/dominikmuller/following{/other_user}","gists_url":"https://api.github.com/users/dominikmuller/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikmuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikmuller/subscriptions","organizations_url":"https://api.github.com/users/dominikmuller/orgs","repos_url":"https://api.github.com/users/dominikmuller/repos","events_url":"https://api.github.com/users/dominikmuller/events{/privacy}","received_events_url":"https://api.github.com/users/dominikmuller/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/alexpearce/CharmProduction/milestones/1","labels_url":"https://api.github.com/repos/alexpearce/CharmProduction/milestones/1/labels","id":898677,"number":1,"title":"Fitting framework","description":"To extract the prompt signal yields, we perform a two-dimensional fit in the mass of the charm hadron and it's impact parameter χ<sup>2</sup>, except for the D<sup>&#42;</sup> modes where we instead perform a three-dimensional fit in the mass and impact parameter χ<sup>2</sup> of the D<sup>0</sup>, and the difference between the reconstructed D<sup>&#42;</sup> mass and the reconstructed D<sup>0</sup> mass. The fit is performed simultaneously in bins of transverse momentum and rapidity.\r\n\r\nThis will require a fitting framework which allows the user to pass the decay mode and some data, returning the yields, along with any relevant plots.","creator":{"login":"alexpearce","id":540853,"avatar_url":"https://avatars.githubusercontent.com/u/540853?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpearce","html_url":"https://github.com/alexpearce","followers_url":"https://api.github.com/users/alexpearce/followers","following_url":"https://api.github.com/users/alexpearce/following{/other_user}","gists_url":"https://api.github.com/users/alexpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpearce/subscriptions","organizations_url":"https://api.github.com/users/alexpearce/orgs","repos_url":"https://api.github.com/users/alexpearce/repos","events_url":"https://api.github.com/users/alexpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alexpearce/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":11,"state":"open","created_at":"2014-12-10T10:59:11Z","updated_at":"2015-02-12T18:00:05Z","due_on":"2015-01-29T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80/commits","review_comments_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80/comments","review_comment_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/{number}","comments_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/80/comments","statuses_url":"https://api.github.com/repos/alexpearce/CharmProduction/statuses/5d8574e7f7b675d0d442be87890aec7b870739d0","head":{"label":"alexpearce:RooPretty","ref":"RooPretty","sha":"5d8574e7f7b675d0d442be87890aec7b870739d0","user":{"login":"alexpearce","id":540853,"avatar_url":"https://avatars.githubusercontent.com/u/540853?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpearce","html_url":"https://github.com/alexpearce","followers_url":"https://api.github.com/users/alexpearce/followers","following_url":"https://api.github.com/users/alexpearce/following{/other_user}","gists_url":"https://api.github.com/users/alexpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpearce/subscriptions","organizations_url":"https://api.github.com/users/alexpearce/orgs","repos_url":"https://api.github.com/users/alexpearce/repos","events_url":"https://api.github.com/users/alexpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alexpearce/received_events","type":"User","site_admin":false},"repo":{"id":22913076,"name":"CharmProduction","full_name":"alexpearce/CharmProduction","owner":{"login":"alexpearce","id":540853,"avatar_url":"https://avatars.githubusercontent.com/u/540853?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpearce","html_url":"https://github.com/alexpearce","followers_url":"https://api.github.com/users/alexpearce/followers","following_url":"https://api.github.com/users/alexpearce/following{/other_user}","gists_url":"https://api.github.com/users/alexpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpearce/subscriptions","organizations_url":"https://api.github.com/users/alexpearce/orgs","repos_url":"https://api.github.com/users/alexpearce/repos","events_url":"https://api.github.com/users/alexpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alexpearce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexpearce/CharmProduction","description":"Prompt charm cross section analysis code.","fork":false,"url":"https://api.github.com/repos/alexpearce/CharmProduction","forks_url":"https://api.github.com/repos/alexpearce/CharmProduction/forks","keys_url":"https://api.github.com/repos/alexpearce/CharmProduction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexpearce/CharmProduction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexpearce/CharmProduction/teams","hooks_url":"https://api.github.com/repos/alexpearce/CharmProduction/hooks","issue_events_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/events{/number}","events_url":"https://api.github.com/repos/alexpearce/CharmProduction/events","assignees_url":"https://api.github.com/repos/alexpearce/CharmProduction/assignees{/user}","branches_url":"https://api.github.com/repos/alexpearce/CharmProduction/branches{/branch}","tags_url":"https://api.github.com/repos/alexpearce/CharmProduction/tags","blobs_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexpearce/CharmProduction/statuses/{sha}","languages_url":"https://api.github.com/repos/alexpearce/CharmProduction/languages","stargazers_url":"https://api.github.com/repos/alexpearce/CharmProduction/stargazers","contributors_url":"https://api.github.com/repos/alexpearce/CharmProduction/contributors","subscribers_url":"https://api.github.com/repos/alexpearce/CharmProduction/subscribers","subscription_url":"https://api.github.com/repos/alexpearce/CharmProduction/subscription","commits_url":"https://api.github.com/repos/alexpearce/CharmProduction/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexpearce/CharmProduction/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexpearce/CharmProduction/contents/{+path}","compare_url":"https://api.github.com/repos/alexpearce/CharmProduction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexpearce/CharmProduction/merges","archive_url":"https://api.github.com/repos/alexpearce/CharmProduction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexpearce/CharmProduction/downloads","issues_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues{/number}","pulls_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls{/number}","milestones_url":"https://api.github.com/repos/alexpearce/CharmProduction/milestones{/number}","notifications_url":"https://api.github.com/repos/alexpearce/CharmProduction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexpearce/CharmProduction/labels{/name}","releases_url":"https://api.github.com/repos/alexpearce/CharmProduction/releases{/id}","created_at":"2014-08-13T11:19:55Z","updated_at":"2015-02-10T14:57:16Z","pushed_at":"2015-02-12T17:54:57Z","git_url":"git://github.com/alexpearce/CharmProduction.git","ssh_url":"git@github.com:alexpearce/CharmProduction.git","clone_url":"https://github.com/alexpearce/CharmProduction.git","svn_url":"https://github.com/alexpearce/CharmProduction","homepage":"","size":6179,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":2,"default_branch":"master"}},"base":{"label":"alexpearce:master","ref":"master","sha":"90aa21d86d19f72d1ba2320ca8eb424e9d7d263c","user":{"login":"alexpearce","id":540853,"avatar_url":"https://avatars.githubusercontent.com/u/540853?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpearce","html_url":"https://github.com/alexpearce","followers_url":"https://api.github.com/users/alexpearce/followers","following_url":"https://api.github.com/users/alexpearce/following{/other_user}","gists_url":"https://api.github.com/users/alexpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpearce/subscriptions","organizations_url":"https://api.github.com/users/alexpearce/orgs","repos_url":"https://api.github.com/users/alexpearce/repos","events_url":"https://api.github.com/users/alexpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alexpearce/received_events","type":"User","site_admin":false},"repo":{"id":22913076,"name":"CharmProduction","full_name":"alexpearce/CharmProduction","owner":{"login":"alexpearce","id":540853,"avatar_url":"https://avatars.githubusercontent.com/u/540853?v=3","gravatar_id":"","url":"https://api.github.com/users/alexpearce","html_url":"https://github.com/alexpearce","followers_url":"https://api.github.com/users/alexpearce/followers","following_url":"https://api.github.com/users/alexpearce/following{/other_user}","gists_url":"https://api.github.com/users/alexpearce/gists{/gist_id}","starred_url":"https://api.github.com/users/alexpearce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexpearce/subscriptions","organizations_url":"https://api.github.com/users/alexpearce/orgs","repos_url":"https://api.github.com/users/alexpearce/repos","events_url":"https://api.github.com/users/alexpearce/events{/privacy}","received_events_url":"https://api.github.com/users/alexpearce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexpearce/CharmProduction","description":"Prompt charm cross section analysis code.","fork":false,"url":"https://api.github.com/repos/alexpearce/CharmProduction","forks_url":"https://api.github.com/repos/alexpearce/CharmProduction/forks","keys_url":"https://api.github.com/repos/alexpearce/CharmProduction/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexpearce/CharmProduction/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexpearce/CharmProduction/teams","hooks_url":"https://api.github.com/repos/alexpearce/CharmProduction/hooks","issue_events_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/events{/number}","events_url":"https://api.github.com/repos/alexpearce/CharmProduction/events","assignees_url":"https://api.github.com/repos/alexpearce/CharmProduction/assignees{/user}","branches_url":"https://api.github.com/repos/alexpearce/CharmProduction/branches{/branch}","tags_url":"https://api.github.com/repos/alexpearce/CharmProduction/tags","blobs_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexpearce/CharmProduction/statuses/{sha}","languages_url":"https://api.github.com/repos/alexpearce/CharmProduction/languages","stargazers_url":"https://api.github.com/repos/alexpearce/CharmProduction/stargazers","contributors_url":"https://api.github.com/repos/alexpearce/CharmProduction/contributors","subscribers_url":"https://api.github.com/repos/alexpearce/CharmProduction/subscribers","subscription_url":"https://api.github.com/repos/alexpearce/CharmProduction/subscription","commits_url":"https://api.github.com/repos/alexpearce/CharmProduction/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexpearce/CharmProduction/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexpearce/CharmProduction/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexpearce/CharmProduction/contents/{+path}","compare_url":"https://api.github.com/repos/alexpearce/CharmProduction/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexpearce/CharmProduction/merges","archive_url":"https://api.github.com/repos/alexpearce/CharmProduction/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexpearce/CharmProduction/downloads","issues_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues{/number}","pulls_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls{/number}","milestones_url":"https://api.github.com/repos/alexpearce/CharmProduction/milestones{/number}","notifications_url":"https://api.github.com/repos/alexpearce/CharmProduction/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexpearce/CharmProduction/labels{/name}","releases_url":"https://api.github.com/repos/alexpearce/CharmProduction/releases{/id}","created_at":"2014-08-13T11:19:55Z","updated_at":"2015-02-10T14:57:16Z","pushed_at":"2015-02-12T17:54:57Z","git_url":"git://github.com/alexpearce/CharmProduction.git","ssh_url":"git@github.com:alexpearce/CharmProduction.git","clone_url":"https://github.com/alexpearce/CharmProduction.git","svn_url":"https://github.com/alexpearce/CharmProduction","homepage":"","size":6179,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80"},"html":{"href":"https://github.com/alexpearce/CharmProduction/pull/80"},"issue":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/issues/80"},"comments":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/statuses/5d8574e7f7b675d0d442be87890aec7b870739d0"}}}}