{"action":"created","comment":{"url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/comments/87606979","pull_request_review_id":8215345,"id":87606979,"diff_hunk":"@@ -13,3 +36,184 @@ function contour1()\n     layout = Layout(title=\"Setting the X and Y Coordinates in a Contour Plot\")\n     plot(trace, layout)\n end\n+\n+function contour4()\n+    z = [10     10.625  12.5  15.625  20\n+         5.625  6.25    8.125 11.25   15.625\n+         2.5    3.125   5.    8.125   12.5\n+         0.625  1.25    3.125 6.25    10.625\n+         0      0.625   2.5   5.625   10]\n+    data = contour(;z=z, colorscale=\"Jet\")\n+\n+    layout = Layout(;title=\"Colorscale for Contour Plot\")\n+    plot(data, layout)\n+end\n+\n+function contour5()\n+    z = [10     10.625  12.5  15.625  20\n+         5.625  6.25    8.125 11.25   15.625\n+         2.5    3.125   5.    8.125   12.5\n+         0.625  1.25    3.125 6.25    10.625\n+         0      0.625   2.5   5.625   10]\n+    data = contour(;z=z,\n+                   colorscale=\"Jet\",\n+                   autocontour=false,\n+                   contours=Dict(:start=>0, :end=>8, :size=>2))\n+\n+    layout = Layout(;title=\"Customizing Size and Range of Contours\")\n+    plot(data, layout)\n+end\n+\n+function contour6()\n+    z = [10     10.625  12.5  15.625  20\n+         5.625  6.25    8.125 11.25   15.625\n+         2.5    3.125   5.    8.125   12.5\n+         0.625  1.25    3.125 6.25    10.625\n+         0      0.625   2.5   5.625   10]\n+    data = contour(;z=z, colorscale=\"Jet\", dx=10, x0=5, dy=10, y0=10)\n+\n+    layout = Layout(;title=\"Customizing Spacing Between X and Y Axis Ticks\")\n+\n+    plot(data, layout)\n+end\n+\n+function contour7()\n+    z = [[nothing, nothing, nothing, 12, 13, 14, 15, 16],\n+        [nothing, 1, nothing, 11, nothing, nothing, nothing, 17],\n+        [nothing, 2, 6, 7, nothing, nothing, nothing, 18],\n+        [nothing, 3, nothing, 8, nothing, nothing, nothing, 19],\n+        [5, 4, 10, 9, nothing, nothing, nothing, 20],\n+        [nothing, nothing, nothing, 27, nothing, nothing, nothing, 21],\n+        [nothing, nothing, nothing, 26, 25, 24, 23, 22]]\n+    trace1 = contour(;z=z, showscale=false, xaxis=\"x1\", yaxis=\"y1\")\n+    trace2 = contour(;z=z, connectgaps=true, showscale=false,\n+                     xaxis=\"x2\", yaxis=\"y2\")\n+    trace3 = heatmap(;z=z, zsmooth=\"best\",showscale=false,\n+                     xaxis=\"x3\", yaxis=\"y3\")\n+    trace4 = heatmap(;z=z, zsmooth=\"best\", connectgaps=true,\n+                     showscale=false, xaxis=\"x4\", yaxis=\"y4\")\n+    data = [trace1, trace2, trace3, trace4]\n+\n+    t = \"Connect the Gaps Between Null Values in the Z Matrix\"\n+    layout = Layout(;title=t,\n+                    xaxis=attr(;domain=[0,0.45], anchor=\"y1\"),\n+                    yaxis=attr(;domain=[0.55,1], anchor=\"x1\"),\n+                    xaxis2=attr(;domain=[0.55,1], anchor=\"y2\"),\n+                    yaxis2=attr(;domain=[0.55,1], anchor=\"x2\"),\n+                    xaxis3=attr(;domain=[0,0.45], anchor=\"y3\"),\n+                    yaxis3=attr(;domain=[0,0.45], anchor=\"x3\"),\n+                    xaxis4=attr(;domain=[0.55,1], anchor=\"y4\"),\n+                    yaxis4=attr(;domain=[0,0.45], anchor=\"x4\"))\n+    plot(data, layout)\n+end\n+\n+function contour8()","path":"examples/contour.jl","position":105,"original_position":105,"commit_id":"bac1f82e8c25a0f12824e0ab3a0584d20a4ff833","original_commit_id":"bac1f82e8c25a0f12824e0ab3a0584d20a4ff833","user":{"login":"caimichael","id":7290408,"avatar_url":"https://avatars.githubusercontent.com/u/7290408?v=3","gravatar_id":"","url":"https://api.github.com/users/caimichael","html_url":"https://github.com/caimichael","followers_url":"https://api.github.com/users/caimichael/followers","following_url":"https://api.github.com/users/caimichael/following{/other_user}","gists_url":"https://api.github.com/users/caimichael/gists{/gist_id}","starred_url":"https://api.github.com/users/caimichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caimichael/subscriptions","organizations_url":"https://api.github.com/users/caimichael/orgs","repos_url":"https://api.github.com/users/caimichael/repos","events_url":"https://api.github.com/users/caimichael/events{/privacy}","received_events_url":"https://api.github.com/users/caimichael/received_events","type":"User","site_admin":false},"body":"I was wondering how you are able to exclude the domain/range information (x1,x2,y1,y2)/what exactly relayout! does? ","created_at":"2016-11-11T15:37:45Z","updated_at":"2016-11-11T15:37:45Z","html_url":"https://github.com/spencerlyon2/PlotlyJS.jl/pull/95#discussion_r87606979","pull_request_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/comments/87606979"},"html":{"href":"https://github.com/spencerlyon2/PlotlyJS.jl/pull/95#discussion_r87606979"},"pull_request":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95","id":93256808,"html_url":"https://github.com/spencerlyon2/PlotlyJS.jl/pull/95","diff_url":"https://github.com/spencerlyon2/PlotlyJS.jl/pull/95.diff","patch_url":"https://github.com/spencerlyon2/PlotlyJS.jl/pull/95.patch","issue_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues/95","number":95,"state":"open","locked":false,"title":"Complete Contour Examples","user":{"login":"caimichael","id":7290408,"avatar_url":"https://avatars.githubusercontent.com/u/7290408?v=3","gravatar_id":"","url":"https://api.github.com/users/caimichael","html_url":"https://github.com/caimichael","followers_url":"https://api.github.com/users/caimichael/followers","following_url":"https://api.github.com/users/caimichael/following{/other_user}","gists_url":"https://api.github.com/users/caimichael/gists{/gist_id}","starred_url":"https://api.github.com/users/caimichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caimichael/subscriptions","organizations_url":"https://api.github.com/users/caimichael/orgs","repos_url":"https://api.github.com/users/caimichael/repos","events_url":"https://api.github.com/users/caimichael/events{/privacy}","received_events_url":"https://api.github.com/users/caimichael/received_events","type":"User","site_admin":false},"body":"I remember you mentioning that you might want contour7() refactored to more closely follow PlotlyJS.jl conventions, but I couldn't quite see how. Feedback on that one would be appreciated!","created_at":"2016-11-11T00:09:14Z","updated_at":"2016-11-11T15:37:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9e6e8f95a8986ebb80cb7c7d749016e6afe5c4fb","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95/commits","review_comments_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95/comments","review_comment_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues/95/comments","statuses_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/statuses/bac1f82e8c25a0f12824e0ab3a0584d20a4ff833","head":{"label":"caimichael:master","ref":"master","sha":"bac1f82e8c25a0f12824e0ab3a0584d20a4ff833","user":{"login":"caimichael","id":7290408,"avatar_url":"https://avatars.githubusercontent.com/u/7290408?v=3","gravatar_id":"","url":"https://api.github.com/users/caimichael","html_url":"https://github.com/caimichael","followers_url":"https://api.github.com/users/caimichael/followers","following_url":"https://api.github.com/users/caimichael/following{/other_user}","gists_url":"https://api.github.com/users/caimichael/gists{/gist_id}","starred_url":"https://api.github.com/users/caimichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caimichael/subscriptions","organizations_url":"https://api.github.com/users/caimichael/orgs","repos_url":"https://api.github.com/users/caimichael/repos","events_url":"https://api.github.com/users/caimichael/events{/privacy}","received_events_url":"https://api.github.com/users/caimichael/received_events","type":"User","site_admin":false},"repo":{"id":68631708,"name":"PlotlyJS.jl","full_name":"caimichael/PlotlyJS.jl","owner":{"login":"caimichael","id":7290408,"avatar_url":"https://avatars.githubusercontent.com/u/7290408?v=3","gravatar_id":"","url":"https://api.github.com/users/caimichael","html_url":"https://github.com/caimichael","followers_url":"https://api.github.com/users/caimichael/followers","following_url":"https://api.github.com/users/caimichael/following{/other_user}","gists_url":"https://api.github.com/users/caimichael/gists{/gist_id}","starred_url":"https://api.github.com/users/caimichael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caimichael/subscriptions","organizations_url":"https://api.github.com/users/caimichael/orgs","repos_url":"https://api.github.com/users/caimichael/repos","events_url":"https://api.github.com/users/caimichael/events{/privacy}","received_events_url":"https://api.github.com/users/caimichael/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caimichael/PlotlyJS.jl","description":"Julia wrapper/API for plotly.js","fork":true,"url":"https://api.github.com/repos/caimichael/PlotlyJS.jl","forks_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/forks","keys_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/teams","hooks_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/hooks","issue_events_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/issues/events{/number}","events_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/events","assignees_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/assignees{/user}","branches_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/branches{/branch}","tags_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/tags","blobs_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/languages","stargazers_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/stargazers","contributors_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/contributors","subscribers_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/subscribers","subscription_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/subscription","commits_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/contents/{+path}","compare_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/merges","archive_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/downloads","issues_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/issues{/number}","pulls_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/labels{/name}","releases_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/releases{/id}","deployments_url":"https://api.github.com/repos/caimichael/PlotlyJS.jl/deployments","created_at":"2016-09-19T17:58:17Z","updated_at":"2016-11-10T23:50:17Z","pushed_at":"2016-11-11T15:29:51Z","git_url":"git://github.com/caimichael/PlotlyJS.jl.git","ssh_url":"git@github.com:caimichael/PlotlyJS.jl.git","clone_url":"https://github.com/caimichael/PlotlyJS.jl.git","svn_url":"https://github.com/caimichael/PlotlyJS.jl","homepage":null,"size":10128,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"spencerlyon2:master","ref":"master","sha":"90c7c7d7dd92c66ed40b57fbfe64fafc59242445","user":{"login":"spencerlyon2","id":1001948,"avatar_url":"https://avatars.githubusercontent.com/u/1001948?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerlyon2","html_url":"https://github.com/spencerlyon2","followers_url":"https://api.github.com/users/spencerlyon2/followers","following_url":"https://api.github.com/users/spencerlyon2/following{/other_user}","gists_url":"https://api.github.com/users/spencerlyon2/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerlyon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerlyon2/subscriptions","organizations_url":"https://api.github.com/users/spencerlyon2/orgs","repos_url":"https://api.github.com/users/spencerlyon2/repos","events_url":"https://api.github.com/users/spencerlyon2/events{/privacy}","received_events_url":"https://api.github.com/users/spencerlyon2/received_events","type":"User","site_admin":false},"repo":{"id":46603526,"name":"PlotlyJS.jl","full_name":"spencerlyon2/PlotlyJS.jl","owner":{"login":"spencerlyon2","id":1001948,"avatar_url":"https://avatars.githubusercontent.com/u/1001948?v=3","gravatar_id":"","url":"https://api.github.com/users/spencerlyon2","html_url":"https://github.com/spencerlyon2","followers_url":"https://api.github.com/users/spencerlyon2/followers","following_url":"https://api.github.com/users/spencerlyon2/following{/other_user}","gists_url":"https://api.github.com/users/spencerlyon2/gists{/gist_id}","starred_url":"https://api.github.com/users/spencerlyon2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencerlyon2/subscriptions","organizations_url":"https://api.github.com/users/spencerlyon2/orgs","repos_url":"https://api.github.com/users/spencerlyon2/repos","events_url":"https://api.github.com/users/spencerlyon2/events{/privacy}","received_events_url":"https://api.github.com/users/spencerlyon2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spencerlyon2/PlotlyJS.jl","description":"Julia wrapper/API for plotly.js","fork":false,"url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl","forks_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/forks","keys_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/teams","hooks_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/hooks","issue_events_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues/events{/number}","events_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/events","assignees_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/assignees{/user}","branches_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/branches{/branch}","tags_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/tags","blobs_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/git/refs{/sha}","trees_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/statuses/{sha}","languages_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/languages","stargazers_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/stargazers","contributors_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/contributors","subscribers_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/subscribers","subscription_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/subscription","commits_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/commits{/sha}","git_commits_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/git/commits{/sha}","comments_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/comments{/number}","issue_comment_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues/comments{/number}","contents_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/contents/{+path}","compare_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/merges","archive_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/downloads","issues_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues{/number}","pulls_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls{/number}","milestones_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/milestones{/number}","notifications_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/labels{/name}","releases_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/releases{/id}","deployments_url":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/deployments","created_at":"2015-11-21T06:06:46Z","updated_at":"2016-10-27T03:50:27Z","pushed_at":"2016-11-11T00:09:14Z","git_url":"git://github.com/spencerlyon2/PlotlyJS.jl.git","ssh_url":"git@github.com:spencerlyon2/PlotlyJS.jl.git","clone_url":"https://github.com/spencerlyon2/PlotlyJS.jl.git","svn_url":"https://github.com/spencerlyon2/PlotlyJS.jl","homepage":null,"size":11090,"stargazers_count":46,"watchers_count":46,"language":"Julia","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":21,"mirror_url":null,"open_issues_count":22,"forks":21,"open_issues":22,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95"},"html":{"href":"https://github.com/spencerlyon2/PlotlyJS.jl/pull/95"},"issue":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues/95"},"comments":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/spencerlyon2/PlotlyJS.jl/statuses/bac1f82e8c25a0f12824e0ab3a0584d20a4ff833"}}}}
{"actor":{"display_login":"caimichael"}}