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 6e24047

Browse filesBrowse files
committed
made changes to widgets.CheckButtons.get_status() conform to pep8
1 parent 316fdbf commit 6e24047
Copy full SHA for 6e24047

File tree

Expand file treeCollapse file tree

2 files changed

+7
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-5
lines changed

‎lib/matplotlib/tests/test_widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_widgets.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,14 +258,16 @@ def test_lasso_selector():
258258
check_lasso_selector(useblit=False, lineprops=dict(color='red'))
259259
check_lasso_selector(useblit=True, button=1)
260260

261+
261262
@cleanup
262263
def test_CheckButtons():
263264
ax = get_ax()
264-
check = widgets.CheckButtons(ax,('a','b','c'),(True,False,True))
265-
assert check.get_status() == [True,False,True]
265+
check = widgets.CheckButtons(ax, ('a', 'b', 'c'), (True, False, True))
266+
assert check.get_status() == [True, False, True]
266267
check.set_active(0)
267-
assert check.get_status() == [False,False,True]
268+
assert check.get_status() == [False, False, True]
269+
268270
def clicked_function():
269271
pass
270272
cid = check.on_clicked(clicked_function)
271-
check.disconnect(cid)
273+
check.disconnect(cid)

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ def set_active(self, index):
602602
return
603603
for cid, func in six.iteritems(self.observers):
604604
func(self.labels[index].get_text())
605-
605+
606606
def get_status(self):
607607
"""
608608
returns a tuple of the status (True/False) of all of the check buttons

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.