-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
DOC Updated parameters to numpy format #7036
Conversation
Your commit is currently attributed to "djarecka". It is your choice whether to use a real name or not, of course, but I'm making a note of it just in case. |
Note for reviewers: this is still work in progress. |
lib/matplotlib/axes/_axes.py
Outdated
Y coordinates of the colored quadrilaterals. | ||
cmap : `~matplotlib.colors.Colormap`, optional, default: None | ||
If `None`, default to rc settings. | ||
norm :`matplotlib.colors.Normalize`, optional, default: None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is trailing whitespace at the end of this line. Can you please remove it?
Your last two commits do not have a name set and are currently attributed to "Your Name you@example.com", which is probably not what you want. |
910a18b
to
82a4ef1
Compare
Hi @djarecka |
Hi @NelleV |
Are you familiar with rebasing and willing to fix the name on the previous two commits? If not, just tick the checkbox on the right column for "Allow edits from maintainers" and we can do that for you. |
@QuLogic , never done rebasing, but let me read and try. However, I'll finish my changes in documentation first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for continuing this work!
Overall, it looks good. I've underline two small problems that prevents the documentation from building properly. I think it should work fine once you fix those (thought we will have to check).
lib/matplotlib/axes/_axes.py
Outdated
------- | ||
kwargs : `~matplotlib.collections.PolyCollection` properties: | ||
|
||
%(PolyCollection)s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove this line? We have decided to move away from docstring interpolation. It should also fix the build problem.
lib/matplotlib/axes/_axes.py
Outdated
|
||
%(PolyCollection)s | ||
|
||
The default `antialiaseds` is False if the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to have that part as a "numpydoc" argument style:
antialiaseds : bool, optional, default: False
blah blah blah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @NelleV , thanks for suggestions. I've been testing this doc a bit on a private branch, but had problems with understanding the problem. Did you mean removing the line 5259 with %(PolyCollection)s
. I did it, but didn't help and I saw it in other parts of the file. Will try to test it more during weekend, but if you have other suggestion, I'm happy to try.
9916765
to
3a016f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us know if you want to do the rebase yourself to correct the names.
@QuLogic I guess my bigger problem is that I'm still getting errors... I tested a few things today on a different branch, but didn't learn anything interesting. If you know what is wrong and how to fix it, that would be great. |
lib/matplotlib/axes/_axes.py
Outdated
details, see the :ref:`Grid Orientation | ||
<axes-pcolor-grid-orientation>` section below. | ||
pcolor can be very slow for large arrays; consider | ||
using the similar but much faster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is that this line is indented and it confuses sphinx; aligning it with the previous line should fix it.
lib/matplotlib/axes/_axes.py
Outdated
An array of color values. | ||
|
||
X, Y : array_like, optional | ||
If given, specify the (x, y) coordinates of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please stick to 4-space indent.
6d4f142
to
c2031fe
Compare
Hi @djarecka, I have fixed the last couple of things that should make the doc build work - it took me a while to fix everything, so I'm not surprised you had problems. Hopefully if the doc build passes a couple of us can review this and get it merged - thanks for the PR! |
@dstansby - thank you for fixing! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some rendering issues, noted below. If you rebase, please fix the name on the commit.
lib/matplotlib/axes/_axes.py
Outdated
An :class:`matplotlib.colors.Normalize` instance is used | ||
to scale luminance data to 0,1. If *None*, defaults to | ||
:func:`normalize`. | ||
norm :`matplotlib.colors.Normalize`, optional, default: None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space after colon.
lib/matplotlib/axes/_axes.py
Outdated
Other Parameters | ||
---------------- | ||
antialiaseds : bool, optional, default: False | ||
The default `antialiaseds` is False if the default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double-backticks (can't reference parameters)
lib/matplotlib/axes/_axes.py
Outdated
---------------- | ||
antialiaseds : bool, optional, default: False | ||
The default `antialiaseds` is False if the default | ||
`edgecolors`="none" is used. This eliminates artificial lines |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using a backtick in the middle of a word doesn't close the reference. In any case, should be double-backticks because you can't reference parameters.
lib/matplotlib/axes/_axes.py
Outdated
Stroking the edges may be preferred if `alpha` is 1, but | ||
will cause artifacts otherwise. | ||
|
||
kwargs : `~matplotlib.collections.PolyCollection` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not quite correct; any remaining **kwargs
are sent to PolyCollection
. kwargs
is not expected to be a PolyCollection
type object.
Fix whitespace Fix whitespace
References don't work to function parameters.
I fixed the formatting stuff and updated the commit author; this can probably be squash-merged. |
WIP: Updating documentation of the pcolor function in _axes.py.
Updates to Parameters
TODO: Returns, Examples, etc.
@NelleV