Title: Feature Request: Automatic Legend Placement Outside of Figures and Axes · Issue #3745 · matplotlib/matplotlib · GitHub
Open Graph Title: Feature Request: Automatic Legend Placement Outside of Figures and Axes · Issue #3745 · matplotlib/matplotlib
X Title: Feature Request: Automatic Legend Placement Outside of Figures and Axes · Issue #3745 · matplotlib/matplotlib
Description: The need to place a legend outside of the axes is very common, particularly if graphing unpredictable data. It is also an issue when data is dense enough that there is no clear space on the graph to place the legend. While we have a simp...
Open Graph Description: The need to place a legend outside of the axes is very common, particularly if graphing unpredictable data. It is also an issue when data is dense enough that there is no clear space on the graph t...
X Description: The need to place a legend outside of the axes is very common, particularly if graphing unpredictable data. It is also an issue when data is dense enough that there is no clear space on the graph t...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3745
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: Automatic Legend Placement Outside of Figures and Axes","articleBody":"The need to place a legend outside of the axes is very common, particularly if graphing unpredictable data. It is also an issue when data is dense enough that there is no clear space on the graph to place the legend. While we have a simple system for positioning the legend within the axes, positioning them outside the axes is an exercise in frustration.\n\nCurrently, in order to place a legend outside of a figure, a complicated manual positioning procedure is needed, involving manipulation of `bbox_to_anchor` as well as axes and figure size and positioning. This method requires extensive trial and error. Further, this manual work must be repeated anytime the graph size or shape must be changed. On a large number of projects, I personally have spent more time getting the legend and the graph sizing to cooperate when I must place the legend outside than on the rest of the project COMBINED (often requiring the writing of separate code just to test this without having to run the rest of the project over and over), and I have heard similar stories from many other people.\n\nTo place a legend inside the axes we have a simple location system wherein we simply set the `loc` parameter, which requires only so much trial and error as looking at a couple different locations at most, and requires no added work on changing the size and shape of the graph. Can this system be extended to allow for automatic positioning of the legend outside the axes? \n","author":{"url":"https://github.com/Void2258","@type":"Person","name":"Void2258"},"datePublished":"2014-10-31T18:56:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/3745/matplotlib/issues/3745"}
| 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:e6ef345c-e9a5-a174-10e1-d817ee08f33e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A2A8:3625E7:657983:8A061B:6A534A3D |
| html-safe-nonce | f04c407ff408108ac8f4c3fbb44af3243d76400848705efbe5f139a9363961f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMkE4OjM2MjVFNzo2NTc5ODM6OEEwNjFCOjZBNTM0QTNEIiwidmlzaXRvcl9pZCI6IjEwNTgwNjMyMzY2NDgzNTY0MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cc6fdd1231d165591d3498c1203a4ed33622bff6a3273efcb9973dc88b5eaa00 |
| hovercard-subject-tag | issue:47432482 |
| 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/3745/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59f547e646b11bf41405902f734ddb8d5f26bc2c7cd3f78b91589307dbd18d8d/matplotlib/matplotlib/issues/3745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59f547e646b11bf41405902f734ddb8d5f26bc2c7cd3f78b91589307dbd18d8d/matplotlib/matplotlib/issues/3745 |
| og:image:alt | The need to place a legend outside of the axes is very common, particularly if graphing unpredictable data. It is also an issue when data is dense enough that there is no clear space on the graph t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Void2258 |
| 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