Title: Annotation bbox clipping incorrect for `boxstyle='round'` Matplotlib >= 1.4.0 · Issue #4140 · matplotlib/matplotlib · GitHub
Open Graph Title: Annotation bbox clipping incorrect for `boxstyle='round'` Matplotlib >= 1.4.0 · Issue #4140 · matplotlib/matplotlib
X Title: Annotation bbox clipping incorrect for `boxstyle='round'` Matplotlib >= 1.4.0 · Issue #4140 · matplotlib/matplotlib
Description: Annotations using a bbox boxstyle of "round" have different (incorrect?) clipping behavior compared to a square boxstyle. As an example, note that with matplotlib 1.4.0, the connector arrow extends inside the round box, while it is clipp...
Open Graph Description: Annotations using a bbox boxstyle of "round" have different (incorrect?) clipping behavior compared to a square boxstyle. As an example, note that with matplotlib 1.4.0, the connector arrow extends...
X Description: Annotations using a bbox boxstyle of "round" have different (incorrect?) clipping behavior compared to a square boxstyle. As an example, note that with matplotlib 1.4.0, the connector arr...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4140
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Annotation bbox clipping incorrect for `boxstyle='round'` Matplotlib \u003e= 1.4.0","articleBody":"Annotations using a bbox boxstyle of \"round\" have different (incorrect?) clipping behavior compared to a square boxstyle.\n\nAs an example, note that with matplotlib 1.4.0, the connector arrow extends inside the round box, while it is clipped for the square boxstyle. With earlier versions, both have the same clipping behavior.\n\n```\nimport matplotlib.pyplot as plt\nimport matplotlib\n\ndef main():\n fig, ax = plt.subplots()\n ax.set(title='Matplotlib {}'.format(matplotlib.__version__))\n annotate(ax, 'Round')\n annotate(ax, 'Square')\n plt.show()\n\ndef annotate(ax, text):\n bbox = dict(fc='none')\n x, y = 0.1, 0.1\n\n if text == 'Round':\n bbox['boxstyle'] = 'round'\n y = 0.5\n\n ax.annotate(text, xy=(x, y), xytext=(50, 50), size=20,\n xycoords='data', textcoords='offset points',\n bbox=bbox, arrowprops=dict(arrowstyle='-\u003e'))\n\nmain()\n```\n\n\n\n\n\nThe problem persists up to and including the current HEAD, but newer versions also have the issue described in https://github.com/matplotlib/matplotlib/issues/4139 The two issues don't appear to be directly related.\n","author":{"url":"https://github.com/joferkington","@type":"Person","name":"joferkington"},"datePublished":"2015-02-21T17:20:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4140/matplotlib/issues/4140"}
| 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:c8831fa4-9498-26ea-c949-526328416af2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D04:3B4DC0:DD0D2E:12C0843:6A55B85D |
| html-safe-nonce | da6ee69acad5b7e601c57fb76dd53f8c2bfe7ce318d333fa5c0a1cdc71d3aef3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDA0OjNCNERDMDpERDBEMkU6MTJDMDg0Mzo2QTU1Qjg1RCIsInZpc2l0b3JfaWQiOiIxNzc4NTM5MTY4NzE0MzA3Njc3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | cc496184ad9eae1209fd6ef4805caed3cf8d081905889f363e41401d482530ce |
| hovercard-subject-tag | issue:58466700 |
| 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/4140/issue_layout |
| twitter:image | https://opengraph.githubassets.com/305f8fe61f84b72da05e91106de100da038417ffd71b43a39f9162465b09883a/matplotlib/matplotlib/issues/4140 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/305f8fe61f84b72da05e91106de100da038417ffd71b43a39f9162465b09883a/matplotlib/matplotlib/issues/4140 |
| og:image:alt | Annotations using a bbox boxstyle of "round" have different (incorrect?) clipping behavior compared to a square boxstyle. As an example, note that with matplotlib 1.4.0, the connector arrow extends... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joferkington |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 64b9ae238e18eb87ead1f9fe37a7cc81d67d85aa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width