René's URL Explorer Experiment


Title: Fixed ImageStatsTool displaying "No available data" for `XYImageItem` and `MaskedXYImageItem` · Issue #50 · PlotPyStack/PlotPy · GitHub

Open Graph Title: Fixed ImageStatsTool displaying "No available data" for `XYImageItem` and `MaskedXYImageItem` · Issue #50 · PlotPyStack/PlotPy

X Title: Fixed ImageStatsTool displaying "No available data" for `XYImageItem` and `MaskedXYImageItem` · Issue #50 · PlotPyStack/PlotPy

Description: Description Problem The ImageStatsTool displays "No available data" instead of showing statistics when used on XYImageItem or MaskedXYImageItem objects (images with non-uniform coordinates). Steps to Reproduce Create an XYImageItem with ...

Open Graph Description: Description Problem The ImageStatsTool displays "No available data" instead of showing statistics when used on XYImageItem or MaskedXYImageItem objects (images with non-uniform coordinates). Steps ...

X Description: Description Problem The ImageStatsTool displays "No available data" instead of showing statistics when used on XYImageItem or MaskedXYImageItem objects (images with non-uniform coordinate...

Opengraph URL: https://github.com/PlotPyStack/PlotPy/issues/50

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fixed ImageStatsTool displaying \"No available data\" for `XYImageItem` and `MaskedXYImageItem`","articleBody":"## Description\n\n### Problem\nThe ImageStatsTool displays \"No available data\" instead of showing statistics when used on `XYImageItem` or `MaskedXYImageItem` objects (images with non-uniform coordinates).\n\n### Steps to Reproduce\n1. Create an XYImageItem with non-uniform x/y coordinates\n2. Add it to a plot\n3. Activate the ImageStatsTool\n4. Draw a rectangle over the image\n5. Expected: Statistics should be displayed in the rectangle\n6. Actual: \"No available data\" is shown\n\n### Minimal Example\n```python\nimport numpy as np\nfrom plotpy.builder import make\nfrom plotpy.plot import PlotDialog\nfrom plotpy.tools import ImageStatsTool\n\n# Create test data\ndata = np.random.rand(100, 100)\nx = np.linspace(0, 10, 100)\ny = np.linspace(0, 20, 100)\n\n# Create an XY image item (non-uniform coordinates)\nimage = make.xyimage(x, y, data, title=\"Test XY Image\")\n\n# Create a plot with the image\nwin = PlotDialog(edit=False, toolbar=True)\nplot = win.manager.get_plot()\nplot.add_item(image)\n\n# Add ImageStatsTool\ntool = ImageStatsTool(win.manager)\nwin.manager.add_tool(tool)\n\nwin.exec()\n```\n\n### Root Cause\nThe `ImageStatsRectangle.get_info()` method calls `get_items_in_rectangle()` which filters items by calling `plot.get_items(item_type=IExportROIImageItemType)`. This method checks if `item_type in item.types()`.\n\n`XYImageItem.types()` was missing `IExportROIImageItemType`, causing XY images to be filtered out during the search, resulting in no items being found and the \"No available data\" message.\n\n### Solution\nAdd `IExportROIImageItemType` to the tuple returned by `XYImageItem.types()`.\n\nAdditionally, update `__implements__` tuples for consistency:\n- Add `IHistDataSource`, `IVoiImageItemType`, and `IExportROIImageItemType` to `XYImageItem.__implements__`\n- Add `IExportROIImageItemType` to `MaskedXYImageItem.__implements__`\n- Add `IExportROIImageItemType` to `MaskedImageItem.__implements__`\n\n### Files to Modify\n- `plotpy/items/image/standard.py` - XYImageItem.types() and __implements__\n- `plotpy/items/image/masked.py` - MaskedXYImageItem.__implements__ and MaskedImageItem.__implements__\n\n### Additional Context\n- Regular `ImageItem` works correctly because it inherits from `RawImageItem` which inherits from `BaseImageItem`, and `BaseImageItem.types()` includes `IExportROIImageItemType`\n- XYImageItem overrides `types()` but was missing this interface type\n- The underlying methods (`get_closest_index_rect()`, `export_roi()`) work correctly for XY images; only the interface declaration was missing\n","author":{"url":"https://github.com/PierreRaybaut","@type":"Person","name":"PierreRaybaut"},"datePublished":"2025-10-30T17:43:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/50/PlotPy/issues/50"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a49effc2-4e09-ef30-de0e-d99011756990
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE882:18F725:45FE0FA:5F0C8D3:6973042B
html-safe-nonce866ebf7372e4b8287d4860282e42d6ceed9acad77b641e8b3bc4cd507ae0766a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODgyOjE4RjcyNTo0NUZFMEZBOjVGMEM4RDM6Njk3MzA0MkIiLCJ2aXNpdG9yX2lkIjoiNTYyNDEzODI0NDI3MDc4NTU3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacfe6b0839b530d55f368628ccf232cde63e9451a431cd836de4e826695fc8e854
hovercard-subject-tagissue:3571848375
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PlotPyStack/PlotPy/50/issue_layout
twitter:imagehttps://opengraph.githubassets.com/575d64e221db8ebc0a16748b2635c7895f31f4b0746a75af34e8cd829316e2c4/PlotPyStack/PlotPy/issues/50
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/575d64e221db8ebc0a16748b2635c7895f31f4b0746a75af34e8cd829316e2c4/PlotPyStack/PlotPy/issues/50
og:image:altDescription Problem The ImageStatsTool displays "No available data" instead of showing statistics when used on XYImageItem or MaskedXYImageItem objects (images with non-uniform coordinates). Steps ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePierreRaybaut
hostnamegithub.com
expected-hostnamegithub.com
None44ab3188c1dcfe3be0f9c3feca2e04e14fb79f120939ce2395e4f15ab96ec1d4
turbo-cache-controlno-preview
go-importgithub.com/PlotPyStack/PlotPy git https://github.com/PlotPyStack/PlotPy.git
octolytics-dimension-user_id145201262
octolytics-dimension-user_loginPlotPyStack
octolytics-dimension-repository_id671159499
octolytics-dimension-repository_nwoPlotPyStack/PlotPy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id671159499
octolytics-dimension-repository_network_root_nwoPlotPyStack/PlotPy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasea5e2b48bd1260476599758f5d253b5d24092ab84
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PlotPyStack/PlotPy/issues/50#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPlotPy%2Fissues%2F50
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPlotPyStack%2FPlotPy%2Fissues%2F50
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=PlotPyStack%2FPlotPy
Reloadhttps://github.com/PlotPyStack/PlotPy/issues/50
Reloadhttps://github.com/PlotPyStack/PlotPy/issues/50
Reloadhttps://github.com/PlotPyStack/PlotPy/issues/50
PlotPyStack https://github.com/PlotPyStack
PlotPyhttps://github.com/PlotPyStack/PlotPy
Notifications https://github.com/login?return_to=%2FPlotPyStack%2FPlotPy
Fork 4 https://github.com/login?return_to=%2FPlotPyStack%2FPlotPy
Star 42 https://github.com/login?return_to=%2FPlotPyStack%2FPlotPy
Code https://github.com/PlotPyStack/PlotPy
Issues 2 https://github.com/PlotPyStack/PlotPy/issues
Pull requests 0 https://github.com/PlotPyStack/PlotPy/pulls
Actions https://github.com/PlotPyStack/PlotPy/actions
Projects 0 https://github.com/PlotPyStack/PlotPy/projects
Security 0 https://github.com/PlotPyStack/PlotPy/security
Insights https://github.com/PlotPyStack/PlotPy/pulse
Code https://github.com/PlotPyStack/PlotPy
Issues https://github.com/PlotPyStack/PlotPy/issues
Pull requests https://github.com/PlotPyStack/PlotPy/pulls
Actions https://github.com/PlotPyStack/PlotPy/actions
Projects https://github.com/PlotPyStack/PlotPy/projects
Security https://github.com/PlotPyStack/PlotPy/security
Insights https://github.com/PlotPyStack/PlotPy/pulse
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PlotPy/issues/50
New issuehttps://github.com/login?return_to=https://github.com/PlotPyStack/PlotPy/issues/50
Fixed ImageStatsTool displaying "No available data" for XYImageItem and MaskedXYImageItemhttps://github.com/PlotPyStack/PlotPy/issues/50#top
bugSomething isn't workinghttps://github.com/PlotPyStack/PlotPy/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/PierreRaybaut
https://github.com/PierreRaybaut
PierreRaybauthttps://github.com/PierreRaybaut
on Oct 30, 2025https://github.com/PlotPyStack/PlotPy/issues/50#issue-3571848375
bugSomething isn't workinghttps://github.com/PlotPyStack/PlotPy/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.