8000 Merge pull request #16048 from anntzer/colorbarlabeldoc · matplotlib/matplotlib@cc2677e · GitHub
[go: up one dir, main page]

Skip to content

Commit cc2677e

Browse files
authored
Merge pull request #16048 from anntzer/colorbarlabeldoc
Document that colorbar() takes a label kwarg.
2 parents d42b36d + ccbb825 commit cc2677e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/colorbar.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@
116116
An alternative `~.ticker.Formatter` may be given instead.
117117
*drawedges* bool
118 8F2E 118
Whether to draw lines at color boundaries.
119+
*label* str
120+
The label on the colorbar's long axis.
119121
============ ====================================================
120122
121123
The following will probably be useful only in the context of
@@ -177,8 +179,7 @@
177179
Returns
178180
-------
179181
colorbar : `~matplotlib.colorbar.Colorbar`
180-
See also its base class, `~matplotlib.colorbar.ColorbarBase`. Use
181-
`~.ColorbarBase.set_label` to label the colorbar.
182+
See also its base class, `~matplotlib.colorbar.ColorbarBase`.
182183
183184
Notes
184185
-----

0 commit comments

Comments
 (0)
0