-
-
Notifications
You must be signed in to change notification settings - Fork 8k
numpydoc AxesImage #15523
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
numpydoc AxesImage #15523
Conversation
@@ -218,6 +218,19 @@ def _rgb_to_rgba(A): | |||
|
|||
|
|||
class _ImageBase(martist.Artist, cm.ScalarMappable): | |||
""" |
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.
I had to move this up to avoid it appearing under the AxesImage
main docstring (this doesn't affect the docs though since _ImageBase isn't in there).
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.
You could copy a lot of the parameter descriptions from imshow.
a7d134d
to
4d1e146
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.
Thanks @dstansby ! This looks good to me.
When True, use a full resampling method. When False, only resample when | ||
the output image is larger than the input image. | ||
**kwargs | ||
Additional kwargs are matplotlib.artist properties. |
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.
If you use backticks around matplotlib.artist, sphinx should do it's magic and automatically link to the reference page of the artist. It's pretty cool :)
…523-on-v3.2.x Backport PR #15523 on branch v3.2.x (numpydoc AxesImage)
I have taken a pretty awful docstring and made it slightly less awful by putting it in numpydoc format... not perfect but slightly better.