Title: slight change in surface opacity changes image completely · Issue #2690 · plotly/plotly.py · GitHub
Open Graph Title: slight change in surface opacity changes image completely · Issue #2690 · plotly/plotly.py
X Title: slight change in surface opacity changes image completely · Issue #2690 · plotly/plotly.py
Description: I need to adjust the opacity of a surface, so I can overlay two surfaces on top of each other (not sure how else to do that). But on a very small change from 1 to slightly below the look of the plot changes a lot. opacity=1 opacity=0.999...
Open Graph Description: I need to adjust the opacity of a surface, so I can overlay two surfaces on top of each other (not sure how else to do that). But on a very small change from 1 to slightly below the look of the plo...
X Description: I need to adjust the opacity of a surface, so I can overlay two surfaces on top of each other (not sure how else to do that). But on a very small change from 1 to slightly below the look of the plo...
Opengraph URL: https://github.com/plotly/plotly.py/issues/2690
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"slight change in surface opacity changes image completely","articleBody":"I need to adjust the opacity of a surface, so I can overlay two surfaces on top of each other (not sure how else to do that). But on a very small change from 1 to slightly below the look of the plot changes a lot.\r\n\r\n`opacity=1`\r\n\r\n\r\n`opacity=0.99999`\r\n\r\n\r\n\r\n```\r\nimport numpy as np\r\nfrom plotly.graph_objs import Figure, Surface\r\n\r\nx = np.array(\r\n [\r\n [0, 0, 0, 0, 0, 0, 0, 0, 0],\r\n [\r\n 7.07106781e-01,\r\n 0.5,\r\n 4.32978028e-17,\r\n -0.5,\r\n -7.07106781e-01,\r\n -0.5,\r\n -1.29893408e-16,\r\n 0.5,\r\n 7.07106781e-01,\r\n ],\r\n [\r\n 1,\r\n 7.07106781e-01,\r\n 6.12323400e-17,\r\n -7.07106781e-01,\r\n -1,\r\n -7.07106781e-01,\r\n -1.83697020e-16,\r\n 7.07106781e-01,\r\n 1,\r\n ],\r\n [\r\n 7.07106781e-01,\r\n 0.5,\r\n 4.32978028e-17,\r\n -0.5,\r\n -7.07106781e-01,\r\n -0.5,\r\n -1.29893408e-16,\r\n 0.5,\r\n 7.07106781e-01,\r\n ],\r\n [\r\n 1.22464680e-16,\r\n 8.65956056e-17,\r\n 7.49879891e-33,\r\n -8.65956056e-17,\r\n -1.22464680e-16,\r\n -8.65956056e-17,\r\n -2.24963967e-32,\r\n 8.65956056e-17,\r\n 1.22464680e-16,\r\n ],\r\n ]\r\n)\r\ny = np.array(\r\n [\r\n [0, 0, 0, 0, 0, -0, -0, -0, 0],\r\n [0, 0.5, 7.07106781e-01, 0.5, 8.65956056e-17, -0.5, -7.07106781e-01, -0.5, 0],\r\n [\r\n 0,\r\n 7.07106781e-01,\r\n 1,\r\n 7.07106781e-01,\r\n 1.22464680e-16,\r\n -7.07106781e-01,\r\n -1,\r\n -7.07106781e-01,\r\n 0,\r\n ],\r\n [0, 0.5, 7.07106781e-01, 0.5, 8.65956056e-17, -0.5, -7.07106781e-01, -0.5, 0],\r\n [\r\n 0,\r\n 8.65956056e-17,\r\n 1.22464680e-16,\r\n 8.65956056e-17,\r\n 1.49975978e-32,\r\n -8.65956056e-17,\r\n -1.22464680e-16,\r\n -8.65956056e-17,\r\n 0,\r\n ],\r\n ]\r\n)\r\nz = np.array(\r\n [\r\n [1, 1, 1, 1, 1, 1, 1, 1, 1],\r\n [\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n 7.07106781e-01,\r\n ],\r\n [\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n 6.12323400e-17,\r\n ],\r\n [\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n -7.07106781e-01,\r\n ],\r\n [-1, -1, -1, -1, -1, -1, -1, -1, -1],\r\n ]\r\n)\r\ndata = [Surface(x=x, y=y, z=z, surfacecolor=np.ones(x.shape), opacity=0.99999)]\r\nfig = Figure(data=data)\r\nfig.show()\r\n```\r\n\r\nsorry about the numbers, they've been generated by some external library\r\n\r\nmy actual use case is like this where there are weird lines appearing on the plot by setting opacity\r\n\r\n","author":{"url":"https://github.com/paddyroddy","@type":"Person","name":"paddyroddy"},"datePublished":"2020-08-05T21:23:08Z","url":"https://github.com/plotly/plotly.py/issues/2690"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:836d51a3-f3ed-6c58-b328-db73fc6be4d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C078:CE438:7CDC3D:A7B60C:6B01BBF2 |
| html-safe-nonce | 644e7483fe615e7895198f7a530709c8aee77528afb60dc3b015096f3922f90e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDc4OkNFNDM4OjdDREMzRDpBN0I2MEM6NkIwMUJCRjIiLCJ2aXNpdG9yX2lkIjoiMTgyOTk4MDczMDc2NDE0NzY5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe6750829a282bca70f27c9f9aca57bca80ee3a6fa4c597510a9d9d9f7bb0c45 |
| hovercard-subject-tag | issue:673856178 |
| 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.py/2690/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbd3892ddd80342c7b1952b57b1fa3805923739e5b46798b9d45d316eb5506db/plotly/plotly.py/issues/2690 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbd3892ddd80342c7b1952b57b1fa3805923739e5b46798b9d45d316eb5506db/plotly/plotly.py/issues/2690 |
| og:image:alt | I need to adjust the opacity of a surface, so I can overlay two surfaces on top of each other (not sure how else to do that). But on a very small change from 1 to slightly below the look of the plo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | paddyroddy |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.py git https://github.com/plotly/plotly.py.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579099 |
| octolytics-dimension-repository_nwo | plotly/plotly.py |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579099 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.py |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width