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

Doc organize axes docs#7176

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
NelleV merged 14 commits intomatplotlib:v2.xfromtacaswell:doc_organize_axes_docs
Sep 29, 2016
Merged

Conversation

tacaswell
Copy link
Member

No description provided.

has2k1, twmr, and WillClaudeHolmes reacted with thumbs up emoji
This: - makes the axes_api page a collection of tables which are grouped   reasonably - gives each method it's own web page
@tacaswelltacaswell added this to the2.0 (style change major release) milestoneSep 25, 2016
@tacaswell
Copy link
MemberAuthor

http://tacaswell.github.io/matplotlib/api/axes_api.html is what it looks like now.

@efiring
Copy link
Member

Wow! What an improvement!


Axes.grid

Axes.get_axis_bgcolor
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep the documentation of deprecated methods in here?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The way this is currently working, these are what is triggering the auto-generate sub-pages to be created. If we do not include these here then these methods are not documented at all.

Maybe move all the deprecated methods to 'Deprecated' section at the bottom?

Copy link
Member

Choose a reason for hiding this comment

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

I think that'd be nice, thought as long as these are clearly documented as deprecated (which they are), I am fine with how it is right now.

Axes.get_default_bbox_extra_artists
Axes.get_transformed_clip_path_and_affine
Axes.has_data
Axes.hold
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this is the time to add a "Future Deprecation Warning" to the docstring in view of#3070

If the first line ends in '::', automsummary generates invalid rst
 - remove identical code in YAxis and XAxis, move to Axis - add abstract methods on Axis and Tick to make documenting easier
@tacaswell
Copy link
MemberAuthor

I took a stab at doing the Axis and Tick API as well.

http://tacaswell.github.io/matplotlib/api/axis_api.html

I think I am going to write a sphinx extension to generate the 'inherited from Artist' sections.

Generated the list of methods / attributes via

forninsorted(list(set(dir(maxis.Axis))-set(dir(matplotlib.artist.Artist)))):print('Axis.'+n)ifn[0]!='_'elseNone

There is probably a better way to get this, but this is effective.Code used to generate this list:def _recursive_subclasses(cls):    "Return all subclasses (and their subclasses, etc.)."    # Source:http://stackoverflow.com/a/3862957/1221924    return (cls.__subclasses__() +        [g for s in cls.__subclasses__() for g in _recursive_subclasses(s)])' '.join(sorted(['.'.join((_.__module__, _.__name__)) for _ in _recursive_subclasses(matplotlib.artist.Artist)]))
@NelleVNelleV changed the titleDoc organize axes docs[MRG+1] Doc organize axes docsSep 26, 2016
===========

.. inheritance-diagram:: Tick Ticker XAxis YAxis XTick YTick
:private-bases:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason for not having the inheritance diagramalways at the top (preferable to me) oralways at the bottom.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Because I thought it went better at the top inArtist and better at the bottom here. The reason for that is that I would expect users to frequently directly use theAxis classes, but not theTick classes, hence I put the diagram at the bottom. Having now written out this justification, that makes me think thatAxis andTick should get their own pages.

Copy link
MemberAuthor

@tacaswelltacaswellSep 27, 2016
edited
Loading

Choose a reason for hiding this comment

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

And I now see this is really at the top so I am not sure what I was remembering...

Copy link
Member

Choose a reason for hiding this comment

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

I think this could be moved to the bottom for all figures.
Opening a bug#7190.

@NelleV
Copy link
Member

I'll merge this PR in 48hours unless someone has major complaints or updates the PR with new information.
Most of the questions raised by reviewers have led to tickets in our new "overhaul documentation" project:https://github.com/matplotlib/matplotlib/projects/1

@NelleVNelleV merged commitf59e21d intomatplotlib:v2.xSep 29, 2016
@NelleV
Copy link
Member

Thank you@tacaswell ! That's a great improvement on our documentation.

afvincent and WillClaudeHolmes reacted with thumbs up emoji

@NelleV
Copy link
Member

Note: those changes should also be added to master.

@tacaswelltacaswell deleted the doc_organize_axes_docs branchSeptember 29, 2016 19:05
@QuLogicQuLogic changed the title[MRG+1] Doc organize axes docsDoc organize axes docsOct 16, 2016
@WillClaudeHolmes
Copy link

@tacaswell, I want to say a big Thank-you for this. I am new to using matplotlib, and I was very confused about how it worked and how to use it. Before this update, I had tried to figure out the object oriented side, but I had little success. It is very understandable now. I am teaching a course in which the students use matplotlib, and this documentation improvement is a big help to me in my course. - Thanks.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@efiringefiringefiring left review comments

@NelleVNelleVNelleV approved these changes

@has2k1has2k1has2k1 left review comments

Assignees
No one assigned
Projects
None yet
Milestone
v2.0.0
Development

Successfully merging this pull request may close these issues.

6 participants
@tacaswell@efiring@NelleV@WillClaudeHolmes@has2k1@mdboom

[8]ページ先頭

©2009-2025 Movatter.jp