Title: Setting annotation background covers arrow · Issue #4400 · matplotlib/matplotlib · GitHub
Open Graph Title: Setting annotation background covers arrow · Issue #4400 · matplotlib/matplotlib
X Title: Setting annotation background covers arrow · Issue #4400 · matplotlib/matplotlib
Description: Setting a background on the annotation covers the arrow also. This didn't happen in 1.4.2. I've been using it to separate the text from any plot data points in cases where they overlap. Resolvable for now by redrawing an empty annotation...
Open Graph Description: Setting a background on the annotation covers the arrow also. This didn't happen in 1.4.2. I've been using it to separate the text from any plot data points in cases where they overlap. Resolvable ...
X Description: Setting a background on the annotation covers the arrow also. This didn't happen in 1.4.2. I've been using it to separate the text from any plot data points in cases where they overlap. Res...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting annotation background covers arrow","articleBody":"Setting a background on the annotation covers the arrow also. This didn't happen in 1.4.2. I've been using it to separate the text from any plot data points in cases where they overlap. Resolvable for now by redrawing an empty annotation with an arrow.\n\nPre 1.4.2:\n\nCurrent:\n\nExample code:\n\n```\nimport matplotlib.pyplot as plt\nimport numpy\na = numpy.zeros(100)\na[::2] = 1\nplt.figure(figsize=(5.9,4.4))\nplt.plot(a)\nshared_args = {\"xytext\":(-15,0), \"va\":'center', \"ha\":\"right\", \"textcoords\":'offset points', \"arrowprops\":{\"arrowstyle\": \"-\u003e\"}}\nplt.annotate(\"Test\", xy=(20,0.5), **shared_args)\nplt.annotate(\"Test\", xy=(20,0.4), backgroundcolor=\"w\", **shared_args)\nplt.show()\n```\n\nAnd the actual introducing commit, in the middle of what appears to be other restructuring https://github.com/matplotlib/matplotlib/commit/9d1c876e65e38b7596df68768a09baf9fcdb5916\n","author":{"url":"https://github.com/ndevenish","@type":"Person","name":"ndevenish"},"datePublished":"2015-05-03T14:19:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/4400/matplotlib/issues/4400"}
| 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:c425f1b8-6dff-a7fd-6608-73db4f219c46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA94:3176E8:ECF459:144FECD:6A55C7CA |
| html-safe-nonce | 00df3f3d9a8295b84cd08e7303500c27a87a46a9a2c797ccb45c50215ebcb7d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTk0OjMxNzZFODpFQ0Y0NTk6MTQ0RkVDRDo2QTU1QzdDQSIsInZpc2l0b3JfaWQiOiI0NzUzMTQ1MTQ4OTcxNzk2NDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f1b62874f738ddf1ccb16fe77cb4b068b4c83addcffb369c510b54524349f157 |
| hovercard-subject-tag | issue:72812086 |
| 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/4400/issue_layout |
| twitter:image | https://opengraph.githubassets.com/918912130d4e6ce0315188e2709404c284ae95a4a067224a35c2fb499e4bf92d/matplotlib/matplotlib/issues/4400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/918912130d4e6ce0315188e2709404c284ae95a4a067224a35c2fb499e4bf92d/matplotlib/matplotlib/issues/4400 |
| og:image:alt | Setting a background on the annotation covers the arrow also. This didn't happen in 1.4.2. I've been using it to separate the text from any plot data points in cases where they overlap. Resolvable ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ndevenish |
| 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 | 8f8e1726192df8dce16872ceb503336c12e9ae78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width