@@ -39,7 +39,7 @@ reconfiguration.
3939
4040This approach will make easier to create and share tools among
4141users. In the far future, we can even foresee a kind of Marketplace
42- for `Tools ` where the most popular can be added into the main
42+ for `` Tool `` \ s where the most popular can be added into the main
4343distribution.
4444
4545Detailed description
@@ -53,12 +53,12 @@ example see https://github.com/matplotlib/matplotlib/issues/2694 also
5353the shortcuts are hardcoded and again not easily modifiable
5454https://github.com/matplotlib/matplotlib/issues/2699
5555
56- The proposed solution is to take the actions out of the `Toolbar ` and
57- the shortcuts out of the `Canvas `. This actions and shortcuts will be
58- in the form of `Tools ` .
56+ The proposed solution is to take the actions out of the `` Toolbar `` and the
57+ shortcuts out of the `` Canvas ``. The actions and shortcuts will be in the form
58+ of `` Tool `` \ s .
5959
60- A new class `Navigation ` will be the bridge between the events from
61- the ` Canvas ` and `Toolbar ` and redirect them to the appropriate `Tool `.
60+ A new class `` Navigation `` will be the bridge between the events from the
61+ `` Canvas `` and `` Toolbar `` and redirect them to the appropriate `` Tool ` `.
6262
6363At the end the user interaction will be divided into three classes:
6464
@@ -75,7 +75,8 @@ Implementation
7575ToolBase(object)
7676----------------
7777
78- Tools can have a graphical representation as the `SubplotTool ` or not even be present in the Toolbar as `Quit `
78+ Tools can have a graphical representation as the ``SubplotTool `` or not even be
79+ present in the Toolbar as ``Quit ``.
7980
8081The `.ToolBase ` has the following class attributes for configuration at definition time
8182
@@ -93,7 +94,8 @@ The following instance attributes are set at instantiation:
9394 * keypress associated with the Tool Keymap
9495 * Call to navigation.trigger_tool(name)
9596 * set_figure(self, figure): Set the figure and navigation attributes
96- * ``destroy(self, *args) ``: Destroy the `Tool ` graphical interface (if exists)
97+ * ``destroy(self, *args) ``: Destroy the ``Tool `` graphical interface (if
98+ exists)
9799
98100**Available Tools **
99101 * ToolQuit
@@ -137,7 +139,7 @@ NavigationBase
137139
138140Defines the following attributes
139141 * canvas:
140- * keypresslock: Lock to know if the `canvas ` key_press_event` is
142+ * keypresslock: Lock to know if the `` canvas `` `` key_press_event ` ` is
141143 available and process it
142144 * messagelock: Lock to know if the message is available to write
143145
@@ -152,9 +154,9 @@ Public methods for **User use**:
152154 associated with the tool
153155 * set_tool_keymap(self, name, ``*keys ``): Set the keys for the given tool
154156 * remove_tool(self, name): Removes tool from the navigation control.
155- * add_tools(self, tools): Add multiple tools to `Navigation `
157+ * add_tools(self, tools): Add multiple tools to `` Navigation ` `
156158 * add_tool(self, name, tool, group=None, position=None): Add a tool
157- to the Navigation
159+ to the `` Navigation ``
158160 * tool_trigger_event(self, name, sender=None, canvasevent=None,
159161 data=None): Trigger a tool and fire the event
160162
@@ -168,20 +170,20 @@ ToolbarBase
168170-----------
169171
170172Methods for **Backend implementation **
171- * add_toolitem(self, name, group, position, image, description,
172- toggle): Add a toolitem to the toolbar. This method is a callback
173- from ` tool_added_event ` (emitted by navigation)
174- * set_message(self, s): Display a message on toolbar or in status bar
175- * toggle_toolitem (self, name): Toggle the toolitem without firing
176- event.
177- * remove_toolitem(self, name): Remove a toolitem from the `Toolbar `
173+
174+ * `` add_toolitem(self, name, group, position, image, description, toggle) ``:
175+ Add a toolitem to the toolbar. This method is a callback from
176+ `` tool_added_event `` (emitted by navigation)
177+ * `` set_message (self, s) ``: Display a message on toolbar or in status bar
178+ * `` toggle_toolitem(self, name) ``: Toggle the toolitem without firing event.
179+ * `` remove_toolitem(self, name) `` : Remove a toolitem from the `` Toolbar ` `
178180
179181
180182Backward compatibility
181183======================
182184
183185For backward compatibility added 'navigation' to the list of values
184- supported by :rc: `toolbar `, that is used for Navigation classes
186+ supported by :rc: `toolbar `, that is used for `` Navigation `` classes
185187instantiation instead of the NavigationToolbar classes
186188
187189With this parameter, it makes it transparent to anyone using the
0 commit comments