Skip to content
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

Legend placement #25

Closed
coandrei opened this issue Jul 7, 2020 · 5 comments
Closed

Legend placement #25

coandrei opened this issue Jul 7, 2020 · 5 comments

Comments

@coandrei
Copy link
Contributor

coandrei commented Jul 7, 2020

Thank you for the awesome work!

Am I miss something? ... to me the strings for A-F are incorrect. The bbox_to_anchor seems fine though.

image

@coandrei
Copy link
Contributor Author

coandrei commented Jul 7, 2020

Ok. Got it now. If it refers to the blue dot then still two things need to be fixed:

  1. for D case ... x value should be positive .1 => bbox_to_anchor=(.1,-.1)
  2. MatplotlibDeprecationWarning: Unrecognized location 'left'. Falling back on 'best'

To solve (2) perhaps H should use 'center left' ... instead of left

@timhoffm
Copy link
Member

timhoffm commented Jul 7, 2020

Your observations are correct.

"right" is also only supported for backward compatibility and we should use "center right" for consistency.
https://matplotlib.org/devdocs/api/_as_gen/matplotlib.axes.Axes.legend.html

@coandrei Do you want to provide a pull request with the changes?

@rougier
Copy link
Member

rougier commented Jul 8, 2020

@coandrei a PR would be nice. Also for the numerical value, we should use {\ttfamily (0.1,0.1)} instead of (0.1,0.1). It will makes thing more readable.

@coandrei
Copy link
Contributor Author

coandrei commented Jul 8, 2020

@rougier copy that.

@coandrei
Copy link
Contributor Author

@rougier PR sent. I close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants