{"action":"created","comment":{"url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/24341006","id":24341006,"diff_hunk":"@@ -0,0 +1,21 @@\n+# -*- coding: utf8 -*-\n+\"\"\"charmproduction.plotting\n+\"\"\"\n+from .styles import set_efficiency_style\n+from .styles import set_correlation_style\n+from .styles import set_pretty_style\n+from .hist2table import write_latex_table\n+from .canvas_print import save_canvas\n+from .roottex import convert_tex_to_pdf\n+from .plot_fit import plot_fit","path":"analysis/charmproduction/plotting/__init__.py","position":10,"original_position":10,"commit_id":"05f9cffa43d7d56ba710b08cbe6627664615a77e","original_commit_id":"05f9cffa43d7d56ba710b08cbe6627664615a77e","user":{"login":"chrisburr","id":5220533,"avatar_url":"https://avatars.githubusercontent.com/u/5220533?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisburr","html_url":"https://github.com/chrisburr","followers_url":"https://api.github.com/users/chrisburr/followers","following_url":"https://api.github.com/users/chrisburr/following{/other_user}","gists_url":"https://api.github.com/users/chrisburr/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisburr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisburr/subscriptions","organizations_url":"https://api.github.com/users/chrisburr/orgs","repos_url":"https://api.github.com/users/chrisburr/repos","events_url":"https://api.github.com/users/chrisburr/events{/privacy}","received_events_url":"https://api.github.com/users/chrisburr/received_events","type":"User","site_admin":false},"body":"Python 3 will complain about the lack of `charmproduction.plotting.xxxxx`.","created_at":"2015-02-09T16:27:12Z","updated_at":"2015-02-09T16:27:12Z","html_url":"https://github.com/alexpearce/CharmProduction/pull/55#discussion_r24341006","pull_request_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/24341006"},"html":{"href":"https://github.com/alexpearce/CharmProduction/pull/55#discussion_r24341006"},"pull_request":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55","id":28551851,"html_url":"https://github.com/alexpearce/CharmProduction/pull/55","diff_url":"https://github.com/alexpearce/CharmProduction/pull/55.diff","patch_url":"https://github.com/alexpearce/CharmProduction/pull/55.patch","issue_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/55","number":55,"state":"open","locked":false,"title":"Tex output module and implementation for efficiencies","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":"ToDo:\r\n* Add it for the binned mass plots\r\n* Add it for PID efficiencies once these are merged\r\n* Have to check how this behaves when printing RooFit frames\r\n\r\nI created functions for the tex output and modified styles for efficiencies and correlations. Here is a efficiency example: \r\n\r\n![out](https://cloud.githubusercontent.com/assets/9555975/6020785/5b201a50-abb0-11e4-9642-0356322f4748.png)\r\n\r\nTo have it all work properly, the style has to be set before the histogram is created. It also creates a latex tabular which can be included in documents:\r\n\r\n![out](https://cloud.githubusercontent.com/assets/9555975/6020816/a9b141f8-abb0-11e4-8575-8ff8cc9ecb5d.png)\r\n\r\n All tex files are automatically processed by pdflatex to create a pdf file. For this to work, `export PATH=/afs/cern.ch/sw/XML/texlive/latest/bin/x86_64-linux:$PATH` is necessary as the old texlive version which is the default one on lxplus cannot handle tikz plots.\r\n\r\n\r\n\r\n","created_at":"2015-02-03T13:28:34Z","updated_at":"2015-02-09T16:27:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b042c21c15aab61891473193605b32b57c4c2f0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55/commits","review_comments_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55/comments","review_comment_url":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/{number}","comments_url":"https://api.github.com/repos/alexpearce/CharmProduction/issues/55/comments","statuses_url":"https://api.github.com/repos/alexpearce/CharmProduction/statuses/05f9cffa43d7d56ba710b08cbe6627664615a77e","head":{"label":"alexpearce:TexOutput","ref":"TexOutput","sha":"05f9cffa43d7d56ba710b08cbe6627664615a77e","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-09T15:02:49Z","pushed_at":"2015-02-09T15:49:54Z","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":5937,"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":16,"forks":0,"open_issues":16,"watchers":2,"default_branch":"master"}},"base":{"label":"alexpearce:master","ref":"master","sha":"da4f957fbe4f3b97156eacd46edfad2f4c7f2251","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-09T15:02:49Z","pushed_at":"2015-02-09T15:49:54Z","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":5937,"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":16,"forks":0,"open_issues":16,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55"},"html":{"href":"https://github.com/alexpearce/CharmProduction/pull/55"},"issue":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/issues/55"},"comments":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/alexpearce/CharmProduction/statuses/05f9cffa43d7d56ba710b08cbe6627664615a77e"}}}}