Title: Removal of x-shared polar axes causes crash · Issue #19988 · matplotlib/matplotlib · GitHub
Open Graph Title: Removal of x-shared polar axes causes crash · Issue #19988 · matplotlib/matplotlib
X Title: Removal of x-shared polar axes causes crash · Issue #19988 · matplotlib/matplotlib
Description: Bug report Bug summary All's in the title. (Note that x-sharing (which really means theta-sharing) polar axes makes sense because one can use set_thetalims to draw just a wedge.) Code for reproduction from pylab import * ax1, ax2 = gcf()...
Open Graph Description: Bug report Bug summary All's in the title. (Note that x-sharing (which really means theta-sharing) polar axes makes sense because one can use set_thetalims to draw just a wedge.) Code for reproduct...
X Description: Bug report Bug summary All's in the title. (Note that x-sharing (which really means theta-sharing) polar axes makes sense because one can use set_thetalims to draw just a wedge.) Code for repro...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/19988
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Removal of x-shared polar axes causes crash","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nAll's in the title.\r\n\r\n(Note that x-sharing (which really means theta-sharing) polar axes makes sense because one can use set_thetalims to draw just a wedge.)\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug.\r\nPlease make sure to minimize the number of dependencies required, and provide\r\nany necessary plotted data.\r\nAvoid using threads, as Matplotlib is (explicitly) not thread-safe.--\u003e\r\n\r\n```python\r\nfrom pylab import *\r\nax1, ax2 = gcf().subplots(2, sharex=True, subplot_kw={\"projection\": \"polar\"}); ax2.remove()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\u003c!--The output produced by the above code, which may be a screenshot, console output, etc.--\u003e\r\n\r\n```\r\nTraceback (most recent call last):\r\n File \"\u003cstring\u003e\", line 4, in \u003cmodule\u003e\r\n File \".../path/to/matplotlib/artist.py\", line 162, in remove\r\n self._remove_method(self)\r\n File \".../path/to/matplotlib/figure.py\", line 967, in delaxes\r\n _reset_locators_and_formatters(last_ax.xaxis)\r\n File \".../path/to/matplotlib/figure.py\", line 930, in _reset_locators_and_formatters\r\n isDefault = majloc.axis.isDefault_majloc\r\nAttributeError: '_AxisWrapper' object has no attribute 'isDefault_majloc'\r\n```\r\n\r\n**Expected outcome**\r\n\r\nNormal axes removal.\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: linux\r\n * Matplotlib version (`import matplotlib; print(matplotlib.__version__)`): head\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): mplcairo\r\n * Python version: 39\r\n * Jupyter version (if applicable): \r\n * Other libraries: \r\n\r\n#13482 happens to fix this, because it moves handling of isDefault_\\* to the tickers themselves (where they logically belong), rather than having them on the axis.\r\n\r\n(Note that this is a separate issue from https://github.com/matplotlib/matplotlib/issues/19989 as the root cause seems very different.)","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2021-04-16T16:46:04.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/19988/matplotlib/issues/19988"}
| 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:1f0ac703-eee7-d9d1-b547-4e8b90a07804 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8EEC:2AC12B:1E8D54:29CC30:6A551F14 |
| html-safe-nonce | bb4949102df90f1281b25d3a73e74f49b209c5d5863b4a624781b286188bdb53 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUVDOjJBQzEyQjoxRThENTQ6MjlDQzMwOjZBNTUxRjE0IiwidmlzaXRvcl9pZCI6Ijc1OTA0MzUyNDM3NTAxMzc2MjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e298abfb33cf06e1900f33a777a595deaa994da1110120485527cce1fff842d8 |
| hovercard-subject-tag | issue:859989695 |
| 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/19988/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c8c179d8be6fccb2c3bfd24725111adc87d776e22912c01d0e81bc5c0b5bf51/matplotlib/matplotlib/issues/19988 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c8c179d8be6fccb2c3bfd24725111adc87d776e22912c01d0e81bc5c0b5bf51/matplotlib/matplotlib/issues/19988 |
| og:image:alt | Bug report Bug summary All's in the title. (Note that x-sharing (which really means theta-sharing) polar axes makes sense because one can use set_thetalims to draw just a wedge.) Code for reproduct... |
| 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 | 682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5 |
| 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 | 3b6d37c6470adadff4194742daaab9a817cc4980 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width