Title: figure.raise_window keyword produces inconsistent results · Issue #20415 · matplotlib/matplotlib · GitHub
Open Graph Title: figure.raise_window keyword produces inconsistent results · Issue #20415 · matplotlib/matplotlib
X Title: figure.raise_window keyword produces inconsistent results · Issue #20415 · matplotlib/matplotlib
Description: Bug report Bug summary Setting the "figure.raise_window" keyword in rcParams to False results in inconsistent behavior. Code for reproduction import matplotlib from matplotlib import pyplot as plt matplotlib.use('qt5agg') if matplotlib.r...
Open Graph Description: Bug report Bug summary Setting the "figure.raise_window" keyword in rcParams to False results in inconsistent behavior. Code for reproduction import matplotlib from matplotlib import pyplot as plt ...
X Description: Bug report Bug summary Setting the "figure.raise_window" keyword in rcParams to False results in inconsistent behavior. Code for reproduction import matplotlib from matplotlib import pypl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/20415
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"figure.raise_window keyword produces inconsistent results","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nSetting the \"figure.raise_window\" keyword in rcParams to `False` results in inconsistent behavior.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nfrom matplotlib import pyplot as plt\r\n\r\nmatplotlib.use('qt5agg')\r\n\r\nif matplotlib.rcParams['figure.raise_window']:\r\n matplotlib.rcParams['figure.raise_window'] = False\r\n\r\nplt.plot([1,2,3],[3,4,5],'.')\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nIn Spyder, the initial run produces the expected outcome: the plot window appears \"behind\" the open Spyder window.\r\nHowever, subsequent runs of the same code result in the plot window \"stealing focus\".\r\n\r\nMoreover, if the code is executed from the command prompt window, the plot window always steals focus.\r\n\r\n**Expected outcome**\r\n\r\nAs I understand, if the \"figure.raise_window\" keyword is set to `False`, newly generated plot windows should not rise above the current active window.\r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Win10\r\n * Matplotlib version: 3.4.2\r\n * Matplotlib backend: Qt5Agg\r\n * Python version: 3.7.6\r\n * Spyder version: 5.0.0\r\n\r\nmatplotlib was installed via conda from conda-forge\r\n\r\n","author":{"url":"https://github.com/pczhang-tony","@type":"Person","name":"pczhang-tony"},"datePublished":"2021-06-11T18:14:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/20415/matplotlib/issues/20415"}
| 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:f1b8d1f0-e516-3c80-e5ab-fb86a01e0239 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98CE:372744:6AD2A4:905244:6A51D3C6 |
| html-safe-nonce | bc54b3af023fa25e2a64cbaae3dbbf9d88deacde4d604e5132b3822b391e7e9e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OENFOjM3Mjc0NDo2QUQyQTQ6OTA1MjQ0OjZBNTFEM0M2IiwidmlzaXRvcl9pZCI6IjU5MTM4ODExODMzNjQ2OTkwNzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2e14de744a183186e3bb9a5f13a2e379fe2daa9fb967f7df5ae1829b7897616b |
| hovercard-subject-tag | issue:919059092 |
| 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/20415/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4646633746c7159493aabee613f578ae4300108db254e77896cf670d62d05026/matplotlib/matplotlib/issues/20415 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4646633746c7159493aabee613f578ae4300108db254e77896cf670d62d05026/matplotlib/matplotlib/issues/20415 |
| og:image:alt | Bug report Bug summary Setting the "figure.raise_window" keyword in rcParams to False results in inconsistent behavior. Code for reproduction import matplotlib from matplotlib import pyplot as plt ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pczhang-tony |
| 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