Skip to content

Commit 56b6ba5

Browse files
committed
colorbar: update to work with matplotlib#901 (41fcab5)
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.
1 parent ea3c539 commit 56b6ba5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,10 @@ def _add_solids(self, X, Y, C):
423423
args = (X, Y, C)
424424
else:
425425
args = (np.transpose(Y), np.transpose(X), np.transpose(C))
426-
kw = {'cmap':self.cmap, 'norm':self.norm,
427-
'alpha':self.alpha,}
426+
kw = dict(cmap=self.cmap,
427+
norm=self.norm,
428+
alpha=self.alpha,
429+
edgecolors='None')
428430
# Save, set, and restore hold state to keep pcolor from
429431
# clearing the axes. Ordinarily this will not be needed,
430432
# since the axes object should already have hold set.

0 commit comments

Comments
 (0)