Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'outside' locations for legend feature#6182

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
ryanbelt wants to merge2 commits intomatplotlib:masterfromryanbelt:master

Conversation

ryanbelt
Copy link
Contributor

Legend: 'outside' locations for legend#3857

For this feature, user are able to just saying legend location without given data point.

plt.legend(displace=['in','UL'])#legend inside Upper Leftplt.legend(displace=['out','BR'])#legend outside Bottom Right

@tacaswelltacaswell added this to the2.1 (next point release) milestoneMar 19, 2016
#default displacement inner UpperRight
anchor = "in"
position = in_displace_code["UR"]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This should probably be done

anchor,code=displaceifanchor.lower()notinset(['in','out']):raiseValueError(...)position=code_map[anchor.lower()][code]

@tacaswell
Copy link
Member

Awesome.

Why not integrate this functionality into the existingpos kwarg? This seems to provide two kwargs which can conflict with each other. We have some other APIs like this in the library and they tend to greatly confuse users.

I thinkdisplace needs to only set in vs out or this functionality needs to be merged directly intopos.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v2.1
Development

Successfully merging this pull request may close these issues.

3 participants
@ryanbelt@tacaswell@mdboom

[8]ページ先頭

©2009-2025 Movatter.jp