Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2441135

Browse files
committed
Merge pull request #929 from efiring/colorbar_no_edgecolors
colorbar: update to work with #901 (41fcab5)
2 parents e0fbf5d + 56b6ba5 commit 2441135

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)