{"action":"opened","number":62,"pull_request":{"url":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/62","id":91776835,"html_url":"https://github.com/sisl/PGFPlots.jl/pull/62","diff_url":"https://github.com/sisl/PGFPlots.jl/pull/62.diff","patch_url":"https://github.com/sisl/PGFPlots.jl/pull/62.patch","issue_url":"https://api.github.com/repos/sisl/PGFPlots.jl/issues/62","number":62,"state":"open","locked":false,"title":"Preamble and epilogue to plot","user":{"login":"Tyde","id":1103207,"avatar_url":"https://avatars.githubusercontent.com/u/1103207?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyde","html_url":"https://github.com/Tyde","followers_url":"https://api.github.com/users/Tyde/followers","following_url":"https://api.github.com/users/Tyde/following{/other_user}","gists_url":"https://api.github.com/users/Tyde/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyde/subscriptions","organizations_url":"https://api.github.com/users/Tyde/orgs","repos_url":"https://api.github.com/users/Tyde/repos","events_url":"https://api.github.com/users/Tyde/events{/privacy}","received_events_url":"https://api.github.com/users/Tyde/received_events","type":"User","site_admin":false},"body":"Hi, \r\nI ran into the prolem that I wanted to have multiple y axes in my plot like this: http://tex.stackexchange.com/a/42752 \r\n\r\nThe provided solution required me to add a line before and after the \\addplot command \r\n`\\addlegendimage{/pgfplots/refstyle=Hplot}\\addlegendentry{$H$}` before the second plot and \r\n`\\label{Hplot}` after the first plot. Therefore I added a little \"hack\" to provide them with PGFPlots.jl: I added the option to add a preamble and an epilogue to each plot. My code now looks like this:\r\n```julia\r\nx = [1,2,3]\r\ny = [2,4,1]\r\ny2=[10,90,40]\r\na1=Axis(Plots.Linear(x, y,legendentry=\"a\", epilogue = L\"\\label{Hplot}\"))\r\na2=Axis(Plots.Linear(x, y2,legendentry=\"b\", preamble = L\"\\addlegendimage{/pgfplots/refstyle=Hplot}\\addlegendentry{$H$}\"),style=\"axis y line*=right\")\r\n```\r\n\r\nThis results in a usable plot like this:\r\n![unbenannt](https://cloud.githubusercontent.com/assets/1103207/19890103/eb63d7a4-a038-11e6-8066-ed7d8d3b555b.PNG)\r\n\r\n\r\nI don't know if this is the best solution for the api, but I just wanted to share my \"improvement\".\r\n","created_at":"2016-11-01T12:42:22Z","updated_at":"2016-11-01T12:42:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"680401725663e1d71e49dae14c0ad6a43536dfff","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/62/commits","review_comments_url":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/62/comments","review_comment_url":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sisl/PGFPlots.jl/issues/62/comments","statuses_url":"https://api.github.com/repos/sisl/PGFPlots.jl/statuses/249ee25f7af5febe2004a07ed1e21544c8a3225d","head":{"label":"Tyde:preamble_and_epilogue","ref":"preamble_and_epilogue","sha":"249ee25f7af5febe2004a07ed1e21544c8a3225d","user":{"login":"Tyde","id":1103207,"avatar_url":"https://avatars.githubusercontent.com/u/1103207?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyde","html_url":"https://github.com/Tyde","followers_url":"https://api.github.com/users/Tyde/followers","following_url":"https://api.github.com/users/Tyde/following{/other_user}","gists_url":"https://api.github.com/users/Tyde/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyde/subscriptions","organizations_url":"https://api.github.com/users/Tyde/orgs","repos_url":"https://api.github.com/users/Tyde/repos","events_url":"https://api.github.com/users/Tyde/events{/privacy}","received_events_url":"https://api.github.com/users/Tyde/received_events","type":"User","site_admin":false},"repo":{"id":72526509,"name":"PGFPlots.jl","full_name":"Tyde/PGFPlots.jl","owner":{"login":"Tyde","id":1103207,"avatar_url":"https://avatars.githubusercontent.com/u/1103207?v=3","gravatar_id":"","url":"https://api.github.com/users/Tyde","html_url":"https://github.com/Tyde","followers_url":"https://api.github.com/users/Tyde/followers","following_url":"https://api.github.com/users/Tyde/following{/other_user}","gists_url":"https://api.github.com/users/Tyde/gists{/gist_id}","starred_url":"https://api.github.com/users/Tyde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tyde/subscriptions","organizations_url":"https://api.github.com/users/Tyde/orgs","repos_url":"https://api.github.com/users/Tyde/repos","events_url":"https://api.github.com/users/Tyde/events{/privacy}","received_events_url":"https://api.github.com/users/Tyde/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tyde/PGFPlots.jl","description":"This library uses the LaTeX package pgfplots to produce plots.","fork":true,"url":"https://api.github.com/repos/Tyde/PGFPlots.jl","forks_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/forks","keys_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/teams","hooks_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/hooks","issue_events_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/issues/events{/number}","events_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/events","assignees_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/assignees{/user}","branches_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/branches{/branch}","tags_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/tags","blobs_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/languages","stargazers_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/stargazers","contributors_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/contributors","subscribers_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/subscribers","subscription_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/subscription","commits_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/contents/{+path}","compare_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/merges","archive_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/downloads","issues_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/issues{/number}","pulls_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/labels{/name}","releases_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/releases{/id}","deployments_url":"https://api.github.com/repos/Tyde/PGFPlots.jl/deployments","created_at":"2016-11-01T10:32:09Z","updated_at":"2016-11-01T10:32:10Z","pushed_at":"2016-11-01T12:35:11Z","git_url":"git://github.com/Tyde/PGFPlots.jl.git","ssh_url":"git@github.com:Tyde/PGFPlots.jl.git","clone_url":"https://github.com/Tyde/PGFPlots.jl.git","svn_url":"https://github.com/Tyde/PGFPlots.jl","homepage":"","size":7771,"stargazers_count":0,"watchers_count":0,"language":"Julia","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":"sisl:master","ref":"master","sha":"af0dcd9efe59cd0936c20b7dcae015d157d77d33","user":{"login":"sisl","id":6294054,"avatar_url":"https://avatars.githubusercontent.com/u/6294054?v=3","gravatar_id":"","url":"https://api.github.com/users/sisl","html_url":"https://github.com/sisl","followers_url":"https://api.github.com/users/sisl/followers","following_url":"https://api.github.com/users/sisl/following{/other_user}","gists_url":"https://api.github.com/users/sisl/gists{/gist_id}","starred_url":"https://api.github.com/users/sisl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisl/subscriptions","organizations_url":"https://api.github.com/users/sisl/orgs","repos_url":"https://api.github.com/users/sisl/repos","events_url":"https://api.github.com/users/sisl/events{/privacy}","received_events_url":"https://api.github.com/users/sisl/received_events","type":"Organization","site_admin":false},"repo":{"id":20912259,"name":"PGFPlots.jl","full_name":"sisl/PGFPlots.jl","owner":{"login":"sisl","id":6294054,"avatar_url":"https://avatars.githubusercontent.com/u/6294054?v=3","gravatar_id":"","url":"https://api.github.com/users/sisl","html_url":"https://github.com/sisl","followers_url":"https://api.github.com/users/sisl/followers","following_url":"https://api.github.com/users/sisl/following{/other_user}","gists_url":"https://api.github.com/users/sisl/gists{/gist_id}","starred_url":"https://api.github.com/users/sisl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisl/subscriptions","organizations_url":"https://api.github.com/users/sisl/orgs","repos_url":"https://api.github.com/users/sisl/repos","events_url":"https://api.github.com/users/sisl/events{/privacy}","received_events_url":"https://api.github.com/users/sisl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sisl/PGFPlots.jl","description":"This library uses the LaTeX package pgfplots to produce plots.","fork":false,"url":"https://api.github.com/repos/sisl/PGFPlots.jl","forks_url":"https://api.github.com/repos/sisl/PGFPlots.jl/forks","keys_url":"https://api.github.com/repos/sisl/PGFPlots.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sisl/PGFPlots.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sisl/PGFPlots.jl/teams","hooks_url":"https://api.github.com/repos/sisl/PGFPlots.jl/hooks","issue_events_url":"https://api.github.com/repos/sisl/PGFPlots.jl/issues/events{/number}","events_url":"https://api.github.com/repos/sisl/PGFPlots.jl/events","assignees_url":"https://api.github.com/repos/sisl/PGFPlots.jl/assignees{/user}","branches_url":"https://api.github.com/repos/sisl/PGFPlots.jl/branches{/branch}","tags_url":"https://api.github.com/repos/sisl/PGFPlots.jl/tags","blobs_url":"https://api.github.com/repos/sisl/PGFPlots.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sisl/PGFPlots.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sisl/PGFPlots.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/sisl/PGFPlots.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sisl/PGFPlots.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/sisl/PGFPlots.jl/languages","stargazers_url":"https://api.github.com/repos/sisl/PGFPlots.jl/stargazers","contributors_url":"https://api.github.com/repos/sisl/PGFPlots.jl/contributors","subscribers_url":"https://api.github.com/repos/sisl/PGFPlots.jl/subscribers","subscription_url":"https://api.github.com/repos/sisl/PGFPlots.jl/subscription","commits_url":"https://api.github.com/repos/sisl/PGFPlots.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/sisl/PGFPlots.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/sisl/PGFPlots.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/sisl/PGFPlots.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/sisl/PGFPlots.jl/contents/{+path}","compare_url":"https://api.github.com/repos/sisl/PGFPlots.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sisl/PGFPlots.jl/merges","archive_url":"https://api.github.com/repos/sisl/PGFPlots.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sisl/PGFPlots.jl/downloads","issues_url":"https://api.github.com/repos/sisl/PGFPlots.jl/issues{/number}","pulls_url":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/sisl/PGFPlots.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/sisl/PGFPlots.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sisl/PGFPlots.jl/labels{/name}","releases_url":"https://api.github.com/repos/sisl/PGFPlots.jl/releases{/id}","deployments_url":"https://api.github.com/repos/sisl/PGFPlots.jl/deployments","created_at":"2014-06-17T06:11:18Z","updated_at":"2016-10-25T14:48:35Z","pushed_at":"2016-11-01T12:42:22Z","git_url":"git://github.com/sisl/PGFPlots.jl.git","ssh_url":"git@github.com:sisl/PGFPlots.jl.git","clone_url":"https://github.com/sisl/PGFPlots.jl.git","svn_url":"https://github.com/sisl/PGFPlots.jl","homepage":"","size":7771,"stargazers_count":29,"watchers_count":29,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":6,"forks":13,"open_issues":6,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/62"},"html":{"href":"https://github.com/sisl/PGFPlots.jl/pull/62"},"issue":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/issues/62"},"comments":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/sisl/PGFPlots.jl/statuses/249ee25f7af5febe2004a07ed1e21544c8a3225d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":55,"deletions":17,"changed_files":2}}
{"actor":{"display_login":"Tyde"}}