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

Make checkbuttons with all plotted lines with correct visibility automatically #6310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 26, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix PEP8 E302, E501 and W292
  • Loading branch information
BTWS2 committed Apr 17, 2016
commit 0ee87e686da4d165b7070b4463ca092c12ff9666
4 changes: 3 additions & 1 deletion 4 examples/widgets/check_buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
visibility = [line.get_visible() for line in lines]
check = CheckButtons(rax, labels, visibility)


def func(label):
lines[labels.index(label)].set_visible(not lines[labels.index(label)].get_visible())
index = labels.index(label)
lines[index].set_visible(not lines[index].get_visible())
plt.draw()

check.on_clicked(func)
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.