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

Don't generate individual doc entries for inherited Axes/Axis/Tick methods#14960

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

Merged
QuLogic merged 3 commits intomatplotlib:masterfromanntzer:docinherit
Apr 30, 2020

Conversation

anntzer
Copy link
Contributor

These methods directly pass through to the superclass and don't warrant
their own page (having a doc page for Tick.add_callback that just
reproes the docstring of Artist.add_callback doesn't add much, and may
in fact make things more confusing for the reader ("oh, it's separately
documented here, perhaps it does something special?").

Also note that the docs for other Artist subclasses (e.g. Line2D,
AxesImage, etc.) don't bother repeating these either.

attn@tacaswell who added these (together with the non-inherited methods, which should definitely be kept) in#7176.

This may also improve a bit the ci build, as this means ~20-25%(!) fewer API pages...

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code isFlake 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

@tacaswelltacaswell added this to thev3.2.0 milestoneAug 8, 2019
@tacaswell
Copy link
Member

IIRC, I added these to make sure that we had targets for the auto-reference links sphinx will generate.

@anntzer
Copy link
ContributorAuthor

Does sphinx not link to the parent class as necessary? Well, we can always wait for#14768 to be merged first and we'll see whether this PR breaks the doc build.

@anntzer
Copy link
ContributorAuthor

Had to fix just a couple of missing references: Axis refers to its axes property but that's something that numpydoc does automatically and can't be tuned; I also changed the auto-rst table gen to link to the correct parent method which provides the docstring, when it is inherited.

@QuLogicQuLogic mentioned this pull requestMar 10, 2020
6 tasks
@anntzeranntzerforce-pushed thedocinherit branch 2 times, most recently from9a0bde7 to8e5a042CompareMarch 10, 2020 07:32
@tacaswell
Copy link
Member

I am sold on making those pages more readable (by including less noise). Slightly concerned about bit rot / overlapping docs if we remove these build products that problem is already.

👍, but we need to rebuild the missing references.

@anntzer
Copy link
ContributorAuthor

rebased

@QuLogic
Copy link
Member

This looks about ready, but all the doc builds failing is probably not good...

…thods.These methods directly pass through to the superclass and don't warranttheir own page (having a doc page for Tick.add_callback that justreproes the docstring of Artist.add_callback doesn't add much, and mayin fact make things more confusing for the reader ("oh, it's separatelydocumented here, perhaps it does something special?").Also note that the docs for other Artist subclasses (e.g. Line2D,AxesImage, etc.) don't bother repeating these either.
In particular, the property table for artists was changed to point linksto the parent method which actually provides the docstring, if thedocstring is inherited.
@anntzer
Copy link
ContributorAuthor

let's see if this fixes it...

@QuLogicQuLogic merged commit1567063 intomatplotlib:masterApr 30, 2020
@anntzeranntzer deleted the docinherit branchApril 30, 2020 22:01
@timhoffmtimhoffm mentioned this pull requestApr 6, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

@QuLogicQuLogicQuLogic approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.3.0
Development

Successfully merging this pull request may close these issues.

3 participants
@anntzer@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp