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: re-organize devel/documenting_mpl.rst#9884

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
dstansby merged 1 commit intomatplotlib:masterfromjklymak:doc-update-doc2
Jan 19, 2018

Conversation

jklymak
Copy link
Member

@jklymakjklymak commentedNov 29, 2017
edited
Loading

PR Summary

Latest build:https://5339-1385122-gh.circle-artifacts.com/0/home/circleci/project/doc/build/html/devel/documenting_mpl.html

This re-organizesdoc/devel/documenting_mpl.rst. Some new content.

New suggested organization:

banners_and_alerts_and_writing_documentation_ _matplotlib_2_1_0_post923_dev0_g1df98ea82_documentation

@anntzer
Copy link
Contributor

why can't you build docs locally? may be worth figuring it out...

@jklymak
Copy link
MemberAuthor

AttributeError: 'BezierPath' object has no attribute '_draw_solid'generating gallery for gallery/axisartist... [ 50%] demo_curvelinear_grid2.pyException occurred:  File "/Users/jklymak/anaconda3/envs/matplotlibdev/lib/python3.6/site-packages/mpl_toolkits/axisartist/axis_artist.py", line 163, in draw    lineFunc = getattr(self, funcname)AttributeError: 'BezierPath' object has no attribute '_draw_solid'

@jklymak
Copy link
MemberAuthor

I thought maybe I had some cruft somewhere in my install, but a fresh git clone doesn't fix the issue.

@jklymak
Copy link
MemberAuthor

I do notice thatsomebody mucked around in that file in the last 11 months. But why its suddenly a problem for me, I'm not sure...#7771

@jklymak
Copy link
MemberAuthor

maybe I had too-old versions of the dependencies? Its still not building, but a fresh install of al the dependencies got me further...

@jklymakjklymak changed the titleWIP: Doc update doc2Doc re-organize devel/documenting_mpl.rstNov 30, 2017
@jklymakjklymak changed the titleDoc re-organize devel/documenting_mpl.rstDOC: re-organize devel/documenting_mpl.rstNov 30, 2017
file name (the .rst extension is not necessary) in the table of contents.
It is also possible to include other documents through the use of an include
statement, such as::
The documentation for Matplotlib is generated from reStructuredText (ReST_)
Copy link
Contributor

Choose a reason for hiding this comment

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

This part is also changed by#9513, which I'd prefer not to have to rebase again...

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Cool this can wait for#9513 to be put in. I’m happy to rebase.

@tacaswelltacaswell added this to thev2.2 milestoneDec 1, 2017
@tacaswell
Copy link
Member

git clean -xfd can solve many problems!

The docs build against theinstalled version of Matplotlib so there is a lot of space for getting things crossed.

Can you run the example otherwise from a shell?

@jklymak
Copy link
MemberAuthor

Oh, sorry, resolved my building issues on gitter. I needed to do aconda remove --force matplotlib to clean out the originalconda install matplotlib before doingpip installe -e .. I was getting oldmpl_toolkit code somehow, which I don't usually get in my day-to-day testing.

@jklymak
Copy link
MemberAuthor

Rebased after#9513 merged to master

@dstansby
Copy link
Member

Copy link
Member

@dstansbydstansby left a comment

Choose a reason for hiding this comment

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

Looks good on the whole, just some small changes.


Sphinx_ also creates ``.rst`` files that are staged in :file:`doc/api` from
the docstrings of the classes in the Matplotlib library. Except for
:file:`doc/api/api_changes/`, these ``.rst`` are created when the
Copy link
Member

Choose a reason for hiding this comment

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

these.rst are created --> these.rst files are created

jklymak reacted with thumbs up emoji
Similarly, the contents of :file:`docs/gallery` and :file:`docs/tutorials` are
generated by the `Sphinx Gallery`_ from the sources in :file:`examples` and
:file:`tutorials`. These sources consist of python scripts that have ReST_
documentation built into their comments. Again, don't directly edit the
Copy link
Member

Choose a reason for hiding this comment

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

This is the first time not editing.rst files is mentioned, maybe mention it earlier or get rid of "Again".

jklymak reacted with thumbs up emoji
Writing ReST pages
==================

As noted above, most documentation is either in the docstring of individual
Copy link
Member

Choose a reason for hiding this comment

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

Might be a personal style thing, but I'd get rid of "As noted above" since this page doesn't need to be read from start to end and people might just read bits and pieces.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Fair enough. Used to writing papers where half the reviewers will get mad at you if you repeat yourself, despite the fact people don't read papers very sequentially either ;-)

Formatting and style conventions
--------------------------------

Its useful to strive for consistency in the Matplotlib documentation. Here
Copy link
Member

Choose a reason for hiding this comment

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

Its --> It's

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

-> It is!

@jklymak
Copy link
MemberAuthor

Thanks a lot@dstansby I agree w/ all your changes.

I assume this is big enough that someone else should review, so I'll leave this alone until I get a second review.

@jklymak
Copy link
MemberAuthor

Changes made@dstansby

@dstansbydstansby self-assigned thisDec 12, 2017

`matplotlib.collections.LineCollection`

to get `matplotlib.collections.LineCollection`. Its often not
Copy link
Member

Choose a reason for hiding this comment

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

"Its" --> "It's"

jklymak reacted with thumbs up emoji
@jklymakjklymakforce-pushed thedoc-update-doc2 branch 2 times, most recently from1f9d7c2 tobfd225dCompareJanuary 13, 2018 16:09
@jklymak
Copy link
MemberAuthor

Given that folks are making a good number of changes to the docs, I think it'd be nice if this were merged or closed if the re-org is not to people's taste. Note that I'm more than happy to wordsmith after, but rebases are hard given how much things have moved around.

@jklymak
Copy link
MemberAuthor

@jklymakjklymak added the Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. labelJan 19, 2018
@jklymak
Copy link
MemberAuthor

Hi all, I'd like to see this in for 2.2, so have marked as such. Thanks!

@dstansby
Copy link
Member

Okay, since this is only a doc change, and it doesn't delete anything, and I think it improves things, I'm going to merge it. We can always release doc-only updates faster than regular releases anyway.

dopplershift reacted with thumbs up emoji

@dstansbydstansby merged commit1f7a70d intomatplotlib:masterJan 19, 2018
@QuLogicQuLogic modified the milestones:needs sorting,v2.2.0Feb 12, 2018
@jklymakjklymak deleted the doc-update-doc2 branchMarch 5, 2019 16:10
@jklymakjklymak mentioned this pull requestJan 24, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@anntzeranntzeranntzer left review comments

@dstansbydstansbydstansby approved these changes

Assignees

@dstansbydstansby

Labels
DocumentationRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Milestone
v2.2.0
Development

Successfully merging this pull request may close these issues.

5 participants
@jklymak@anntzer@tacaswell@dstansby@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp