Skip to content

Large markers escape legend #8705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amueller opened this issue Jun 2, 2017 · 2 comments
Closed

Large markers escape legend #8705

amueller opened this issue Jun 2, 2017 · 2 comments
Labels
status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. status: inactive Marked by the “Stale” Github Action

Comments

@amueller
Copy link
Contributor

amueller commented Jun 2, 2017

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.random.uniform(size=10), '*',  markersize=40)

b, = plt.plot(np.random.uniform(size=10), np.random.uniform(size=10), '*',  markersize=40)
plt.legend([a, b],
           ["training data/target", "test data", "test prediction"],
           ncol=3, loc=(.1, 1.025))

Actual outcome

image

Expected outcome

Legend box grows to capture whole marker.

Matplotlib version

  • Operating System: Ubuntu 17.04
  • Matplotlib Version: 2.0.1 (conda default channel)
  • Python Version: 3.5
@amueller
Copy link
Contributor Author

amueller commented Jun 2, 2017

Similarly it can happen that the markers overlap:
image

@github-actions
Copy link

This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!

@github-actions github-actions bot added the status: inactive Marked by the “Stale” Github Action label Apr 12, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 13, 2023
@rcomer rcomer added the status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: closed as inactive Issues closed by the "Stale" Github Action. Please comment on any you think should still be open. status: inactive Marked by the “Stale” Github Action
Projects
None yet
Development

No branches or pull requests

3 participants