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 13ff1f7

Browse filesBrowse files
committed
Update check_buttons.py
1 parent ef29e67 commit 13ff1f7
Copy full SHA for 13ff1f7

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎examples/widgets/check_buttons.py

Copy file name to clipboardExpand all lines: examples/widgets/check_buttons.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
# Make checkbuttons with all plotted lines with correct visibility
1919
rax = plt.axes([0.05, 0.4, 0.1, 0.15])
20-
labels = [str(graph.get_label()) for graph in lines]
21-
visibility = [graph.get_visible() for graph in lines]
20+
labels = [str(line.get_label()) for line in lines]
21+
visibility = [line.get_visible() for line in lines]
2222
check = CheckButtons(rax, labels, visibility)
2323

2424
def func(label):

0 commit comments

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