Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13ff1f7

Browse files
committed
Update check_buttons.py
1 parent ef29e67 commit 13ff1f7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/widgets/check_buttons.py

Lines 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)