Title: The opacityscale, 'extremes', has constant opacity equal to 1 · Issue #4723 · plotly/plotly.js · GitHub
Open Graph Title: The opacityscale, 'extremes', has constant opacity equal to 1 · Issue #4723 · plotly/plotly.js
X Title: The opacityscale, 'extremes', has constant opacity equal to 1 · Issue #4723 · plotly/plotly.js
Description: The function createWave() plotly.js/src/traces/surface/defaults.js Line 19 in d37895b function createWave(n, minOpacity) { generates an opacityscale with all opacities equal to 1, because: Math.max(1, Math.min(0, v)) // line 27 is 1 for ...
Open Graph Description: The function createWave() plotly.js/src/traces/surface/defaults.js Line 19 in d37895b function createWave(n, minOpacity) { generates an opacityscale with all opacities equal to 1, because: Math.max...
X Description: The function createWave() plotly.js/src/traces/surface/defaults.js Line 19 in d37895b function createWave(n, minOpacity) { generates an opacityscale with all opacities equal to 1, because: Math.max...
Opengraph URL: https://github.com/plotly/plotly.js/issues/4723
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The opacityscale, 'extremes', has constant opacity equal to 1","articleBody":"The function `createWave()` [https://github.com/plotly/plotly.js/blob/d37895bd64227433229f2b3f91c9e14fd6ec7b89/src/traces/surface/defaults.js#L19](https://github.com/plotly/plotly.js/blob/d37895bd64227433229f2b3f91c9e14fd6ec7b89/src/traces/surface/defaults.js#L19) generates an opacityscale with all opacities equal to 1, because:\r\n```\r\n Math.max(1, Math.min(0, v)) // line 27\r\n```\r\nis 1 for any v.\r\n\r\nReplacing it by:\r\n```\r\n Math.min(1, Math.max(0, v)) \r\n```\r\nremoves the actual drawback, and leads to a non-constant opacityscale.\r\n","author":{"url":"https://github.com/empet","@type":"Person","name":"empet"},"datePublished":"2020-04-02T18:49:27Z","url":"https://github.com/plotly/plotly.js/issues/4723"}
| 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:8801c823-0a32-b283-53c7-c2bbd0e65c45 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADB2:1DC4CC:EDACCC:13D5456:6B01D93B |
| html-safe-nonce | c4e0aa2f6fe5f23a97a5fe147442f061e8353511123e0907a3b8555b5621c5f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREIyOjFEQzRDQzpFREFDQ0M6MTNENTQ1Njo2QjAxRDkzQiIsInZpc2l0b3JfaWQiOiIxODQ2NDk5Nzc2Mjc5OTkyNjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5e89a07b75b446a0a341b916f4fa670643a6f4f67a866ac9a2ec47562f06631e |
| hovercard-subject-tag | issue:592852122 |
| 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/4723/issue_layout |
| twitter:image | https://opengraph.githubassets.com/15ae2c2ae655c0faac2aa3a20bcaf79fe38b6b05bb3ab280cd8272425fca3182/plotly/plotly.js/issues/4723 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/15ae2c2ae655c0faac2aa3a20bcaf79fe38b6b05bb3ab280cd8272425fca3182/plotly/plotly.js/issues/4723 |
| og:image:alt | The function createWave() plotly.js/src/traces/surface/defaults.js Line 19 in d37895b function createWave(n, minOpacity) { generates an opacityscale with all opacities equal to 1, because: Math.max... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | empet |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width