Title: `ValueError` when trying to plot 2D histogram items with `PyQt6` · Issue #34 · PlotPyStack/PlotPy · GitHub
Open Graph Title: `ValueError` when trying to plot 2D histogram items with `PyQt6` · Issue #34 · PlotPyStack/PlotPy
X Title: `ValueError` when trying to plot 2D histogram items with `PyQt6` · Issue #34 · PlotPyStack/PlotPy
Description: In {plotpy_dir}\items\image\base.py Line 604 - 606 part of BaseImageItem.draw_image() dest = _scale_rect( self.data, src_rect, self._offscreen, dst_rect, self.lut, self.interpolate ) There is an issue when using the 2d histogram example ...
Open Graph Description: In {plotpy_dir}\items\image\base.py Line 604 - 606 part of BaseImageItem.draw_image() dest = _scale_rect( self.data, src_rect, self._offscreen, dst_rect, self.lut, self.interpolate ) There is an is...
X Description: In {plotpy_dir}\items\image\base.py Line 604 - 606 part of BaseImageItem.draw_image() dest = _scale_rect( self.data, src_rect, self._offscreen, dst_rect, self.lut, self.interpolate ) There is an is...
Opengraph URL: https://github.com/PlotPyStack/PlotPy/issues/34
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`ValueError` when trying to plot 2D histogram items with `PyQt6`","articleBody":"In `{plotpy_dir}\\items\\image\\base.py` Line 604 - 606 part of `BaseImageItem.draw_image()`\n```\ndest = _scale_rect(\n self.data, src_rect, self._offscreen, dst_rect, self.lut, self.interpolate\n )\n```\n\nThere is an issue when using the 2d histogram [example](https://plotpy.readthedocs.io/en/latest/intro/examples.html) that produces the following error.\n\n```\nFile \"C:\\Users\\Username\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\plotpy\\items\\image\\base.py\", line 604, in draw_image\n dest = _scale_rect(\n ^^^^^^^^^^^^\nValueError: Error calling Python override of QFrame::paintEvent(): Invalid destination rectangle (expected tuple of 4 integers)\n```\n\nThis Error ends up leaving the painter object open causing a crash, after finding the location changing the `dst_rect` -\u003e `tuple(map(int, dst_rect))` fixes the problem but wanted to make someone aware since it is expected as `tuple[float, float, float, float]`.","author":{"url":"https://github.com/michael-miftek","@type":"Person","name":"michael-miftek"},"datePublished":"2025-02-21T20:02:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/34/PlotPy/issues/34"}
| 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:3cbdb883-b87b-7518-bd90-5bbaf112887a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3E2:456F1:36DFFED:4ADF4E2:6972CF4A |
| html-safe-nonce | 0f102eb0550f58501a15afc2443f6e723c0f0e490976200bcef25c5bcfa26849 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0UyOjQ1NkYxOjM2REZGRUQ6NEFERjRFMjo2OTcyQ0Y0QSIsInZpc2l0b3JfaWQiOiI3MDIyMjI3Njc0ODE4MDcyMzk0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0c0ff2cf6f00bed55a2a4ceac22095fe8f7e0cc103c0f4a570e6f00a46519d30 |
| hovercard-subject-tag | issue:2869906549 |
| 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/PlotPyStack/PlotPy/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/571f83b322372c050e2136b46fc0526b33a2aac08bf2c0992ff45aa2457f156b/PlotPyStack/PlotPy/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/571f83b322372c050e2136b46fc0526b33a2aac08bf2c0992ff45aa2457f156b/PlotPyStack/PlotPy/issues/34 |
| og:image:alt | In {plotpy_dir}\items\image\base.py Line 604 - 606 part of BaseImageItem.draw_image() dest = _scale_rect( self.data, src_rect, self._offscreen, dst_rect, self.lut, self.interpolate ) There is an is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | michael-miftek |
| hostname | github.com |
| expected-hostname | github.com |
| None | e5abb0753dbd4190d15d366a819b0ca85f68a7e5bbe3d32213b346c41685c80a |
| turbo-cache-control | no-preview |
| go-import | github.com/PlotPyStack/PlotPy git https://github.com/PlotPyStack/PlotPy.git |
| octolytics-dimension-user_id | 145201262 |
| octolytics-dimension-user_login | PlotPyStack |
| octolytics-dimension-repository_id | 671159499 |
| octolytics-dimension-repository_nwo | PlotPyStack/PlotPy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 671159499 |
| octolytics-dimension-repository_network_root_nwo | PlotPyStack/PlotPy |
| 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 | 88896109b054799a7f22afaeee541d00f9170dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width