-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Set hexbin default linecolor to 'face' #7500
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
Conversation
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 @dstansby
The patch looks good overall, but there are pep8 incompatible changes added. Also, can you document those changes in the default change section
(doc/users/dflt_style_changes.rst) and what's new section (doc/users/whats_new/README.rst).
Thanks
If 'none', draws the edges in the same color as the fill color. | ||
This is the default, as it avoids unsightly unpainted pixels | ||
between the hexagons. | ||
edgecolors : {'face', 'none', *None*} or mpl color, optional, default is 'face' |
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 line is too long for pep8. It should be 79 char or less.
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'm currently struggling to find a way to split it on to two lines without the 2nd line just becoming part of the paragraph underneath... Any ideas?
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 an acceptable place to use \
to break the doc line.
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.
something like
edgecolors : {"face", "none", None, color}, optional, default: "face" would also have been acceptable.
|
||
The default value of the ``linecolor`` kwarg for `~matplotlib.Axes.hexbin` has | ||
changed from ``'none'`` to ``'face'``. If 'none' is now supplied, no line edges | ||
are drawn around the hexagons. |
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 should note that the default behavior has not changed (just the meaning of 'none'
).
On 2016/11/23 10:34 AM, Thomas A Caswell wrote:
Or just leave out the "optional"? After all, specifying the default |
That's how Numpydoc already defines arguments that take a restricted set of inputs. |
Thanks for the patch @dstansby ! |
Fixes #7185