René's URL Explorer Experiment


Title: Second y-axis does not scale correctly when using zoom tool · Issue #9616 · matplotlib/matplotlib · GitHub

Open Graph Title: Second y-axis does not scale correctly when using zoom tool · Issue #9616 · matplotlib/matplotlib

X Title: Second y-axis does not scale correctly when using zoom tool · Issue #9616 · matplotlib/matplotlib

Description: Hello, when making a plot with two differently scaled y-axes by following this example, the second scale becomes incorrect after using the zoom tool (see example below). Interestingly, reading the ylim values (see example below) yields i...

Open Graph Description: Hello, when making a plot with two differently scaled y-axes by following this example, the second scale becomes incorrect after using the zoom tool (see example below). Interestingly, reading the ...

X Description: Hello, when making a plot with two differently scaled y-axes by following this example, the second scale becomes incorrect after using the zoom tool (see example below). Interestingly, reading the ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Second y-axis does not scale correctly when using zoom tool","articleBody":"Hello,\r\nwhen making a plot with two differently scaled y-axes by following this [example](https://matplotlib.org/gallery/subplots_axes_and_figures/fahrenheit_celsius_scales.html), the second scale becomes incorrect after using the zoom tool (see example below). Interestingly, reading the `ylim` values (see example below) yields in the expected results. Using ``ax.set_ylim()`` and using the paning tool do not show this behavior.\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nfig, ax = plt.subplots()\r\nax.set(title=\"Two y-scales\", ylabel=\"x / m\")\r\n# right ax:\r\naxr = ax.twinx()\r\naxr.set_ylabel(\"x / cm\")\r\n\r\n\r\ndef track_yax(ax_):\r\n    \"\"\"Syncronize second y-axis with first axis. \"\"\"\r\n    y1, y2 = ax.get_ylim()\r\n    axr.set_ylim(100*y1, y2*100)\r\n    # axr.figure.canvas.draw() # does not make a difference\r\n    yr1, yr2 = axr.get_ylim()\r\n    print(f\"Lower: {y1:+.5g} -> {yr1:+.5g}\\t Upper: {y2:+.5g} -> {yr2:+.5g}\")\r\n\r\n\r\n# automatically update ylim of ax2 when ylim of ax1 changes.\r\nax.callbacks.connect(\"ylim_changed\", track_yax)\r\n\r\n\r\n# Do the plotting:\r\nax.plot([0, 5, 2, 4, 1], 'o-')\r\nax.grid(True)\r\n\r\nplt.show()\r\n```\r\n![figure1](https://user-images.githubusercontent.com/12721170/32146924-d5db2fea-bcde-11e7-8c60-e7630bcdf151.png)\r\n\r\n\r\n**Matplotlib version**\r\n\r\n  * Operating system: Debian 4.13.4-2 (Sid) x86_64 GNU/Linux\r\n  * Matplotlib version: 2.1.0.post484.dev0+g883096231 (git master)\r\n  * Matplotlib backend: Qt5Agg \r\n  * Python version: Python 3.6.3 on Anaconda 5.0.1 \r\n  ","author":{"url":"https://github.com/DietBru","@type":"Person","name":"DietBru"},"datePublished":"2017-10-29T18:37:33Z","url":"https://github.com/matplotlib/matplotlib/issues/9616"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:60567ed7-7ba8-4c37-91b8-dde8a1324b41
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCA4C:804E:115C5B8:1706F8C:6B0654BC
html-safe-nonce9d10c08a2e6bbd5134742f97cff3bd817500de726453e46cf3342fd2fb5b2565
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTRDOjgwNEU6MTE1QzVCODoxNzA2RjhDOjZCMDY1NEJDIiwidmlzaXRvcl9pZCI6IjQ2ODMxMTU5MTMzODA1MTcwNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4e30a100e76706f2c20de3db75aad8edce4f4b14772d1d62de330135be3cdc73
hovercard-subject-tagissue:269423222
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/9616/issue_layout
twitter:imagehttps://opengraph.githubassets.com/391402cd2253f1e2968d7ee56eaeb42dead45bd9714e14e2810107068907144d/matplotlib/matplotlib/issues/9616
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/391402cd2253f1e2968d7ee56eaeb42dead45bd9714e14e2810107068907144d/matplotlib/matplotlib/issues/9616
og:image:altHello, when making a plot with two differently scaled y-axes by following this example, the second scale becomes incorrect after using the zoom tool (see example below). Interestingly, reading the ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDietBru
hostnamegithub.com
expected-hostnamegithub.com
None6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297
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
release7f0aa75f4141d440c6110dc31af7ea7797abb6c4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/9616#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F9616
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F9616
Sign uphttps://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/9616
Reloadhttps://github.com/matplotlib/matplotlib/issues/9616
Reloadhttps://github.com/matplotlib/matplotlib/issues/9616
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests430 (430)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/9616
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/9616
Second y-axis does not scale correctly when using zoom toolhttps://github.com/matplotlib/matplotlib/issues/9616#top
https://github.com/DietBru
DietBruhttps://github.com/DietBru
on Oct 29, 2017https://github.com/matplotlib/matplotlib/issues/9616#issue-269423222
examplehttps://matplotlib.org/gallery/subplots_axes_and_figures/fahrenheit_celsius_scales.html
https://user-images.githubusercontent.com/12721170/32146924-d5db2fea-bcde-11e7-8c60-e7630bcdf151.png
tacaswellhttps://github.com/tacaswell
on Oct 29, 2017https://github.com/matplotlib/matplotlib/issues/9616#event-1315666543
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Oct 29, 2017https://github.com/matplotlib/matplotlib/issues/9616#issuecomment-340287749
#2790https://github.com/matplotlib/matplotlib/issues/2790
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Apr 23, 2023https://github.com/matplotlib/matplotlib/issues/9616#issuecomment-1518917954
github-actionshttps://github.com/apps/github-actions
status: inactivehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20inactive%22
on Apr 23, 2023https://github.com/matplotlib/matplotlib/issues/9616#event-9074030067
https://github.com/jklymak
jklymakhttps://github.com/jklymak
on Apr 23, 2023https://github.com/matplotlib/matplotlib/issues/9616#issuecomment-1519143526
https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.secondary_yaxis.htmlhttps://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.secondary_yaxis.html
jklymakhttps://github.com/jklymak
not plannedhttps://github.com/matplotlib/matplotlib/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Apr 23, 2023https://github.com/matplotlib/matplotlib/issues/9616#event-9075446202
jklymakhttps://github.com/jklymak
status: inactivehttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20inactive%22
on Apr 23, 2023https://github.com/matplotlib/matplotlib/issues/9616#event-9075446421
QuLogichttps://github.com/QuLogic
future releaseshttps://github.com/matplotlib/matplotlib/milestone/25
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/9616#event-9086877821
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/9616
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/9616
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.