{"action":"created","comment":{"url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/comments/348462647","pull_request_review_id":319814559,"id":348462647,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM0ODQ2MjY0Nw==","diff_hunk":"@@ -377,3 +377,99 @@ savefigs(\"patch-inline\", ans) # hide\n [\\[.pdf\\]](patch-inline.pdf), [\\[generated .tex\\]](patch-inline.tex)\n \n ![](patch-inline.svg)\n+\n+-----------------------\n+\n+## 3D Waterfall\n+\n+```@example pgf\n+using Random\n+using Distributions\n+\n+Random.seed!(42)\n+#Generate Data\n+x_min = -10 # xrange to plot\n+x_max = 10\n+μ_min = -5\n+μ_max = 5\n+\n+dist = (μ, σ) ->  Normal(μ, σ)      # use normal distributions\n+dists = [dist(-6+i, 1+0.3*i) for i in 1:10]       # make the set of distributions we're going to plot\n+rnd = rand.(Truncated.(dists, x_min, x_max),20)  # creates random scatter points\n+dat_pdf = [(x) ->  pdf(d,x) for d in dists ] # Get the pdf of the dists\n+\n+x_pnts = collect(x_min:0.05:x_max)   # point density for pdf's\n+x_pnts_ext =[[x_pnts[1]]; x_pnts ; [x_pnts[end]]] #add redundant points at the ends, this is needed for nicer fill\n+\n+\n+axis = @pgf Axis(\n+        {\n+            width = raw\"1\\textwidth\",\n+            height = raw\"0.6\\textwidth\",\n+            grid = \"both\",\n+            xmax = x_max,\n+            xmin = x_min,\n+            zmin = 0,\n+            \"axis background/.style={fill=gray!10}\",    # add some beauty\n+            \"set layers\",   # this is needed to make the scatter points appear behind the graphs\n+            view = raw\"{49}{25}\", # viewpoint\n+            ytick = collect(0:9),\n+            ztick = collect(0:0.1:1),\n+        },\n+        );\n+\n+@pgf area = Plot3(\n+        {\n+            \"no marks\",\n+            style =\"{dashed}\",\n+            color = \"black\",\n+            fill = \"yellow!60\",\n+            \"fill opacity = 0.65\",\n+            \"on layer\" = \"axis background\", # so we can see the grid lines trought\n+        },\n+            Table(x=[dists[1].μ-dists[1].σ, dists[end].μ-dists[end].σ, dists[end].μ+dists[end].σ, dists[1].μ+dists[1].σ], y=[length(rnd)-1, 0, 0, length(rnd)-1],z=[0, 0, 0, 0] ),\n+            raw\"\\closedcycle\",\n+        )\n+        push!(axis,area)\n+\n+\n+@pgf for i in eachindex(dists)\n+        scatter = Plot3(\n+            {\n+                \"only marks\",\n+                color = \"red!80\",\n+                \"mark options\" = raw\"{scale=0.4}\",\n+                \"mark layer\" = \"like plot\",     # set the markers on the same layer as the plot\n+                \"on layer\" = \"axis background\",\n+            },\n+                Table(x = rnd[i], y= (length(dists)-i) *ones(length(rnd[i])), z=zeros(length(rnd[i].+0.1)) )\n+            )\n+            push!(axis,scatter)\n+\n+        if i%2 ==1\n+            curve= Plot3(\n+                {\n+                    \"no marks\",\n+                    style =\"{thick}\",\n+                    color = \"blue\",\n+                },\n+                    Table(x = x_pnts, y= (length(dists)-i) *ones(length(x_pnts)), z=dat_pdf[i](x_pnts) ),\n+\n+                )\n+\n+            fill= Plot3(\n+                {\n+                    draw =\"none\",\n+                    fill = \"blue\",\n+                    \"fill opacity=0.25\",\n+                },\n+                    Table(x = x_pnts_ext, y= (length(dists)-i) *ones(length(x_pnts_ext)), z=[[0];dat_pdf[i](x_pnts) ;[0]]),","path":"docs/src/examples/gallery.md","position":null,"original_position":90,"commit_id":"c8c6ad903664de286a45c3733801f72634ca6dde","original_commit_id":"c70d4f2d1e6d33c68a6f1e47bb74e71126237d40","user":{"login":"MatFi","id":17099957,"node_id":"MDQ6VXNlcjE3MDk5OTU3","avatar_url":"https://avatars0.githubusercontent.com/u/17099957?v=4","gravatar_id":"","url":"https://api.github.com/users/MatFi","html_url":"https://github.com/MatFi","followers_url":"https://api.github.com/users/MatFi/followers","following_url":"https://api.github.com/users/MatFi/following{/other_user}","gists_url":"https://api.github.com/users/MatFi/gists{/gist_id}","starred_url":"https://api.github.com/users/MatFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatFi/subscriptions","organizations_url":"https://api.github.com/users/MatFi/orgs","repos_url":"https://api.github.com/users/MatFi/repos","events_url":"https://api.github.com/users/MatFi/events{/privacy}","received_events_url":"https://api.github.com/users/MatFi/received_events","type":"User","site_admin":false},"body":"But the the function also need at last 2 input arguments (iterator `i` and `pnts`). the function i self has to check the size of `pnts` and pad `dat_pdf[i](x_pnts)` with zeros depending on the length of `pnts`... I think it there is less overhead when don't touching this.","created_at":"2019-11-20T12:49:38Z","updated_at":"2019-11-20T12:49:38Z","html_url":"https://github.com/KristofferC/PGFPlotsX.jl/pull/191#discussion_r348462647","pull_request_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/comments/348462647"},"html":{"href":"https://github.com/KristofferC/PGFPlotsX.jl/pull/191#discussion_r348462647"},"pull_request":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191"}},"in_reply_to_id":348427818},"pull_request":{"url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191","id":343296924,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQzMjk2OTI0","html_url":"https://github.com/KristofferC/PGFPlotsX.jl/pull/191","diff_url":"https://github.com/KristofferC/PGFPlotsX.jl/pull/191.diff","patch_url":"https://github.com/KristofferC/PGFPlotsX.jl/pull/191.patch","issue_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues/191","number":191,"state":"open","locked":false,"title":"3D-Waterfall example","user":{"login":"MatFi","id":17099957,"node_id":"MDQ6VXNlcjE3MDk5OTU3","avatar_url":"https://avatars0.githubusercontent.com/u/17099957?v=4","gravatar_id":"","url":"https://api.github.com/users/MatFi","html_url":"https://github.com/MatFi","followers_url":"https://api.github.com/users/MatFi/followers","following_url":"https://api.github.com/users/MatFi/following{/other_user}","gists_url":"https://api.github.com/users/MatFi/gists{/gist_id}","starred_url":"https://api.github.com/users/MatFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatFi/subscriptions","organizations_url":"https://api.github.com/users/MatFi/orgs","repos_url":"https://api.github.com/users/MatFi/repos","events_url":"https://api.github.com/users/MatFi/events{/privacy}","received_events_url":"https://api.github.com/users/MatFi/received_events","type":"User","site_admin":false},"body":"See [this post](https://discourse.julialang.org/t/how-can-i-make-this-plot/31278/4). Have added some beautifications. I'm not sure if this is done correctly. \r\n![plot](https://user-images.githubusercontent.com/17099957/69233815-e5af8100-0b8d-11ea-8cb8-890b519404be.png)\r\n","created_at":"2019-11-20T11:04:47Z","updated_at":"2019-11-20T12:49:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f8f56e0d934f10b99bba9486145da6f86f85dd1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191/commits","review_comments_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191/comments","review_comment_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues/191/comments","statuses_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/statuses/c8c6ad903664de286a45c3733801f72634ca6dde","head":{"label":"MatFi:master","ref":"master","sha":"c8c6ad903664de286a45c3733801f72634ca6dde","user":{"login":"MatFi","id":17099957,"node_id":"MDQ6VXNlcjE3MDk5OTU3","avatar_url":"https://avatars0.githubusercontent.com/u/17099957?v=4","gravatar_id":"","url":"https://api.github.com/users/MatFi","html_url":"https://github.com/MatFi","followers_url":"https://api.github.com/users/MatFi/followers","following_url":"https://api.github.com/users/MatFi/following{/other_user}","gists_url":"https://api.github.com/users/MatFi/gists{/gist_id}","starred_url":"https://api.github.com/users/MatFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatFi/subscriptions","organizations_url":"https://api.github.com/users/MatFi/orgs","repos_url":"https://api.github.com/users/MatFi/repos","events_url":"https://api.github.com/users/MatFi/events{/privacy}","received_events_url":"https://api.github.com/users/MatFi/received_events","type":"User","site_admin":false},"repo":{"id":222902078,"node_id":"MDEwOlJlcG9zaXRvcnkyMjI5MDIwNzg=","name":"PGFPlotsX.jl","full_name":"MatFi/PGFPlotsX.jl","private":false,"owner":{"login":"MatFi","id":17099957,"node_id":"MDQ6VXNlcjE3MDk5OTU3","avatar_url":"https://avatars0.githubusercontent.com/u/17099957?v=4","gravatar_id":"","url":"https://api.github.com/users/MatFi","html_url":"https://github.com/MatFi","followers_url":"https://api.github.com/users/MatFi/followers","following_url":"https://api.github.com/users/MatFi/following{/other_user}","gists_url":"https://api.github.com/users/MatFi/gists{/gist_id}","starred_url":"https://api.github.com/users/MatFi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatFi/subscriptions","organizations_url":"https://api.github.com/users/MatFi/orgs","repos_url":"https://api.github.com/users/MatFi/repos","events_url":"https://api.github.com/users/MatFi/events{/privacy}","received_events_url":"https://api.github.com/users/MatFi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MatFi/PGFPlotsX.jl","description":"Create plots in Julia using the PGFPlots LaTeX package","fork":true,"url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl","forks_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/forks","keys_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/teams","hooks_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/hooks","issue_events_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/issues/events{/number}","events_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/events","assignees_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/assignees{/user}","branches_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/branches{/branch}","tags_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/tags","blobs_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/languages","stargazers_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/stargazers","contributors_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/contributors","subscribers_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/subscribers","subscription_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/subscription","commits_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/contents/{+path}","compare_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/merges","archive_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/downloads","issues_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/issues{/number}","pulls_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/labels{/name}","releases_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/releases{/id}","deployments_url":"https://api.github.com/repos/MatFi/PGFPlotsX.jl/deployments","created_at":"2019-11-20T09:39:21Z","updated_at":"2019-11-20T12:41:56Z","pushed_at":"2019-11-20T12:41:53Z","git_url":"git://github.com/MatFi/PGFPlotsX.jl.git","ssh_url":"git@github.com:MatFi/PGFPlotsX.jl.git","clone_url":"https://github.com/MatFi/PGFPlotsX.jl.git","svn_url":"https://github.com/MatFi/PGFPlotsX.jl","homepage":"","size":12028,"stargazers_count":0,"watchers_count":0,"language":"Julia","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"KristofferC:master","ref":"master","sha":"bed8c09a1636ec884d2ad6897124ae853a8d12c7","user":{"login":"KristofferC","id":1282691,"node_id":"MDQ6VXNlcjEyODI2OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1282691?v=4","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"repo":{"id":90408532,"node_id":"MDEwOlJlcG9zaXRvcnk5MDQwODUzMg==","name":"PGFPlotsX.jl","full_name":"KristofferC/PGFPlotsX.jl","private":false,"owner":{"login":"KristofferC","id":1282691,"node_id":"MDQ6VXNlcjEyODI2OTE=","avatar_url":"https://avatars1.githubusercontent.com/u/1282691?v=4","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"html_url":"https://github.com/KristofferC/PGFPlotsX.jl","description":"Create plots in Julia using the PGFPlots LaTeX package","fork":false,"url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl","forks_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/forks","keys_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/teams","hooks_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/hooks","issue_events_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues/events{/number}","events_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/events","assignees_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/assignees{/user}","branches_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/branches{/branch}","tags_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/tags","blobs_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/languages","stargazers_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/stargazers","contributors_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/contributors","subscribers_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/subscribers","subscription_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/subscription","commits_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/contents/{+path}","compare_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/merges","archive_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/downloads","issues_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues{/number}","pulls_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/labels{/name}","releases_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/releases{/id}","deployments_url":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/deployments","created_at":"2017-05-05T19:09:15Z","updated_at":"2019-11-18T08:21:05Z","pushed_at":"2019-11-20T12:41:55Z","git_url":"git://github.com/KristofferC/PGFPlotsX.jl.git","ssh_url":"git@github.com:KristofferC/PGFPlotsX.jl.git","clone_url":"https://github.com/KristofferC/PGFPlotsX.jl.git","svn_url":"https://github.com/KristofferC/PGFPlotsX.jl","homepage":"","size":12052,"stargazers_count":122,"watchers_count":122,"language":"Julia","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":19,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":23,"open_issues":19,"watchers":122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191"},"html":{"href":"https://github.com/KristofferC/PGFPlotsX.jl/pull/191"},"issue":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues/191"},"comments":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/issues/191/comments"},"review_comments":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191/comments"},"review_comment":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/pulls/191/commits"},"statuses":{"href":"https://api.github.com/repos/KristofferC/PGFPlotsX.jl/statuses/c8c6ad903664de286a45c3733801f72634ca6dde"}},"author_association":"NONE"}}
{"actor":{"display_login":"MatFi"}}