Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Doc]: figlegend examples call fig.figlegend instead of plt.figlegend or fig.legend #24433

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
roryyorke opened this issue Nov 12, 2022 · 0 comments · Fixed by #24434
Closed
Milestone

Comments

@roryyorke
Copy link

Documentation Link

https://matplotlib.org/devdocs/api/_as_gen/matplotlib.pyplot.figlegend.html

Problem

In the linked doc, the examples all use fig.figlegend, e.g.

ax.plot([1, 2, 3], label='Inline label')
fig.figlegend()

Figure doesn't have a figlegend method (but does have legend).

Suggested improvement

The examples should probably call plt.figlegend, since it's the docs for matplotlib.pyplot.figlegend.

ksunden added a commit to ksunden/matplotlib that referenced this issue Nov 12, 2022
ksunden added a commit to ksunden/matplotlib that referenced this issue Nov 14, 2022
ksunden added a commit to ksunden/matplotlib that referenced this issue Nov 14, 2022
@QuLogic QuLogic added this to the v3.6.3 milestone Nov 15, 2022
melissawm pushed a commit to melissawm/matplotlib that referenced this issue Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants