8000 Merge pull request #10359 from dstansby/colorbar-doc · matplotlib/matplotlib@8536cc2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8536cc2

Browse files
authored
Merge pull request #10359 from dstansby/colorbar-doc
Add attributes section to ColorbarBase doc
2 parents 782f35d + 983a95a commit 8536cc2

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

lib/matplotlib/colorbar.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,19 @@ class ColorbarBase(cm.ScalarMappable):
237237
238238
norm=colors.NoNorm.
239239
240-
Useful attributes:
241-
242-
:attr:`ax`
243-
the Axes instance in which the colorbar is drawn
244-
245-
:attr:`lines`
246-
a list of LineCollection if lines were drawn, otherwise
247-
an empty list
240+
Useful public methods are :meth:`set_label` and :meth:`add_lines`.
248241
249-
:attr:`dividers`
250-
a LineCollection if *drawedges* is True, otherwise None
242+
Attributes
243+
----------
244+
ax : Axes
245+
The `Axes` instance in which the colorbar is drawn.
251246
252-
Useful public methods are :meth:`set_label` and :meth:`add_lines`.
247+
lines : list
248+
A list of `LineCollection` if lines were drawn, otherwise
249+
an empty list.
253250
251+
dividers : LineCollection
252+
A LineCollection if *drawedges* is ``True``, otherwise ``None``.
254253
'''
255254
_slice_dict = {'neither': slice(0, None),
256255
'both': slice(1, -1),

0 commit comments

Comments
 (0)
0