Title: Large markers escape legend · Issue #8705 · matplotlib/matplotlib · GitHub
Open Graph Title: Large markers escape legend · Issue #8705 · matplotlib/matplotlib
X Title: Large markers escape legend · Issue #8705 · matplotlib/matplotlib
Description: Bug report Bug summary Increasing marker size leads to markers that escape the legend boundaries (or even the figure) Code for reproduction import numpy as np import matplotlib.pyplot as plt a, = plt.plot(np.random.uniform(size=10), np.r...
Open Graph Description: Bug report Bug summary Increasing marker size leads to markers that escape the legend boundaries (or even the figure) Code for reproduction import numpy as np import matplotlib.pyplot as plt a, = p...
X Description: Bug report Bug summary Increasing marker size leads to markers that escape the legend boundaries (or even the figure) Code for reproduction import numpy as np import matplotlib.pyplot as plt a, = p...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8705
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Large markers escape legend","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nIncreasing marker size leads to markers that escape the legend boundaries (or even the figure)\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\na, = plt.plot(np.random.uniform(size=10), np.random.uniform(size=10), '*', markersize=40)\r\n\r\nb, = plt.plot(np.random.uniform(size=10), np.random.uniform(size=10), '*', markersize=40)\r\nplt.legend([a, b],\r\n [\"training data/target\", \"test data\", \"test prediction\"],\r\n ncol=3, loc=(.1, 1.025))\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nLegend box grows to capture whole marker.\r\n\r\n**Matplotlib version**\r\n * Operating System: Ubuntu 17.04\r\n * Matplotlib Version: 2.0.1 (conda default channel)\r\n * Python Version: 3.5\r\n\r\n","author":{"url":"https://github.com/amueller","@type":"Person","name":"amueller"},"datePublished":"2017-06-02T19:27:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/8705/matplotlib/issues/8705"}
| 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:360e85a2-8053-1f42-3364-2bba0259a32e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8908:34AE79:6C0760:8FE9EB:6A555C4A |
| html-safe-nonce | 11e072a252fa532c9af35c2ef9b60e46ea7fe46cd31966f34889125ee4e37946 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTA4OjM0QUU3OTo2QzA3NjA6OEZFOUVCOjZBNTU1QzRBIiwidmlzaXRvcl9pZCI6IjIwNjUzNDg2NjY2MDUyNjM5NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2571606784ad4677b229a153cf71a330ade9dbb38c41a06a66dcab521705bdbf |
| hovercard-subject-tag | issue:233277107 |
| 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/8705/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c048e8ea4343d78827085de01d1d047eb900f573bd55643c1de12f897e4b9a8b/matplotlib/matplotlib/issues/8705 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c048e8ea4343d78827085de01d1d047eb900f573bd55643c1de12f897e4b9a8b/matplotlib/matplotlib/issues/8705 |
| og:image:alt | Bug report Bug summary Increasing marker size leads to markers that escape the legend boundaries (or even the figure) Code for reproduction import numpy as np import matplotlib.pyplot as plt a, = p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amueller |
| 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 | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width