René's URL Explorer Experiment


Title: [Bug]: inset_axes position same as parent axes position. Breaks indicate_axes_zoom · Issue #22606 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: inset_axes position same as parent axes position. Breaks indicate_axes_zoom · Issue #22606 · matplotlib/matplotlib

X Title: [Bug]: inset_axes position same as parent axes position. Breaks indicate_axes_zoom · Issue #22606 · matplotlib/matplotlib

Description: Bug summary An inset axes created using mpl_toolkits.axes_grid1.inset_locator.inset_axes seems to inherit its position from the parent axes. This prevents any connection lines being drawn by indicate_inset_zoom showing up, as their "visi...

Open Graph Description: Bug summary An inset axes created using mpl_toolkits.axes_grid1.inset_locator.inset_axes seems to inherit its position from the parent axes. This prevents any connection lines being drawn by indica...

X Description: Bug summary An inset axes created using mpl_toolkits.axes_grid1.inset_locator.inset_axes seems to inherit its position from the parent axes. This prevents any connection lines being drawn by indica...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: inset_axes position same as parent axes position.  Breaks indicate_axes_zoom","articleBody":"### Bug summary\r\n\r\nAn inset axes created using `mpl_toolkits.axes_grid1.inset_locator.inset_axes` seems to inherit its position from the parent axes.  This prevents any connection lines being drawn by `indicate_inset_zoom` showing up, as [their \"visible\" attributes depend on the result of get_position](https://github.com/matplotlib/matplotlib/blob/710fce3df95e22701bd68bf6af2c8adbc9d67a79/lib/matplotlib/axes/_axes.py#L467-L479).\r\n\r\n\r\n\r\n### Code for reproduction\r\n\r\n```python\r\n# Adapted from the gallery example, but replacing the axes method with the function from toolkits.\r\n\r\nfrom matplotlib import cbook\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.axes_grid1.inset_locator import inset_axes\r\nimport numpy as np\r\n\r\n\r\ndef get_demo_image():\r\n    z = cbook.get_sample_data(\"axes_grid/bivariate_normal.npy\", np_load=True)\r\n    # z is a numpy array of 15x15\r\n    return z, (-3, 4, -4, 3)\r\n\r\nfig, ax = plt.subplots(figsize=[5, 4])\r\n\r\n# make data\r\nZ, extent = get_demo_image()\r\nZ2 = np.zeros((150, 150))\r\nny, nx = Z.shape\r\nZ2[30:30+ny, 30:30+nx] = Z\r\n\r\nax.imshow(Z2, extent=extent, origin=\"lower\")\r\n\r\n# inset axes....\r\naxins = inset_axes(ax, width=\"50%\", height=\"50%\")\r\naxins.imshow(Z2, extent=extent, origin=\"lower\")\r\n\r\n# sub region of the original image\r\nx1, x2, y1, y2 = -1.5, -0.9, -2.5, -1.9\r\naxins.set_xlim(x1, x2)\r\naxins.set_ylim(y1, y2)\r\naxins.set_xticklabels([])\r\naxins.set_yticklabels([])\r\n\r\nprint(\"main axes position:\", ax.get_position())\r\nprint(\"inset axes position:\", axins.get_position())\r\n\r\nax.indicate_inset_zoom(axins, edgecolor=\"black\")\r\n\r\nplt.show()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n```\r\nmain axes position: Bbox(x0=0.20449999999999996, y0=0.10999999999999999, x1=0.8205, y1=0.88)\r\ninset axes position: Bbox(x0=0.20449999999999996, y0=0.10999999999999999, x1=0.8205, y1=0.88)\r\n```\r\n\r\n![zoom_no_indicate](https://user-images.githubusercontent.com/10599679/156891838-5462649a-2012-44e3-9fc3-7e69a114c32a.png)\r\n\r\n\r\n### Expected outcome\r\n\r\nPlot should have connecting lines, similar to the [zoom region inset axes](https://matplotlib.org/stable/gallery/subplots_axes_and_figures/zoom_inset_axes.html#sphx-glr-gallery-subplots-axes-and-figures-zoom-inset-axes-py) gallery example.\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nRHEL\r\n\r\n### Matplotlib Version\r\n\r\n3.5.1\r\n\r\n### Matplotlib Backend\r\n\r\nTKAgg\r\n\r\n### Python version\r\n\r\n3.10.2\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\nconda","author":{"url":"https://github.com/rcomer","@type":"Person","name":"rcomer"},"datePublished":"2022-03-05T16:40:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/22606/matplotlib/issues/22606"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4160e89a-a415-8862-2977-197958d6abae
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE82C:18EE7E:478E7:5F835:6A525F81
html-safe-noncea21f8ebeacfa548c11196b8a01b14f2a779135ae30cd014030e5784548673a3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODJDOjE4RUU3RTo0NzhFNzo1RjgzNTo2QTUyNUY4MSIsInZpc2l0b3JfaWQiOiI2NDM3OTYzNTAzODIzMzgwMzUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf7a26c0a3f748b1bdfb1288f3eab1cef405770acb4114a330d9453ce6cd50e01
hovercard-subject-tagissue:1160394920
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/22606/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ae3e72ff73dbb10f64053f6186908d84124e3596cea7e1d2cdbab481e9636656/matplotlib/matplotlib/issues/22606
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ae3e72ff73dbb10f64053f6186908d84124e3596cea7e1d2cdbab481e9636656/matplotlib/matplotlib/issues/22606
og:image:altBug summary An inset axes created using mpl_toolkits.axes_grid1.inset_locator.inset_axes seems to inherit its position from the parent axes. This prevents any connection lines being drawn by indica...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamercomer
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-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/22606#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F22606
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%2F22606
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/22606
Reloadhttps://github.com/matplotlib/matplotlib/issues/22606
Reloadhttps://github.com/matplotlib/matplotlib/issues/22606
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/22606
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/22606
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 408 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]: inset_axes position same as parent axes position. Breaks indicate_axes_zoomhttps://github.com/matplotlib/matplotlib/issues/22606#top
topic: mpl_toolkithttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20mpl_toolkit%22
https://github.com/rcomer
rcomerhttps://github.com/rcomer
on Mar 5, 2022https://github.com/matplotlib/matplotlib/issues/22606#issue-1160394920
their "visible" attributes depend on the result of get_positionhttps://github.com/matplotlib/matplotlib/blob/710fce3df95e22701bd68bf6af2c8adbc9d67a79/lib/matplotlib/axes/_axes.py#L467-L479
https://user-images.githubusercontent.com/10599679/156891838-5462649a-2012-44e3-9fc3-7e69a114c32a.png
zoom region inset axeshttps://matplotlib.org/stable/gallery/subplots_axes_and_figures/zoom_inset_axes.html#sphx-glr-gallery-subplots-axes-and-figures-zoom-inset-axes-py
topic: mpl_toolkithttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20mpl_toolkit%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.