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

Appearance settings

Possible legend locations #8464

Copy link
Copy link
Closed
Closed
Copy link
@ghost

Description

A naive question regarding the loc argument of plt.legend:

In [5]: plt.legend(loc='left')
/opt/miniconda/lib/python3.6/site-packages/matplotlib/legend.py:326: UserWarning: Unrecognized location "left". Falling back on "best"; valid locations are
	best
	upper right
	upper left
	lower left
	lower right
	right
	center left
	center right
	lower center
	upper center
	center

  six.iterkeys(self.codes))))

Is there a reason why right is accepted whereas left is not?

By the way, is right the same as center right?
It seems so, but I could not find any confirmation in the doc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.