-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
pcolormesh edgecolors does not work correctly #901
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
… to draw_quad_mesh.
The attached PR should allow for passing edgecolors to pcolormesh. You can even pass a list of colors if you like. |
pcolormesh edgecolors does not work correctly
edgecolors='None' now must be included explicitly. Even if this change in the default is reverted, it makes sense for colorbar to be explicit about it.
…b#929. The default behavior of pcolormesh should be to draw no edges if no `edgecolors` kwarg is provided.
Fix bug in pcolorfast introduced by #901
@@ -7224,13 +7219,8 @@ def pcolormesh(self, *args, **kwargs): | |||
coords[:, 0] = X | |||
coords[:, 1] = Y | |||
|
|||
if shading == 'faceted' or edgecolors != '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.
Direct "None"
comparison excludes the use of the lowercase "none"
equivalent. I will open a ticket for this.
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.
Note this is a line that was removed, not introduced by this PR.
…nged when matplotlib#901 and was merged, to allow different edgecolors, due to the way get_edgecolors behave. This restors the original behavior of colorbar in both mpl and the axisgrid1 toolkit by setting the edgecolor to 'face'
At the moment, the following code produces a mesh with black edges:
Looking at the matplotlib code, it looks like the
draw_quad_mesh
renderer method should really take an argument for edgecolors rather than just setting the edges to black by default.