René's URL Explorer Experiment


Title: Bug in AxesStack.add · Issue #7194 · matplotlib/matplotlib · GitHub

Open Graph Title: Bug in AxesStack.add · Issue #7194 · matplotlib/matplotlib

X Title: Bug in AxesStack.add · Issue #7194 · matplotlib/matplotlib

Description: I think I've found a bug where the format of data actually stored in Stack is different from that expected in Stack.remove. It seems that the line below needs to be: Stack.remove(self, self._entry_from_axes(a_existing)) I don't have a mi...

Open Graph Description: I think I've found a bug where the format of data actually stored in Stack is different from that expected in Stack.remove. It seems that the line below needs to be: Stack.remove(self, self._entry_...

X Description: I think I've found a bug where the format of data actually stored in Stack is different from that expected in Stack.remove. It seems that the line below needs to be: Stack.remove(self, self._en...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7194

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug in AxesStack.add","articleBody":"I think I've found a bug where the format of data actually stored in Stack is different from that expected in Stack.remove. It seems that the line below needs to be:\nStack.remove(self, self._entry_from_axes(a_existing))\n\nI don't have a minimal repro case (probably something to do with multi-threading in a tensorflow py_func), but I've been seeing exceptions in the .remove method. Adding some more useful exception messaging shows me a missing self._ind 0th tuple element.\n\n```\n\nAxesStack.add(((1, 1, 1), ()),..): Axes(0.125,0.1;0.775x0.8) vs Axes(0.125,0.1;0.775x0.8)\n                         ^key                ^ a                     ^a_existing\n\nmatplotlib/cbook.py\", line 1410, in remove\n    raise ValueError('Unknown element o: %s vs %s' % (o, self._elements))\n\nUnknown element o: (((1, 1, 1), ()), \u003cmatplotlib.axes._subplots.AxesSubplot object at 0\nx7fd416508550\u003e) vs [(((1, 1, 1), ()), (1, \u003cmatplotlib.axes._subplots.AxesSubplot object at 0x7fd416\n508550\u003e))]\n\n    def add(self, key, a):\n        \"\"\"\n        Add Axes *a*, with key *key*, to the stack, and return the stack.\n        If *a* is already on the stack, don't add it again, but\n        return *None*.\n        \"\"\"\n        # All the error checking may be unnecessary; but this method\n        # is called so seldom that the overhead is negligible.\n        if not isinstance(a, Axes):\n            raise ValueError(\"second argument, %s, is not an Axes\" % a)\n        try:\n            hash(key)\n        except TypeError:\n            raise ValueError(\"first argument, %s, is not a valid key\" % key)\n\n        a_existing = self.get(key)\n        if a_existing is not None:\nHERE--\u003e            Stack.remove(self, (key, a_existing))\n            warnings.warn(\n                \"key %s already existed; Axes is being replaced\" % key)\n            # I don't think the above should ever happen.\n\n        if a in self:\n            return None\n        self._ind += 1\n        return Stack.push(self, (key, (self._ind, a)))\n\n\n```\n\nTo help us understand and resolve your issue please check that you have provided\nthe information below.\n- [ ] Matplotlib version, Python version and Platform (Windows, OSX, Linux ...)\n- [ ] How did you install Matplotlib and Python (pip, anaconda, from source ...)\n- [ ] If possible please supply a [Short, Self Contained, Correct, Example](http://sscce.org/)\n    that demonstrates the issue i.e a small piece of code which reproduces the issue\n    and can be run with out any other (or as few as possible) external dependencies.\n- [ ] If this is an image generation bug attach a screenshot demonstrating the issue.\n- [ ] If this is a regression (Used to work in an earlier version of Matplotlib), please \n    note where it used to work.\n","author":{"url":"https://github.com/brianwa84","@type":"Person","name":"brianwa84"},"datePublished":"2016-09-28T17:04:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/7194/matplotlib/issues/7194"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:37fb5fab-fc14-04ba-757f-d5aa273f1ef9
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9866:111866:293A061:36C146D:6A521667
html-safe-noncec657c218456cd3722cb1e9d3801f3f73c80870b88e9a5551d179b0a200084659
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODY2OjExMTg2NjoyOTNBMDYxOjM2QzE0NkQ6NkE1MjE2NjciLCJ2aXNpdG9yX2lkIjoiNzM3NDIzNDQ0NTU2NDQ4MzE3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3a7c5799d3ed3cdd58c50c4c53c6db8446eec0c6ca0b449ea7277d6f267671ce
hovercard-subject-tagissue:179830257
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/matplotlib/matplotlib/7194/issue_layout
twitter:imagehttps://opengraph.githubassets.com/25ad6814c8447e875ed946ea0185c83424b9f54eb25b7c677289edc05e51f09e/matplotlib/matplotlib/issues/7194
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/25ad6814c8447e875ed946ea0185c83424b9f54eb25b7c677289edc05e51f09e/matplotlib/matplotlib/issues/7194
og:image:altI think I've found a bug where the format of data actually stored in Stack is different from that expected in Stack.remove. It seems that the line below needs to be: Stack.remove(self, self._entry_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrianwa84
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/7194#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F7194
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fmatplotlib%2Fmatplotlib%2Fissues%2F7194
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=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/7194
Reloadhttps://github.com/matplotlib/matplotlib/issues/7194
Reloadhttps://github.com/matplotlib/matplotlib/issues/7194
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/7194
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/7194
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Bug in AxesStack.addhttps://github.com/matplotlib/matplotlib/issues/7194#top
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Difficulty%3A%20Easy%22
https://github.com/brianwa84
brianwa84https://github.com/brianwa84
on Sep 28, 2016https://github.com/matplotlib/matplotlib/issues/7194#issue-179830257
Short, Self Contained, Correct, Examplehttp://sscce.org/
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22Difficulty%3A%20Easy%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.