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

Skip to content

Commit e52a106

Browse files
committed
turn off the grid after creating colorbar axes
1 parent 806f00a commit e52a106

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,7 @@ def colorbar(
11431143
cax, kwargs = cbar.make_axes_gridspec(ax, **kwargs)
11441144
else:
11451145
cax, kwargs = cbar.make_axes(ax, **kwargs)
1146+
cax.grid(visible=False, which='both', axis='both')
11461147
else:
11471148
userax = True
11481149

0 commit comments

Comments
 (0)