8000 Set hexbin default linecolor to 'face' · matplotlib/matplotlib@17a3ead · GitHub
[go: up one dir, main page]

Skip to content

Commit 17a3ead

Browse files
committed
Set hexbin default linecolor to 'face'
1 parent d36e499 commit 17a3ead

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4069,7 +4069,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
40694069
def hexbin(self, x, y, C=None, gridsize=100, bins=None,
40704070
xscale='linear', yscale='linear', extent=None,
40714071
cmap=None, norm=None, vmin=None, vmax=None,
4072-
alpha=None, linewidths=None, edgecolors='none',
4072+
alpha=None, linewidths=None, edgecolors='face',
40734073
reduce_C_function=np.mean, mincnt=None, marginals=False,
40744074
**kwargs):
40754075
"""
@@ -4163,10 +4163,12 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
41634163
linewidths : scalar, optional, default is *None*
41644164
If *None*, defaults to 1.0.
41654165
4166-
edgecolors : {'none'} or mpl color, optional, default is 'none'
4167-
If 'none', draws the edges in the same color as the fill color.
4168-
This is the default, as it avoids unsightly unpainted pixels
4169-
between the hexagons.
4166+
edgecolors : {'face', 'none', *None*} or mpl color, optional, default is 'face'
4167+
4168+
If 'face', draws the edges in the same color as the fill color.
4169+
4170+
If 'none', no edge is drawn; this can sometimes lead to unsightly
4171+
unpainted pixels between the hexagons.
41704172
41714173
If *None*, draws outlines in the default color.
41724174
@@ -4353,8 +4355,6 @@ def hexbin(self, x, y, C=None, gridsize=100, bins=None,
43534355
polygon[:, 0] = sx * np.array([0.5, 0.5, 0.0, -0.5, -0.5, 0.0])
43544356
polygon[:, 1] = sy * np.array([-0.5, 0.5, 1.0, 0.5, -0.5, -1.0]) / 3.0
43554357

4356-
if edgecolors == 'none':
4357-
edgecolors = 'face'
43584358
if linewidths is None:
43594359
linewidths = [1.0]
43604360

0 commit comments

Comments
 (0)
0