Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 19, 2018

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented Nov 29, 2017

PR Summary

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

This re-organizes doc/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

anntzer commented Nov 29, 2017

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

@jklymak
Copy link
Member Author

jklymak commented Nov 29, 2017

AttributeError: 'BezierPath' object has no attribute '_draw_solid'

generating gallery for gallery/axisartist... [ 50%] demo_curvelinear_grid2.py
Exception 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
Member Author

jklymak commented Nov 29, 2017

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

@jklymak
Copy link
Member Author

jklymak commented Nov 29, 2017

I do notice that somebody 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
Member Author

jklymak commented Nov 30, 2017

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

@jklymak jklymak changed the title WIP: Doc update doc2 Doc re-organize devel/documenting_mpl.rst Nov 30, 2017
@jklymak jklymak changed the title Doc re-organize devel/documenting_mpl.rst DOC: re-organize devel/documenting_mpl.rst Nov 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
Member Author

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.

@tacaswell tacaswell added this to the v2.2 milestone Dec 1, 2017
@tacaswell
Copy link
Member

git clean -xfd can solve many problems!

The docs build against the installed 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
Member Author

jklymak commented Dec 1, 2017

Oh, sorry, resolved my building issues on gitter. I needed to do a conda remove --force matplotlib to clean out the original conda install matplotlib before doing pip installe -e .. I was getting old mpl_toolkit code somehow, which I don't usually get in my day-to-day testing.

@jklymak
Copy link
Member Author

jklymak commented Dec 3, 2017

Rebased after #9513 merged to master

@dstansby
Copy link
Member

dstansby commented Dec 4, 2017

Copy link
Member

@dstansby dstansby 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

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".

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
Member Author

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
Member Author

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
Member Author

jklymak commented Dec 4, 2017

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
Member Author

jklymak commented Dec 12, 2017

Changes made @dstansby

@dstansby dstansby self-assigned this Dec 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 jklymak force-pushed the doc-update-doc2 branch 2 times, most recently from 1f9d7c2 to bfd225d Compare January 13, 2018 16:09
@jklymak
Copy link
Member Author

jklymak commented Jan 13, 2018

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
Member Author

jklymak commented Jan 13, 2018

@jklymak jklymak added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Jan 19, 2018
@jklymak
Copy link
Member Author

jklymak commented Jan 19, 2018

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.

@dstansby dstansby merged commit 1f7a70d into matplotlib:master Jan 19, 2018
@QuLogic QuLogic modified the milestones: needs sorting, v2.2.0 Feb 12, 2018
@jklymak jklymak deleted the doc-update-doc2 branch March 5, 2019 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants