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

Skip to content

Commit 351eaa1

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #16048: Document that colorbar() takes a label kwarg.
1 parent d0f7c04 commit 351eaa1

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
@@ -106,6 +106,8 @@
106106
given instead.
107107
*drawedges* bool
108108
Whether to draw lines at color boundaries.
109+
*label* str
110+
The label on the colorbar's long axis.
109111
============ ====================================================
110112
111113
The following will probably be useful only in the context of
@@ -168,8 +170,7 @@
168170
Returns
169171
-------
170172
colorbar : `~matplotlib.colorbar.Colorbar`
171-
See also its base class, `~matplotlib.colorbar.ColorbarBase`. Use
172-
`~.ColorbarBase.set_label` to label the colorbar.
173+
See also its base class, `~matplotlib.colorbar.ColorbarBase`.
173174
174175
Notes
175176
-----

0 commit comments

Comments
 (0)