Title: ValueError when setting zmin, zmax for rgb image · Issue #1973 · plotly/plotly.py · GitHub
Open Graph Title: ValueError when setting zmin, zmax for rgb image · Issue #1973 · plotly/plotly.py
X Title: ValueError when setting zmin, zmax for rgb image · Issue #1973 · plotly/plotly.py
Description: There seem to be a validation error bug for setting zmin, zmax for rgb images. It appears the validation code expects a tuple or list of size 4 ( as would be the case for rgba) and not size 3 as should be the case for rgb. im= np.random....
Open Graph Description: There seem to be a validation error bug for setting zmin, zmax for rgb images. It appears the validation code expects a tuple or list of size 4 ( as would be the case for rgba) and not size 3 as sh...
X Description: There seem to be a validation error bug for setting zmin, zmax for rgb images. It appears the validation code expects a tuple or list of size 4 ( as would be the case for rgba) and not size 3 as sh...
Opengraph URL: https://github.com/plotly/plotly.py/issues/1973
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError when setting zmin, zmax for rgb image","articleBody":"There seem to be a validation error bug for setting zmin, zmax for rgb images. It appears the validation code expects a tuple or list of size 4 ( as would be the case for rgba) and not size 3 as should be the case for rgb.\r\n\r\n`im= np.random.randint(256,size=(50,50,3),dtype=np.uint8)`\r\n`fig = go.Figure(go.Image(z=im,colormodel='rgb',zmin=[10,10,10],zmax=[100,100,100]))`\r\n`fig.show()`\r\n\r\nResults in the following error:\r\n \r\n\r\n> File \"C:\\Users\\NA\\Anaconda3\\lib\\site-packages\\_plotly_utils\\basevalidators.py\", line 283, in raise_invalid_val\r\n\r\n valid_clr_desc=self.description(),\r\n\r\nValueError: \r\n Invalid value of type 'builtins.tuple' received for the 'zmax' property of image\r\n Received value: [100, 100, 100]\r\n\r\n The 'zmax' property is an info array that may be specified as:\r\n\r\n * a list or tuple of 4 elements where:\r\n(0) The 'zmax[0]' property is a number and may be specified as:\r\n - An int or float\r\n(1) The 'zmax[1]' property is a number and may be specified as:\r\n - An int or float\r\n(2) The 'zmax[2]' property is a number and may be specified as:\r\n - An int or float\r\n(3) The 'zmax[3]' property is a number and may be specified as:\r\n - An int or float","author":{"url":"https://github.com/neili02","@type":"Person","name":"neili02"},"datePublished":"2019-12-04T19:42:10Z","url":"https://github.com/plotly/plotly.py/issues/1973"}
| 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:b0d0e10a-fe5b-1aa2-6402-8a7c28e8183f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B98:29FFA9:2D3A7FD:3946C4F:6B01B416 |
| html-safe-nonce | a7e1daba1d7bcfd1517363c3e924627314a3c20bd8ffe4aab5459658f381fccf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Qjk4OjI5RkZBOToyRDNBN0ZEOjM5NDZDNEY6NkIwMUI0MTYiLCJ2aXNpdG9yX2lkIjoiODYwOTk5MDIxNzQzOTQ0NzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 400c4097df486884b616086247f3f4f2851d98f552c0f9e737842ed9662d17a4 |
| hovercard-subject-tag | issue:532893519 |
| 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/1973/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2d996217aa8150f676bf1d07ac151efb952605792c409a089a87c80e30546a27/plotly/plotly.py/issues/1973 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2d996217aa8150f676bf1d07ac151efb952605792c409a089a87c80e30546a27/plotly/plotly.py/issues/1973 |
| og:image:alt | There seem to be a validation error bug for setting zmin, zmax for rgb images. It appears the validation code expects a tuple or list of size 4 ( as would be the case for rgba) and not size 3 as sh... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | neili02 |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width