Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 983a95a

Browse filesBrowse files
committed
Add attributes section to ColorbarBase
1 parent 86083dd commit 983a95a
Copy full SHA for 983a95a

File tree

Expand file treeCollapse file tree

1 file changed

+10
-11
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-11
lines changed

‎lib/matplotlib/colorbar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colorbar.py
+10-11Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.