Docstring + import cleanups to legend.py. by anntzer · Pull Request #16674 · matplotlib/matplotlib · GitHub
Skip to content

Docstring + import cleanups to legend.py. - #16674

Merged
timhoffm merged 1 commit into
matplotlib:masterfrom
anntzer:legend
Mar 6, 2020
Merged

timhoffm merged 1 commit into
matplotlib:masterfrom
anntzer:legend

Conversation

@anntzer

@anntzer anntzer commented Mar 5, 2020

Copy link
Copy Markdown
Contributor

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Comment thread lib/matplotlib/legend.py Outdated
Comment on lines +12 to +19

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Different sectioning and minor formatting/wording/typo:

Suggested change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done (with small additional edits)

- Reword the module docstring.
- Don't import rcParams.

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I‘ll be so bold as to merge with one review. The only non-doc change is the rcParams to mpl.rcParams for which we already have precedence. So let‘s not waste valuable developer time on a second review.

@timhoffm
timhoffm merged commit 7ac7256 into matplotlib:master Mar 6, 2020
@anntzer
anntzer deleted the legend branch March 6, 2020 09:32
@anntzer anntzer added this to the v3.3.0 milestone Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants