Title: Interactive plots stay small when process busy on HiDPI displays · Issue #10456 · matplotlib/matplotlib · GitHub
Open Graph Title: Interactive plots stay small when process busy on HiDPI displays · Issue #10456 · matplotlib/matplotlib
X Title: Interactive plots stay small when process busy on HiDPI displays · Issue #10456 · matplotlib/matplotlib
Description: Bug report Bug summary When using %matplotlib notebook in Jupyter Notebooks on a HiDPI screen (tested on multiple MacBooks of different generations), the plot stays half-sized until the cell is finished with all its computations. Code fo...
Open Graph Description: Bug report Bug summary When using %matplotlib notebook in Jupyter Notebooks on a HiDPI screen (tested on multiple MacBooks of different generations), the plot stays half-sized until the cell is fin...
X Description: Bug report Bug summary When using %matplotlib notebook in Jupyter Notebooks on a HiDPI screen (tested on multiple MacBooks of different generations), the plot stays half-sized until the cell is fin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10456
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Interactive plots stay small when process busy on HiDPI displays","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen using `%matplotlib notebook` in Jupyter Notebooks on a HiDPI screen (tested on multiple MacBooks of different generations), the plot stays half-sized until the cell is finished with all its computations. \r\n\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\n%matplotlib notebook\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nimport time\r\n\r\ndef draw(ax):\r\n \"\"\"Scatter some new data into an axis.\"\"\"\r\n ax.cla()\r\n ax.scatter(*np.random.rand(2, 1000))\r\n ax.get_figure().canvas.draw()\r\n\r\n_, ax = plt.subplots(1, 1)\r\n\r\nfor _ in range(10):\r\n # Draw some new data\r\n draw(ax)\r\n # Do some intermediate computations\r\n time.sleep(.1)\r\n\r\n# Plot wont upscale till this sleep is over\r\ntime.sleep(10)\r\n```\r\n\r\n**Actual outcome**\r\n\r\nPlots stay small until last `sleep` finishes.\r\n\r\n**Expected outcome**\r\n\r\nPlots should rescale to screen's DPI right after initial drawing.\r\n\r\n**Matplotlib version**\r\n\r\n * Operating system: Ubuntu 16.04 / macOS 10.13\r\n * Matplotlib version: `2.1.2`\r\n * Matplotlib backend: `nbAgg`\r\n * Python version: `3.6.4`\r\n * Jupyter version: `4.4.0`\r\n\r\n**Other Information**\r\n\r\n#5383 is probably relevant for when attempting to fix this problem.","author":{"url":"https://github.com/ahoereth","@type":"Person","name":"ahoereth"},"datePublished":"2018-02-14T11:27:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/10456/matplotlib/issues/10456"}
| 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:4f2640e5-9131-7775-5478-5bec616f9c5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8D2:1BA1D0:FAC8D7:14F5759:6A53357A |
| html-safe-nonce | c5e789d35b0af7501fda9a61fac8fcb2d4cc5777a52a694cb5baecebae3c5938 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEQyOjFCQTFEMDpGQUM4RDc6MTRGNTc1OTo2QTUzMzU3QSIsInZpc2l0b3JfaWQiOiI3OTc3NjAyNTQwOTEyMTk0OTM4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c1f6f922a5750e7bc8ddc841168e506f4aee90aaf591d4627cecd9dd5b3c02d7 |
| hovercard-subject-tag | issue:297061561 |
| 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/10456/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab959ac094580f07f83e092547def8bc9324a97653dae006d5663a3b49365315/matplotlib/matplotlib/issues/10456 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab959ac094580f07f83e092547def8bc9324a97653dae006d5663a3b49365315/matplotlib/matplotlib/issues/10456 |
| og:image:alt | Bug report Bug summary When using %matplotlib notebook in Jupyter Notebooks on a HiDPI screen (tested on multiple MacBooks of different generations), the plot stays half-sized until the cell is fin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahoereth |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width