8000 Improved selection widget by blink1073 · Pull Request #3502 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Improved selection widget #3502

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 18 commits into from
Nov 13, 2014
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
Next Next commit
Style change and use self.blit instead of blit.
  • Loading branch information
blink1073 committed Nov 12, 2014
commit 51c70f080084bca7ca64bea1ce19c8b6305639c2
4 changes: 2 additions & 2 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ def __init__(self, ax, onselect, direction, minspan=None, useblit=False,
def new_axes(self, ax):
self.ax = ax
if self.canvas is not ax.figure.canvas:
if not self.canvas is None:
if self.canvas is not None:
self.disconnect_events()

self.canvas = ax.figure.canvas
Expand Down Expand Up @@ -1548,7 +1548,7 @@ def __init__(self, ax, onselect, drawtype='box',
lineprops = dict(color='black', linestyle='-',
linewidth=2, alpha=0.5)
self.lineprops = lineprops
if useblit:
if self.useblit:
self.lineprops['animated'] = True
self.to_draw = Line2D([0, 0], [0, 0], visible=False,
**self.lineprops)
Expand Down
0