Title: axes_grid1 axes have no keyword argument 'bbox_extra_artists' · Issue #12634 · matplotlib/matplotlib · GitHub
Open Graph Title: axes_grid1 axes have no keyword argument 'bbox_extra_artists' · Issue #12634 · matplotlib/matplotlib
X Title: axes_grid1 axes have no keyword argument 'bbox_extra_artists' · Issue #12634 · matplotlib/matplotlib
Description: Bug report Bug summary A regression was introduced from v3.0.0 and v3.0.1 that breaks axes_grid1 with a TypeError: get_tightbbox() got an unexpected keyword argument 'bbox_extra_artists'. Code for reproduction import matplotlib.pyplot as...
Open Graph Description: Bug report Bug summary A regression was introduced from v3.0.0 and v3.0.1 that breaks axes_grid1 with a TypeError: get_tightbbox() got an unexpected keyword argument 'bbox_extra_artists'. Code for ...
X Description: Bug report Bug summary A regression was introduced from v3.0.0 and v3.0.1 that breaks axes_grid1 with a TypeError: get_tightbbox() got an unexpected keyword argument 'bbox_extra_artists'. C...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12634
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"axes_grid1 axes have no keyword argument 'bbox_extra_artists'","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nA regression was introduced from v3.0.0 and v3.0.1 that breaks axes_grid1 with a `TypeError: get_tightbbox() got an unexpected keyword argument 'bbox_extra_artists'`.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nplt.ion()\r\n\r\nfrom mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes\r\nfrom mpl_toolkits.axes_grid1.inset_locator import mark_inset\r\n\r\nfig, ax = plt.subplots(figsize=(8, 6))\r\n\r\nl, = ax.plot([1, 2, 3], [0, 1, 0])\r\n\r\nax_zoom = zoomed_inset_axes(ax, 4)\r\nax_zoom.plot([1, 2, 3], [0, 1, 0])\r\n\r\nmark_inset(ax, ax_zoom, loc1=1, loc2=3, fc=\"none\", ec='0.3')\r\n\r\nfig.savefig(\"/tmp/tmp.png\")\r\n```\r\n\r\n**Actual outcome**\r\n\r\n```\r\nTypeError Traceback (most recent call last)\r\n~/.miniconda36/envs/poliastro37/lib/python3.7/site-packages/IPython/core/formatters.py in __call__(self, obj)\r\n 339 pass\r\n 340 else:\r\n--\u003e 341 return printer(obj)\r\n 342 # Finally look for special method names\r\n 343 method = get_real_method(obj, self.print_method)\r\n\r\n~/.miniconda36/envs/poliastro37/lib/python3.7/site-packages/IPython/core/pylabtools.py in \u003clambda\u003e(fig)\r\n 239 \r\n 240 if 'png' in formats:\r\n--\u003e 241 png_formatter.for_type(Figure, lambda fig: print_figure(fig, 'png', **kwargs))\r\n 242 if 'retina' in formats or 'png2x' in formats:\r\n 243 png_formatter.for_type(Figure, lambda fig: retina_figure(fig, **kwargs))\r\n\r\n~/.miniconda36/envs/poliastro37/lib/python3.7/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, **kwargs)\r\n 123 \r\n 124 bytes_io = BytesIO()\r\n--\u003e 125 fig.canvas.print_figure(bytes_io, **kw)\r\n 126 data = bytes_io.getvalue()\r\n 127 if fmt == 'svg':\r\n\r\n~/.miniconda36/envs/poliastro37/lib/python3.7/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, **kwargs)\r\n 2051 bbox_artists = kwargs.pop(\"bbox_extra_artists\", None)\r\n 2052 bbox_inches = self.figure.get_tightbbox(renderer,\r\n-\u003e 2053 bbox_extra_artists=bbox_artists)\r\n 2054 pad = kwargs.pop(\"pad_inches\", None)\r\n 2055 if pad is None:\r\n\r\n~/.miniconda36/envs/poliastro37/lib/python3.7/site-packages/matplotlib/figure.py in get_tightbbox(self, renderer, bbox_extra_artists)\r\n 2274 bb.extend(\r\n 2275 ax.get_tightbbox(renderer, bbox_extra_artists=bbox_extra_artists)\r\n-\u003e 2276 for ax in self.axes if ax.get_visible())\r\n 2277 \r\n 2278 if len(bb) == 0:\r\n\r\n~/.miniconda36/envs/poliastro37/lib/python3.7/site-packages/matplotlib/figure.py in \u003cgenexpr\u003e(.0)\r\n 2274 bb.extend(\r\n 2275 ax.get_tightbbox(renderer, bbox_extra_artists=bbox_extra_artists)\r\n-\u003e 2276 for ax in self.axes if ax.get_visible())\r\n 2277 \r\n 2278 if len(bb) == 0:\r\n\r\nTypeError: get_tightbbox() got an unexpected keyword argument 'bbox_extra_artists'\r\n\r\n\u003cFigure size 576x432 with 2 Axes\u003e\r\n```\r\n\r\n**Expected outcome**\r\n\r\nThis worked in version v3.0.0.\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 Mint (latest)\r\n * Matplotlib version: v3.0.1\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): `module://ipykernel.pylab.backend_inline`\r\n * Python version: 3.7.0\r\n * Jupyter version (if applicable): 5.7.0 (notebook)\r\n * Other libraries: \r\n\r\n\u003c!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--\u003e\r\n\u003c!--If you installed from conda, please specify which channel you used if not the default--\u003e\r\n\r\nInstalled using pip.","author":{"url":"https://github.com/astrojuanlu","@type":"Person","name":"astrojuanlu"},"datePublished":"2018-10-26T03:35:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/12634/matplotlib/issues/12634"}
| 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:dd8dce5c-3661-8016-f821-33916a81e5cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D908:1A8743:3D7BF8A:5577C5F:6A54CCBB |
| html-safe-nonce | fd8747399e57f061f70cba5b47b425ec477f7b817ff159d8e98006f4e36930b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTA4OjFBODc0MzozRDdCRjhBOjU1NzdDNUY6NkE1NENDQkIiLCJ2aXNpdG9yX2lkIjoiOTA3Mjk3OTc5MDIxOTQ5NjYzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1112c4d4d4e42a87d83cbfb286a82f6c12b06ae8c7df53574c3d7951e447122b |
| hovercard-subject-tag | issue:374213960 |
| 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/12634/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c398e30c34b7f989b886cf26f4053f2dbfb3fb5adca352a1b4902b1ac8c7a6e3/matplotlib/matplotlib/issues/12634 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c398e30c34b7f989b886cf26f4053f2dbfb3fb5adca352a1b4902b1ac8c7a6e3/matplotlib/matplotlib/issues/12634 |
| og:image:alt | Bug report Bug summary A regression was introduced from v3.0.0 and v3.0.1 that breaks axes_grid1 with a TypeError: get_tightbbox() got an unexpected keyword argument 'bbox_extra_artists'. Code for ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrojuanlu |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6e5f2e6ff3f430aa60a674066f957bca9f2106017e1b68126417422b58ce6e1e |
| 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 | be4d48619391052c9d312c7b587bb2ac38a97f57 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width