Title: Error in Axes.redraw_in_frame in use of ExitStack: push() takes 2 positional arguments but 3 were given · Issue #18539 · matplotlib/matplotlib · GitHub
Open Graph Title: Error in Axes.redraw_in_frame in use of ExitStack: push() takes 2 positional arguments but 3 were given · Issue #18539 · matplotlib/matplotlib
X Title: Error in Axes.redraw_in_frame in use of ExitStack: push() takes 2 positional arguments but 3 were given · Issue #18539 · matplotlib/matplotlib
Description: Bug report Code that was working in 3.2.1 uses redraw_in_frame, now broken in 3.3.0 and 3.3.2, even though this API has not changed. Bug summary Use of Axes.redraw_in_frame leads to an error calling function ExitStack.push(). Code for re...
Open Graph Description: Bug report Code that was working in 3.2.1 uses redraw_in_frame, now broken in 3.3.0 and 3.3.2, even though this API has not changed. Bug summary Use of Axes.redraw_in_frame leads to an error callin...
X Description: Bug report Code that was working in 3.2.1 uses redraw_in_frame, now broken in 3.3.0 and 3.3.2, even though this API has not changed. Bug summary Use of Axes.redraw_in_frame leads to an error callin...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/18539
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error in Axes.redraw_in_frame in use of ExitStack: push() takes 2 positional arguments but 3 were given","articleBody":"### Bug report\r\n\r\nCode that was working in 3.2.1 uses `redraw_in_frame`, now broken in 3.3.0 and 3.3.2, even though this API has not changed.\r\n\r\n**Bug summary**\r\n\r\nUse of `Axes.redraw_in_frame` leads to an error calling function `ExitStack.push()`.\r\n\r\n**Code for reproduction**\r\n\r\nCan be reproduced by running this small program,\r\n\r\n```\r\nimport matplotlib.pyplot as plt\r\nfig, ax = plt.subplots(1,1)\r\nax.plot([1,2,3])\r\nfig.canvas.draw()\r\nax.redraw_in_frame()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nresults in,\r\n\r\n```\r\n$ python3 redraw_test.py \r\nTraceback (most recent call last):\r\n File \"redraw_test.py\", line 7, in \u003cmodule\u003e\r\n ax.redraw_in_frame()\r\n File \"/home/stephen.sinclair/.local/lib/python3.6/site-packages/matplotlib/axes/_base.py\", line 2777, in redraw_in_frame\r\n stack.push(artist.set_visible, artist.get_visible())\r\nTypeError: push() takes 2 positional arguments but 3 were given\r\n```\r\n\r\nTested only in Python 3.6 and Python 3.7, but according to docs, the API for contextlib.ExitStack.push has not changed with Python 3.8, so error should be the same.\r\n\r\n**Expected outcome**\r\n\r\nFunction `redraw_in_frame` gives no error.\r\n\r\n**Matplotlib version**\r\n\r\nCode worked with matplotlib 3.2.1, but broken in 3.3.2.\r\n\r\n * Operating system: Ubuntu 18.04\r\n * Matplotlib version: 3.3.2\r\n * Matplotlib backend: TkAgg, Agg.\r\n * Python version: 3.6, 3.7.\r\n * Jupyter version (if applicable): n/a\r\n * Other libraries: n/a\r\n\r\nInstalled via pip3.\r\n","author":{"url":"https://github.com/radarsat1","@type":"Person","name":"radarsat1"},"datePublished":"2020-09-22T08:55:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/18539/matplotlib/issues/18539"}
| 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:c14714b6-7a0c-6b11-03d7-ca8dfee731c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A540:33F819:1BD750C:25EF0DF:6A53734F |
| html-safe-nonce | 33837a933d20dc114f01b46b057cdcff78e15cc90dd318c22812c77adef07f76 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTQwOjMzRjgxOToxQkQ3NTBDOjI1RUYwREY6NkE1MzczNEYiLCJ2aXNpdG9yX2lkIjoiODI1MjYzMTM5NDQ4MTgyODY4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1fa2e5d3de1c331a32c0f5e04df7c4031d162b7391c18120cb44d56898b06bbe |
| hovercard-subject-tag | issue:706196530 |
| 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/18539/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a3a009ef4c7490303609a4bcd01c13f233bbfd38b4cdc91c99f6ee6c4952c6f6/matplotlib/matplotlib/issues/18539 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a3a009ef4c7490303609a4bcd01c13f233bbfd38b4cdc91c99f6ee6c4952c6f6/matplotlib/matplotlib/issues/18539 |
| og:image:alt | Bug report Code that was working in 3.2.1 uses redraw_in_frame, now broken in 3.3.0 and 3.3.2, even though this API has not changed. Bug summary Use of Axes.redraw_in_frame leads to an error callin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | radarsat1 |
| 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