Title: cla(), clf() should unset the `.axes` and `.figure` attributes of deparented artists · Issue #6982 · matplotlib/matplotlib · GitHub
Open Graph Title: cla(), clf() should unset the `.axes` and `.figure` attributes of deparented artists · Issue #6982 · matplotlib/matplotlib
X Title: cla(), clf() should unset the `.axes` and `.figure` attributes of deparented artists · Issue #6982 · matplotlib/matplotlib
Description: mpl2.0b3: Removing an artist from its axes unsets its .axes attribute, but clearing the axes does not do so. In [11]: f, a = plt.subplots(); l, = a.plot([1, 2]); l.remove(); print(l.axes) None In [12]: f, a = plt.subplots(); l, = a.plot(...
Open Graph Description: mpl2.0b3: Removing an artist from its axes unsets its .axes attribute, but clearing the axes does not do so. In [11]: f, a = plt.subplots(); l, = a.plot([1, 2]); l.remove(); print(l.axes) None In [...
X Description: mpl2.0b3: Removing an artist from its axes unsets its .axes attribute, but clearing the axes does not do so. In [11]: f, a = plt.subplots(); l, = a.plot([1, 2]); l.remove(); print(l.axes) None In [...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6982
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cla(), clf() should unset the `.axes` and `.figure` attributes of deparented artists","articleBody":"mpl2.0b3: Removing an artist from its axes unsets its `.axes` attribute, but clearing the axes does not do so.\n\n```\nIn [11]: f, a = plt.subplots(); l, = a.plot([1, 2]); l.remove(); print(l.axes)\nNone\n\nIn [12]: f, a = plt.subplots(); l, = a.plot([1, 2]); a.cla(); print(l.axes)\nAxes(0.125,0.11;0.775x0.77)\n```\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2016-08-26T02:06:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/6982/matplotlib/issues/6982"}
| 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:45b839b7-0b7e-bcf9-6916-1f2d17b56131 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF5C:6B64A:5852D:77192:6A512207 |
| html-safe-nonce | 490d265bac163b6bf3014b4c52e49f8b22ca0690a586e90e1c5b0fa428b5df74 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjVDOjZCNjRBOjU4NTJEOjc3MTkyOjZBNTEyMjA3IiwidmlzaXRvcl9pZCI6IjM5ODk2NzM1ODM1MDA2NjUzNTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf94715f249c4830509433b57e94dd411011f6a3083e073d7d85b0dfb8cff28b |
| hovercard-subject-tag | issue:173352899 |
| 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/6982/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cdd266b611e1a0c14a7d3643c94449753d5088c21a0194fb667d6b8e15bec47e/matplotlib/matplotlib/issues/6982 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cdd266b611e1a0c14a7d3643c94449753d5088c21a0194fb667d6b8e15bec47e/matplotlib/matplotlib/issues/6982 |
| og:image:alt | mpl2.0b3: Removing an artist from its axes unsets its .axes attribute, but clearing the axes does not do so. In [11]: f, a = plt.subplots(); l, = a.plot([1, 2]); l.remove(); print(l.axes) None In [... |
| 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 | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width