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

Skip to content

Commit 328b169

Browse files
committed
missing object from class declaration
1 parent a0695d0 commit 328b169

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

examples/user_interfaces/toolmanager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
class ListTools(ToolBase):
20-
'''List all the tools controlled by `Navigation`'''
20+
'''List all the tools controlled by the `ToolManager`'''
2121
# keyboard shortcut
2222
default_keymap = 'm'
2323
description = 'List Tools'
@@ -72,7 +72,8 @@ def trigger(self, *args, **kwargs):
7272
# Remove the forward button
7373
fig.canvas.manager.toolmanager.remove_tool('forward')
7474

75-
# To add a custom tool to the toolbar at specific location
75+
# To add a custom tool to the toolbar at specific location inside
76+
# the navigation group
7677
fig.canvas.manager.toolbar.add_tool('List', 'navigation', 1)
7778

7879
plt.show()

lib/matplotlib/backend_managers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def func(event)
9999

100100
def toolmanager_disconnect(self, cid):
101101
"""
102-
Disconnect callback id cid
102+
Disconnect callback id *cid*
103103
104104
Example usage::
105105
@@ -196,9 +196,7 @@ def remove_tool(self, name):
196196

197197
def add_tool(self, name, tool, *args, **kwargs):
198198
"""
199-
Add tool to `ToolManager`
200-
201-
Add a tool to the tools controlled by ToolManager
199+
Add *tool* to `ToolManager`
202200
203201
If successful adds a new event `tool_trigger_name` where **name** is
204202
the **name** of the tool, this event is fired everytime

lib/matplotlib/backends/backend_gtk3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ def trigger(self, sender, event, data=None):
936936
self.window.present()
937937

938938

939-
class DialogLineprops:
939+
class DialogLineprops(object):
940940
"""
941941
A GUI dialog for controlling lineprops
942942
"""

0 commit comments

Comments
 (0)