Title: [Bug]: pickling and unpickling hidpi a qt figure that has been already shown doubles its physical size · Issue #27224 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: pickling and unpickling hidpi a qt figure that has been already shown doubles its physical size · Issue #27224 · matplotlib/matplotlib
X Title: [Bug]: pickling and unpickling hidpi a qt figure that has been already shown doubles its physical size · Issue #27224 · matplotlib/matplotlib
Description: Bug summary All's in the title. Code for reproduction # Run this from a computer with a hidpi display. from pylab import *; import pickle fig = figure(figsize=(5, 4)) show(block=False) copy = pickle.loads(pickle.dumps(fig)) show(block=Fa...
Open Graph Description: Bug summary All's in the title. Code for reproduction # Run this from a computer with a hidpi display. from pylab import *; import pickle fig = figure(figsize=(5, 4)) show(block=False) copy = pickl...
X Description: Bug summary All's in the title. Code for reproduction # Run this from a computer with a hidpi display. from pylab import *; import pickle fig = figure(figsize=(5, 4)) show(block=False) copy = p...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27224
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: pickling and unpickling hidpi a qt figure that has been already shown doubles its physical size","articleBody":"### Bug summary\n\nAll's in the title.\n\n### Code for reproduction\n\n```python\n# Run this from a computer with a hidpi display.\r\nfrom pylab import *; import pickle\r\nfig = figure(figsize=(5, 4))\r\nshow(block=False)\r\ncopy = pickle.loads(pickle.dumps(fig))\r\nshow(block=False)\r\nprint(fig.get_size_inches(), c.get_size_inches())\n```\n\n\n### Actual outcome\n\n`[5. 4.] [10. 8.]`\r\n... and the second figure is indeed twice bigger.\n\n### Expected outcome\n\n`[5. 4.] [5. 4.]`\r\n... and two figures with the same size.\n\n### Additional information\n\nBisects to #23476.\n\n### Operating system\n\nmacOS\n\n### Matplotlib Version\n\n3.8\n\n### Matplotlib Backend\n\nqtagg\n\n### Python version\n\n3.12\n\n### Jupyter version\n\nENOSUCHLIB\n\n### Installation\n\ngit checkout","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2023-10-29T18:17:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/27224/matplotlib/issues/27224"}
| 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:125a67f0-f3d7-0621-705f-435bc059886d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A632:371808:DD2252:12621F3:6A51B641 |
| html-safe-nonce | 0d49542c9f751bc0d8a22a2b3f61cd8239e921d0c6acaf393dae6f15ebe2b70a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjMyOjM3MTgwODpERDIyNTI6MTI2MjFGMzo2QTUxQjY0MSIsInZpc2l0b3JfaWQiOiI0NDAyNjE0Nzk0NzIyNTg4MjI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0addce985e094dab3eaf9d48918edf9247c0ff8eec56ae3e51e69a922e53c3fe |
| hovercard-subject-tag | issue:1967101778 |
| 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/matplotlib/matplotlib/27224/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8a52a44e6f572857806201debc0db8931c73a4cdd1462580810aa3a9e256723f/matplotlib/matplotlib/issues/27224 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8a52a44e6f572857806201debc0db8931c73a4cdd1462580810aa3a9e256723f/matplotlib/matplotlib/issues/27224 |
| og:image:alt | Bug summary All's in the title. Code for reproduction # Run this from a computer with a hidpi display. from pylab import *; import pickle fig = figure(figsize=(5, 4)) show(block=False) copy = pickl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width