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

Skip to content

Commit 34e8a8f

Browse files
committed
Tweak solution for hiding colorbar_doc to sync with trunk.
svn path=/branches/v0_99_maint/; revision=7409
1 parent f9867b0 commit 34e8a8f

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

lib/matplotlib/pyplot.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,8 +1358,7 @@ def colormaps():
13581358

13591359
## Plotting part 1: manually generated functions and wrappers ##
13601360

1361-
1362-
from matplotlib.colorbar import colorbar_doc as _colorbar_doc
1361+
import matplotlib.colorbar
13631362
def colorbar(mappable=None, cax=None, ax=None, **kw):
13641363
if mappable is None:
13651364
mappable = gci()
@@ -1369,7 +1368,7 @@ def colorbar(mappable=None, cax=None, ax=None, **kw):
13691368
ret = gcf().colorbar(mappable, cax = cax, ax=ax, **kw)
13701369
draw_if_interactive()
13711370
return ret
1372-
colorbar.__doc__ = _colorbar_doc
1371+
colorbar.__doc__ = matplotlib.colorbar.colorbar_doc
13731372

13741373
def clim(vmin=None, vmax=None):
13751374
"""
@@ -2691,5 +2690,3 @@ def spectral():
26912690
if im is not None:
26922691
im.set_cmap(cm.spectral)
26932692
draw_if_interactive()
2694-
2695-

0 commit comments

Comments
 (0)