Title: streamtube coloring and positions depend on data order · Issue #4206 · plotly/plotly.js · GitHub
Open Graph Title: streamtube coloring and positions depend on data order · Issue #4206 · plotly/plotly.js
X Title: streamtube coloring and positions depend on data order · Issue #4206 · plotly/plotly.js
Description: var gd = document.getElementById('graphDiv'); var type = 'streamtube'; var allX = []; var allY = []; var allZ = []; var allU = []; var allV = []; var allW = []; var res = 10; var ni = res; var nj = res; var nk = res; var i, j, k; for(var...
Open Graph Description: var gd = document.getElementById('graphDiv'); var type = 'streamtube'; var allX = []; var allY = []; var allZ = []; var allU = []; var allV = []; var allW = []; var res = 10; var ni = res; var nj =...
X Description: var gd = document.getElementById('graphDiv'); var type = 'streamtube'; var allX = []; var allY = []; var allZ = []; var allU = []; var allV = []; var allW = []; var res = 10; var ni...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4206
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"streamtube coloring and positions depend on data order","articleBody":"````\r\nvar gd = document.getElementById('graphDiv');\r\n\r\nvar type = 'streamtube';\r\n\r\nvar allX = [];\r\nvar allY = [];\r\nvar allZ = [];\r\nvar allU = [];\r\nvar allV = [];\r\nvar allW = [];\r\n\r\nvar res = 10;\r\nvar ni = res;\r\nvar nj = res;\r\nvar nk = res;\r\nvar i, j, k;\r\n\r\nfor(var k = 0; k \u003c nk; k++) {\r\n for(var j = 0; j \u003c nj; j++) {\r\n for(var i = 0; i \u003c ni; i++) {\r\n var x = i;\r\n var y = j;\r\n var z = k;\r\n\r\n allX.push(x);\r\n allY.push(y);\r\n allZ.push(z);\r\n\r\n var u = 0;\r\n var v = 0;\r\n var w = z;\r\n\r\n allU.push(u);\r\n allV.push(v);\r\n allW.push(w);\r\n\r\n }\r\n }\r\n}\r\n\r\nvar allX2 = [];\r\nvar allY2 = [];\r\nvar allZ2 = [];\r\nvar allU2 = [];\r\nvar allV2 = [];\r\nvar allW2 = [];\r\n\r\nfor(var k = 0; k \u003c nk; k++) {\r\n for(var j = 0; j \u003c nj; j++) {\r\n for(var i = 0; i \u003c ni; i++) {\r\n var x = k;\r\n var y = j;\r\n var z = i;\r\n\r\n allX2.push(x);\r\n allY2.push(y);\r\n allZ2.push(z);\r\n\r\n var u = 0;\r\n var v = 0;\r\n var w = z;\r\n\r\n allU2.push(u);\r\n allV2.push(v);\r\n allW2.push(w);\r\n\r\n }\r\n }\r\n}\r\n\r\nPlotly.newPlot(gd, {\r\n data: [{\r\n type: type,\r\n x: allX,\r\n y: allY,\r\n z: allZ,\r\n u: allU,\r\n v: allV,\r\n w: allW,\r\n scene: 'scene1'\r\n },\r\n {\r\n type: type,\r\n x: allX2,\r\n y: allY2,\r\n z: allZ2,\r\n u: allU2,\r\n v: allV2,\r\n w: allW2,\r\n scene: 'scene2'\r\n },\r\n],\r\n layout: {\r\n width: 1200,\r\n height: 600,\r\n scene1: {\r\n domain: {\r\n x: [0, 0.45]\r\n }\r\n },\r\n scene2: {\r\n domain: {\r\n x: [0.5, 0.95]\r\n }\r\n },\r\n }\r\n}\r\n);\r\n````\r\n\r\n\r\n\r\nA codepen is available on https://codepen.io/emmanuelle-plotly/pen/PoYxZQv?editors=0010\r\n\r\nI would not expect the viz to depend on whether `x` or `z` is the fastest varying variable.","author":{"url":"https://github.com/emmanuelle","@type":"Person","name":"emmanuelle"},"datePublished":"2019-09-19T15:04:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/4206/plotly.js/issues/4206"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:02f7eab5-4928-94c8-6174-fe57f2cb4e9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A75E:CB088:2169D99:304AE1F:6A57A9C7 |
| html-safe-nonce | 3787d97f141e85afd585449629d3d1055f19f777aabe2e641b039e22cc4db07f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzVFOkNCMDg4OjIxNjlEOTk6MzA0QUUxRjo2QTU3QTlDNyIsInZpc2l0b3JfaWQiOiIxMzU3Mzc2NjM4NDY4NzI5Mjg3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7237de025ef56fd4a04cb9995bb353c0018a661e8700bea686183fbbb63ec8a7 |
| hovercard-subject-tag | issue:495859630 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.js/4206/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55bebfbbf2b2dbe0b63cbda22cf269e07b8c245c5042bcce06f8e270642189ff/plotly/plotly.js/issues/4206 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55bebfbbf2b2dbe0b63cbda22cf269e07b8c245c5042bcce06f8e270642189ff/plotly/plotly.js/issues/4206 |
| og:image:alt | var gd = document.getElementById('graphDiv'); var type = 'streamtube'; var allX = []; var allY = []; var allZ = []; var allU = []; var allV = []; var allW = []; var res = 10; var ni = res; var nj =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | emmanuelle |
| hostname | github.com |
| expected-hostname | github.com |
| None | 017a07c29bdd8a37b5907fc9a689338deb7103b5af7f56714193b2700229b3df |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4cd16a676f89d1cedb932671a5c2d20b8e60f86a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width