10000 Enabling tool positions by OceanWolf · Pull Request #7 · fariza/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Enabling tool positions #7

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

Closed
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
Update on removal
  • Loading branch information
OceanWolf committed Feb 8, 2015
commit c9e55de4d3ca9d03a61024b9861c662f34c5a0e1
7 changes: 5 additions & 2 deletions lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -3625,6 +3625,9 @@ def _add_tool_cbk(self, event):
def _remove_tool_cbk(self, event):
"""Captures the 'tool_removed_event' signal and removes the tool"""
self.remove_toolitem(event.tool.name)
for group in self.groups:
if event.tool.name in self.groups[group]:
self.groups[group].remove(event.tool.name)

def _get_image_filename(self, image):
"""Find the image based on its name"""
Expand Down Expand Up @@ -3661,9 +3664,9 @@ def add_tool_to_group(self, name, group, position=-1):

Parameters
----------
name : String
name : string
The name of the tool.
group : String
group : string
The name of the group.
position : int
The position within the group, if -1, it goes at the end.
Expand Down
0