Title: AnchoredOffsetBox not taken into account by bbox_inches='tight' · Issue #2530 · matplotlib/matplotlib · GitHub
Open Graph Title: AnchoredOffsetBox not taken into account by bbox_inches='tight' · Issue #2530 · matplotlib/matplotlib
X Title: AnchoredOffsetBox not taken into account by bbox_inches='tight' · Issue #2530 · matplotlib/matplotlib
Description: I don't know if this is intended behavior, but an AnchoredOffsetBox outside the axes will be cut off if bbox_inches='tight'. To reproduce: from matplotlib.offsetbox import AnchoredOffsetbox, TextArea ax = plt.gca() ax.plot([0,1]) anchore...
Open Graph Description: I don't know if this is intended behavior, but an AnchoredOffsetBox outside the axes will be cut off if bbox_inches='tight'. To reproduce: from matplotlib.offsetbox import AnchoredOffsetbox, TextAr...
X Description: I don't know if this is intended behavior, but an AnchoredOffsetBox outside the axes will be cut off if bbox_inches='tight'. To reproduce: from matplotlib.offsetbox import AnchoredOffse...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2530
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AnchoredOffsetBox not taken into account by bbox_inches='tight'","articleBody":"I don't know if this is intended behavior, but an AnchoredOffsetBox outside the axes will be cut off if `bbox_inches='tight'`.\n\nTo reproduce:\n\n``` python\nfrom matplotlib.offsetbox import AnchoredOffsetbox, TextArea\n\nax = plt.gca()\nax.plot([0,1])\nanchored_box = AnchoredOffsetbox(\n loc=6,\n child=TextArea(\"hello\"),\n frameon=True,\n bbox_to_anchor=(1, 0.8),\n bbox_transform=ax.transAxes,\n)\nax.add_artist(anchored_box)\n\nplt.gcf().canvas.print_figure('test.png', format='png', bbox_inches='tight')\n```\n\ngives\n\n\n\nThis is reproduced with current master (81623710410faf323baf0328d671aac8aa7380c3).\n","author":{"url":"https://github.com/minrk","@type":"Person","name":"minrk"},"datePublished":"2013-10-18T18:14:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2530/matplotlib/issues/2530"}
| 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:6f59fe50-f64f-c06d-4234-2626e9b76b2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C01E:2ECA08:1EF42E:2ACB51:6A536BC2 |
| html-safe-nonce | 7da4dfbf7147581f0aab69e58605f6afc2c8169a648b1ad33a603fffc41cdb41 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDFFOjJFQ0EwODoxRUY0MkU6MkFDQjUxOjZBNTM2QkMyIiwidmlzaXRvcl9pZCI6IjQzODYwMTU1NzkzNDczMTU2NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4bae88692c945b29e48465a0c0e91edc675dafcc1e2cc3233fb8ec01eed363dc |
| hovercard-subject-tag | issue:21235702 |
| 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/2530/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1f640d262a4937c3e3c5d28c1c392d3e7e6bec1022a8956dcc0c1c7613cdedc/matplotlib/matplotlib/issues/2530 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1f640d262a4937c3e3c5d28c1c392d3e7e6bec1022a8956dcc0c1c7613cdedc/matplotlib/matplotlib/issues/2530 |
| og:image:alt | I don't know if this is intended behavior, but an AnchoredOffsetBox outside the axes will be cut off if bbox_inches='tight'. To reproduce: from matplotlib.offsetbox import AnchoredOffsetbox, TextAr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | minrk |
| 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