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

numpydocification. #13897

Merged
merged 1 commit into from Apr 13, 2019
Merged

numpydocification. #13897

merged 1 commit into from Apr 13, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Apr 6, 2019

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

lib/matplotlib/axes/_base.py Outdated Show resolved Hide resolved
lib/matplotlib/axes/_base.py Outdated Show resolved Hide resolved
@@ -1410,10 +1412,14 @@ def set_anchor(self, anchor, share=False):

def get_data_ratio(self):
"""
Returns the aspect ratio of the raw data.
Returns
Copy link
Member

Choose a reason for hiding this comment

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

In general, I would like docstrings to have a summary line. Not least because this is used in summaries such as
grafik.

Transforming to a returns section does only add the minor value of stating that it's a float.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Restored the cases where the summary line indeed fits in a single line (for the longer cases, e.g. get_xaxis_text1_transform, I think the Returns section is more readable).

lib/matplotlib/mathtext.py Show resolved Hide resolved
lib/matplotlib/mathtext.py Outdated Show resolved Hide resolved
lib/matplotlib/mathtext.py Outdated Show resolved Hide resolved
lib/matplotlib/tests/test_triangulation.py Outdated Show resolved Hide resolved
lib/matplotlib/mathtext.py Outdated Show resolved Hide resolved
lib/matplotlib/mathtext.py Outdated Show resolved Hide resolved
@timhoffm timhoffm added this to the v3.1.0 milestone Apr 13, 2019
@timhoffm timhoffm merged commit a3d7bcb into matplotlib:master Apr 13, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Apr 13, 2019
@anntzer anntzer deleted the numpydoc branch April 13, 2019 17:54
timhoffm added a commit that referenced this pull request Apr 13, 2019
…897-on-v3.1.x

Backport PR #13897 on branch v3.1.x (numpydocification.)
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.

None yet

2 participants