Title: Take text objects into account in legend autopositioning. · Issue #7869 · matplotlib/matplotlib · GitHub
Open Graph Title: Take text objects into account in legend autopositioning. · Issue #7869 · matplotlib/matplotlib
X Title: Take text objects into account in legend autopositioning. · Issue #7869 · matplotlib/matplotlib
Description: Legend autopositioning currently does not take text objects into account as can be checked by running plt.plot([0, 1], label="foo"); plt.text(.05, .95, "a"); plt.legend() This is because text objects are not included in _auto_legend_data...
Open Graph Description: Legend autopositioning currently does not take text objects into account as can be checked by running plt.plot([0, 1], label="foo"); plt.text(.05, .95, "a"); plt.legend() This is because text objec...
X Description: Legend autopositioning currently does not take text objects into account as can be checked by running plt.plot([0, 1], label="foo"); plt.text(.05, .95, "a"); plt.legend() This i...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7869
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Take text objects into account in legend autopositioning.","articleBody":"Legend autopositioning currently does not take text objects into account as can be checked by running\r\n```\r\nplt.plot([0, 1], label=\"foo\"); plt.text(.05, .95, \"a\"); plt.legend()\r\n```\r\nThis is because text objects are not included in [`_auto_legend_data`](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/legend.py#L707) (which only serves that purpose, AFAICT).\r\n\r\nAdding them should be easy, but extra points if the autoplacement algorithm penalizes overlapping with text *more* than overlapping with other artists (given that it's probably indeed worse in general).","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2017-01-19T01:48:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/7869/matplotlib/issues/7869"}
| 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:32cf913d-f16c-3a77-ca45-0f8781fb61dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C466:2D523B:1A56179:23EA7C8:6A536C13 |
| html-safe-nonce | c4d701e404f5c7ac4697d20330c9d28b815542c300154a98642dc3148c190b5a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDY2OjJENTIzQjoxQTU2MTc5OjIzRUE3Qzg6NkE1MzZDMTMiLCJ2aXNpdG9yX2lkIjoiODYyMzA2OTQyODk1Mzg2OTMzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 58f5882c739b41ce1d7586ef054a5d56bb8aa13a48e7438fc1397e02751b177c |
| hovercard-subject-tag | issue:201743295 |
| 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/7869/issue_layout |
| twitter:image | https://opengraph.githubassets.com/292858f765778bd05a16baefe13f1bad26ad691a23d45b5df4112b0af8bd1ded/matplotlib/matplotlib/issues/7869 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/292858f765778bd05a16baefe13f1bad26ad691a23d45b5df4112b0af8bd1ded/matplotlib/matplotlib/issues/7869 |
| og:image:alt | Legend autopositioning currently does not take text objects into account as can be checked by running plt.plot([0, 1], label="foo"); plt.text(.05, .95, "a"); plt.legend() This is because text objec... |
| 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 | 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