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

Skip to content

Commit d4ac2fb

Browse files
committed
docstring helper add_tools methods
1 parent e4edd23 commit d4ac2fb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/backend_tools.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,9 @@ def add_tools_2_navigation(navigation, tools=default_tools):
956956
957957
Parameters
958958
----------
959-
tools : {str: class_like}
959+
navigation: Navigation
960+
`backend_bases.NavigationBase` object that will get the tools added
961+
tools : {str: class_like}, optional
960962
The tools to add in a {name: tool} dict, see `add_tool` for more
961963
info.
962964
"""
@@ -971,7 +973,9 @@ def add_tools_2_container(container, tools=default_toolbar_tools):
971973
972974
Parameters
973975
----------
974-
tools : list
976+
container: Container
977+
`backend_bases.ToolContainerBase` object that will get the tools added
978+
tools : list, optional
975979
List in the form
976980
[[group1, [tool1, tool2 ...]], [group2, [...]]]
977981
Where the tools given by tool1, and tool2 will display in group1.

0 commit comments

Comments
 (0)