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

Skip to content

Commit 8c2679c

Browse files
committed
added annotated illustrations of the figure GUI to explain what the different buttons do
1 parent 5ce21e3 commit 8c2679c

File tree

11 files changed

+73
-0
lines changed

11 files changed

+73
-0
lines changed

doc/_static/ad_left_2d.gif

730 KB
Loading

doc/_static/ad_left_3d.gif

550 KB
Loading

doc/_static/ad_wspace_2d.gif

621 KB
Loading

doc/_static/ad_wspace_3d.gif

685 KB
Loading

doc/_static/back.gif

1.38 MB
Loading

doc/_static/forward.gif

1.79 MB
Loading

doc/_static/home.gif

1.48 MB
Loading

doc/_static/move.gif

2.95 MB
Loading

doc/_static/save.gif

519 KB
Loading

doc/_static/zoom.gif

935 KB
Loading

galleries/users_explain/figure/interactive.rst

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,79 @@ The windows created by :mod:`~.pyplot` have an interactive toolbar with navigati
204204
buttons and a readout of the data values the cursor is pointing at. A number of
205205
helpful keybindings are registered by default.
206206

207+
UI navigation buttons
208+
---------------------
209+
210+
The following table holds description of all GUI buttons.
211+
212+
+-------------------+----------------------------------------------------------+
213+
| Button | Description |
214+
+===================+==========================================================+
215+
| Home/Reset | Moves the plot to the start |
216+
| | position |
217+
| | |
218+
| | .. figure:: /_static/home.gif |
219+
+-------------------+----------------------------------------------------------+
220+
| Back | Moves the plot to the previous |
221+
| | position |
222+
| | |
223+
| | .. figure:: /_static/back.gif |
224+
+-------------------+----------------------------------------------------------+
225+
| Forward | Replays cancelled changes |
226+
| | |
227+
| | .. figure:: /_static/forward.gif |
228+
+-------------------+----------------------------------------------------------+
229+
| Move | Activates the mode of changing |
230+
| | position of the plot relative |
231+
| | to the current axes |
232+
| | |
233+
| | .. figure:: /_static/move.gif |
234+
+-------------------+----------------------------------------------------------+
235+
| Zoom to rectangle | Select area with left mouse button (for mouse users) |
236+
| | or one finger (for touchpad users) to zoom in the plot |
237+
| | |
238+
| | Select area with right mouse button (for mouse users) |
239+
| | or two fingers (for touchpad users) to zoom out the plot |
240+
| | |
241+
| | .. figure:: /_static/zoom.gif |
242+
+-------------------+----------------------------------------------------------+
243+
| Additional | `left/bottom/right/top sliders:` |
244+
| | 3D: Regulates left/bottom/right/top |
245+
| | margin of figure with |
246+
| | keeping proportions of the figure |
247+
| | |
248+
| | .. figure:: /_static/ad_left_3d.gif |
249+
| | |
250+
| | 2D: Regulates left/bottom/right/top |
251+
| | margin of figure without |
252+
| | keeping proportions of the figure |
253+
| | |
254+
| | .. figure:: /_static/ad_left_2d.gif |
255+
| | |
256+
| | `wspace/hspace sliders:` |
257+
| | 3D: Regulates horizontal/vertical |
258+
| | offset between different axes with |
259+
| | keeping proportions of the figure |
260+
| | |
261+
| | .. figure:: /_static/ad_wspace_3d.gif |
262+
| | |
263+
| | 2D: Regulates horizontal/vertical |
264+
| | offset between different axes |
265+
| | without keeping proportions of the |
266+
| | figure |
267+
| | |
268+
| | .. figure:: /_static/ad_wspace_2d.gif |
269+
| | |
270+
| | **This option makes sense if there |
271+
| | are two or more plots |
272+
| | with different axes** |
273+
+-------------------+----------------------------------------------------------+
274+
| Save | Saves .png image of the current |
275+
| | plot position |
276+
| | |
277+
| | .. figure:: /_static/save.gif |
278+
+-------------------+----------------------------------------------------------+
279+
207280

208281
.. _key-event-handling:
209282

0 commit comments

Comments
 (0)