8000 Add attributes section · matplotlib/matplotlib@5ad3566 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ad3566

Browse files
committed
Add attributes section
1 parent 31005ec commit 5ad3566

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

lib/matplotlib/widgets.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -141,22 +141,18 @@ class Button(AxesWidget):
141141
A GUI neutral button.
142142
143143
For the button to remain responsive you must keep a reference to it.
144+
Call :meth:`on_clicked` to connect to the button.
144145
145-
The following attributes are accessible
146-
147-
*ax*
146+
Attributes
147+
----------
148+
ax :
148149
The :class:`matplotlib.axes.Axes` the button renders into.
149-
150-
*label*
150+
label :
151151
A :class:`matplotlib.text.Text` instance.
152-
153-
*color*
152+
color :
154153
The color of the button when not hovering.
155-
156-
*hovercolor*
154+
hovercolor :
157155
The color of the button when hovering.
158-
159-
Call :meth:`on_clicked` to connect to the button
160156
"""
161157

162158
def __init__(self, ax, label, image=None,

0 commit comments

Comments
 (0)
0