@@ -112,54 +112,77 @@ Here is a typical call:
112112 file is typically written to the ``VERSPYP `` header keyword) or re-reduce
113113 the data with the new PypeIt version.
114114
115- Options
116- -------
117-
118- Here are the typical options you will use:
119-
120- --list
121- ++++++
122-
123- This prints a list to the screen of all the objects extracted. An example:
124-
125- .. code-block :: console
126-
127- EXT0000001 = SPAT0351-SLIT0000-DET01
128- EXT0000002 = SPAT0392-SLIT0001-DET01
129- EXT0000003 = SPAT0463-SLIT0003-DET01
130- EXT0000004 = SPAT0556-SLIT0004-DET01
131- EXT0000005 = SPAT0621-SLIT0005-DET01
132- EXT0000006 = SPAT0731-SLIT0006-DET01
133- EXT0000007 = SPAT0824-SLIT0007-DET01
134- EXT0000008 = SPAT0865-SLIT0007-DET01
135- EXT0000009 = SPAT0910-SLIT0008-DET01
136- EXT0000010 = SPAT0962-SLIT0009-DET01
137- EXT0000011 = SPAT0073-SLIT0000-DET02
138- EXT0000012 = SPAT0093-SLIT0000-DET02
139- EXT0000013 = SPAT0130-SLIT0001-DET02
140-
141- This indicates the extension of the object with this :ref: `spec1d-naming `.
142-
143- --exten
115+ .. _pypeit_show_1dspec_interact :
116+
117+ Interacting with the display
118+ ----------------------------
119+
120+ The spec1d mode is a mode enabled by ginga to interact with the spectrum plot.
121+ **To get a listing of the key-bindings in the ginga window, type 'h'. ** If that
122+ doesn't work, or if the key bindings themselves don't seem to work, you may have
123+ exited the mode. To restart the mode, hit the space-bar and then the 1 key. If
124+ you're still having trouble, please submit an issue via GitHub or post a
125+ question to the Users Slack.
126+
127+ The key-bindings below are copied from the relevant docstring; if anything is
128+ different from the dialog you get when pressing 'h' in ginga, you should defer
129+ to what is shown there. The key-bindigs are as follows:
130+
131+ Enter the mode
132+ ++++++++++++++
133+ * Space, then "1"
134+
135+ Exit the mode
136+ +++++++++++++
137+ * Esc
138+
139+ Mouse/trackpad bindings in mode
140+ +++++++++++++++++++++++++++++++
141+ * Shift + left click : set pan position
142+ * middle click : set pan position
143+ * scroll : zoom in/out
144+ * ctrl + scroll : zoom in/out X axis only
145+ * shift + scroll : zoom in/out Y axis only (On MacOS, trackpad only)
146+ * alt + scroll(mouse) : zoom in/out Y axis only (Option key on Macs)
147+ * alt + scroll : zoom in/out at cursor
148+
149+ Zooming
144150+++++++
151+ * equals : zoom in one zoom level
152+ * ctrl + equals : zoom in X axis one zoom level
153+ * plus (shift + equals) : zoom in Y axis one zoom level
154+ * minus : zoom out one zoom level
155+ * ctrl + minus : zoom out X axis one zoom level
156+ * underscore (shift + minus): zoom out Y axis one zoom level
157+ * 9 : zoom out maintaining cursor position
158+ * ctrl + 9 : zoom out X axis maintaining cursor position
159+ * left paren (shift + 9): zoom out Y axis maintaining cursor position
160+ * 0 : zoom in maintaining cursor position
161+ * ctrl + 0 : zoom in X axis maintaining cursor position
162+ * right paren (shift + 0): zoom in Y axis maintaining cursor position
163+ * backquote : zoom X and Y axes to fit window
164+ * 1 : zoom X axis only to fit window
165+ * 2 : zoom Y axis only to fit window
166+ * k : set lower X range to X value at cursor
167+ * l : set upper X range to X value at cursor
168+ * K : set lower Y range to Y value at cursor
169+ * L : set upper Y range to Y value at cursor
170+
171+ Panning
172+ +++++++
173+ * left arrow : pan left
174+ * right arrow : pan right
175+ * up arrow : pan up
176+ * down arrow : pan down
145177
146- This is a short-cut of sorts to pull the object you want without
147- typing in its name.
148-
149- --obj
150- +++++
151-
152- Plot this object.
153-
154- --extract
155- +++++++++
156-
157- Choice of :ref: `spec1d-extraction ` method.
158-
159- --flux
160- ++++++
161-
162- Show the fluxed spectrum (only if it has been fluxed!)
178+ Regions
179+ +++++++
180+ * [ : mark lower X boundary of region
181+ * ] : mark upper X boundary of region
182+ * backslash : clear region
183+ * singlequote : (zoom) set X range to region
184+ * f : fit a Gaussian to the region and show result
185+ * c : clear fit result
163186
164187----
165188
0 commit comments