1 | |
---|
2 | |
---|
3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
5 | |
---|
6 | |
---|
7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
8 | <head> |
---|
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
10 | |
---|
11 | <title>boxSlicer — guiframe 0.1.0 documentation</title> |
---|
12 | |
---|
13 | <link rel="stylesheet" href="../../../_static/default.css" type="text/css" /> |
---|
14 | <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> |
---|
15 | |
---|
16 | <script type="text/javascript"> |
---|
17 | var DOCUMENTATION_OPTIONS = { |
---|
18 | URL_ROOT: '../../../', |
---|
19 | VERSION: '0.1.0', |
---|
20 | COLLAPSE_INDEX: false, |
---|
21 | FILE_SUFFIX: '.html', |
---|
22 | HAS_SOURCE: true |
---|
23 | }; |
---|
24 | </script> |
---|
25 | <script type="text/javascript" src="../../../_static/jquery.js"></script> |
---|
26 | <script type="text/javascript" src="../../../_static/underscore.js"></script> |
---|
27 | <script type="text/javascript" src="../../../_static/doctools.js"></script> |
---|
28 | <link rel="top" title="guiframe 0.1.0 documentation" href="../../../index.html" /> |
---|
29 | <link rel="up" title="Local Perspective: plotting" href="index.html" /> |
---|
30 | <link rel="next" title="boxSum" href="boxSum.html" /> |
---|
31 | <link rel="prev" title="boxMask" href="boxMask.html" /> |
---|
32 | </head> |
---|
33 | <body> |
---|
34 | <div class="related"> |
---|
35 | <h3>Navigation</h3> |
---|
36 | <ul> |
---|
37 | <li class="right" style="margin-right: 10px"> |
---|
38 | <a href="../../../genindex.html" title="General Index" |
---|
39 | accesskey="I">index</a></li> |
---|
40 | <li class="right" > |
---|
41 | <a href="../../../py-modindex.html" title="Python Module Index" |
---|
42 | >modules</a> |</li> |
---|
43 | <li class="right" > |
---|
44 | <a href="boxSum.html" title="boxSum" |
---|
45 | accesskey="N">next</a> |</li> |
---|
46 | <li class="right" > |
---|
47 | <a href="boxMask.html" title="boxMask" |
---|
48 | accesskey="P">previous</a> |</li> |
---|
49 | <li><a href="../../../index.html">guiframe 0.1.0 documentation</a> »</li> |
---|
50 | <li><a href="index.html" accesskey="U">Local Perspective: plotting</a> »</li> |
---|
51 | </ul> |
---|
52 | </div> |
---|
53 | |
---|
54 | <div class="document"> |
---|
55 | <div class="documentwrapper"> |
---|
56 | <div class="bodywrapper"> |
---|
57 | <div class="body"> |
---|
58 | |
---|
59 | <div class="section" id="boxslicer"> |
---|
60 | <h1>boxSlicer<a class="headerlink" href="#boxslicer" title="Permalink to this headline">¶</a></h1> |
---|
61 | <div class="section" id="sans-guiframe-local-perspectives-plotting-boxslicer"> |
---|
62 | <h2><a class="reference internal" href="#module-sans.guiframe.local_perspectives.plotting.boxSlicer" title="sans.guiframe.local_perspectives.plotting.boxSlicer"><tt class="xref py py-mod docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.boxSlicer</span></tt></a><a class="headerlink" href="#sans-guiframe-local-perspectives-plotting-boxslicer" title="Permalink to this headline">¶</a></h2> |
---|
63 | <span class="target" id="module-sans.guiframe.local_perspectives.plotting.boxSlicer"></span><dl class="class"> |
---|
64 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor"> |
---|
65 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSlicer.</tt><tt class="descname">BoxInteractor</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor" title="Permalink to this definition">¶</a></dt> |
---|
66 | <dd><p>Bases: <a class="reference internal" href="BaseInteractor.html#sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor" title="sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></a></p> |
---|
67 | <p>BoxInteractor define a rectangle that return data1D average of Data2D |
---|
68 | in a rectangle area defined by -x, x ,y, -y</p> |
---|
69 | <dl class="method"> |
---|
70 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.__init__"> |
---|
71 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.__init__" title="Permalink to this definition">¶</a></dt> |
---|
72 | <dd></dd></dl> |
---|
73 | |
---|
74 | <dl class="attribute"> |
---|
75 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.__module__"> |
---|
76 | <tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.boxSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.__module__" title="Permalink to this definition">¶</a></dt> |
---|
77 | <dd></dd></dl> |
---|
78 | |
---|
79 | <dl class="method"> |
---|
80 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor._onEVT_SLICER_PARS"> |
---|
81 | <tt class="descname">_onEVT_SLICER_PARS</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor._onEVT_SLICER_PARS" title="Permalink to this definition">¶</a></dt> |
---|
82 | <dd><p>receive an event containing parameters values to reset the slicer</p> |
---|
83 | <table class="docutils field-list" frame="void" rules="none"> |
---|
84 | <col class="field-name" /> |
---|
85 | <col class="field-body" /> |
---|
86 | <tbody valign="top"> |
---|
87 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> – event of type SlicerParameterEvent with params as |
---|
88 | attribute</td> |
---|
89 | </tr> |
---|
90 | </tbody> |
---|
91 | </table> |
---|
92 | </dd></dl> |
---|
93 | |
---|
94 | <dl class="method"> |
---|
95 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor._post_data"> |
---|
96 | <tt class="descname">_post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor._post_data" title="Permalink to this definition">¶</a></dt> |
---|
97 | <dd></dd></dl> |
---|
98 | |
---|
99 | <dl class="method"> |
---|
100 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.clear"> |
---|
101 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.clear" title="Permalink to this definition">¶</a></dt> |
---|
102 | <dd><p>Clear the slicer and all connected events related to this slicer</p> |
---|
103 | </dd></dl> |
---|
104 | |
---|
105 | <dl class="method"> |
---|
106 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.clear_markers"> |
---|
107 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
108 | <dd><p>Clear old markers and interfaces.</p> |
---|
109 | </dd></dl> |
---|
110 | |
---|
111 | <dl class="method"> |
---|
112 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.connect_markers"> |
---|
113 | <tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
114 | <dd><p>Connect markers to callbacks</p> |
---|
115 | </dd></dl> |
---|
116 | |
---|
117 | <dl class="method"> |
---|
118 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.dpixel"> |
---|
119 | <tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
120 | <dd><p>Return the step size in data coordinates for a small |
---|
121 | step in screen coordinates. If nudge is False (default) |
---|
122 | the step size is one pixel. If nudge is True, the step |
---|
123 | size is 0.2 pixels.</p> |
---|
124 | </dd></dl> |
---|
125 | |
---|
126 | <dl class="method"> |
---|
127 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.draw"> |
---|
128 | <tt class="descname">draw</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.draw" title="Permalink to this definition">¶</a></dt> |
---|
129 | <dd></dd></dl> |
---|
130 | |
---|
131 | <dl class="method"> |
---|
132 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.freeze_axes"> |
---|
133 | <tt class="descname">freeze_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.freeze_axes" title="Permalink to this definition">¶</a></dt> |
---|
134 | <dd></dd></dl> |
---|
135 | |
---|
136 | <dl class="method"> |
---|
137 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.get_params"> |
---|
138 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.get_params" title="Permalink to this definition">¶</a></dt> |
---|
139 | <dd><p>Store a copy of values of parameters of the slicer into a dictionary.</p> |
---|
140 | <table class="docutils field-list" frame="void" rules="none"> |
---|
141 | <col class="field-name" /> |
---|
142 | <col class="field-body" /> |
---|
143 | <tbody valign="top"> |
---|
144 | <tr class="field-odd field"><th class="field-name">Return params:</th><td class="field-body">the dictionary created</td> |
---|
145 | </tr> |
---|
146 | </tbody> |
---|
147 | </table> |
---|
148 | </dd></dl> |
---|
149 | |
---|
150 | <dl class="method"> |
---|
151 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.move"> |
---|
152 | <tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.move" title="Permalink to this definition">¶</a></dt> |
---|
153 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
154 | </dd></dl> |
---|
155 | |
---|
156 | <dl class="method"> |
---|
157 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.moveend"> |
---|
158 | <tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.moveend" title="Permalink to this definition">¶</a></dt> |
---|
159 | <dd><p>Called after a dragging event. |
---|
160 | Post the slicer new parameters and creates a new Data1D |
---|
161 | corresponding to the new average</p> |
---|
162 | </dd></dl> |
---|
163 | |
---|
164 | <dl class="method"> |
---|
165 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onClick"> |
---|
166 | <tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onClick" title="Permalink to this definition">¶</a></dt> |
---|
167 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
168 | later restore().</p> |
---|
169 | </dd></dl> |
---|
170 | |
---|
171 | <dl class="method"> |
---|
172 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onDrag"> |
---|
173 | <tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
174 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
175 | the mouse leaves the window.</p> |
---|
176 | </dd></dl> |
---|
177 | |
---|
178 | <dl class="method"> |
---|
179 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onHilite"> |
---|
180 | <tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
181 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
182 | ready to receive a click.</p> |
---|
183 | </dd></dl> |
---|
184 | |
---|
185 | <dl class="method"> |
---|
186 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onKey"> |
---|
187 | <tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onKey" title="Permalink to this definition">¶</a></dt> |
---|
188 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
189 | restores it to the position before the last click.</p> |
---|
190 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
191 | </dd></dl> |
---|
192 | |
---|
193 | <dl class="method"> |
---|
194 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onLeave"> |
---|
195 | <tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
196 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
197 | </dd></dl> |
---|
198 | |
---|
199 | <dl class="method"> |
---|
200 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onRelease"> |
---|
201 | <tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
202 | <dd></dd></dl> |
---|
203 | |
---|
204 | <dl class="method"> |
---|
205 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.post_data"> |
---|
206 | <tt class="descname">post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.post_data" title="Permalink to this definition">¶</a></dt> |
---|
207 | <dd><p>post data averaging in Qx or Qy given new_slab type</p> |
---|
208 | <table class="docutils field-list" frame="void" rules="none"> |
---|
209 | <col class="field-name" /> |
---|
210 | <col class="field-body" /> |
---|
211 | <tbody valign="top"> |
---|
212 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
213 | <li><strong>new_slab</strong> – slicer that determine with direction to average</li> |
---|
214 | <li><strong>nbins</strong> – the number of points plotted when averaging</li> |
---|
215 | <li><strong>direction</strong> – the direction of averaging</li> |
---|
216 | </ul> |
---|
217 | </td> |
---|
218 | </tr> |
---|
219 | </tbody> |
---|
220 | </table> |
---|
221 | </dd></dl> |
---|
222 | |
---|
223 | <dl class="method"> |
---|
224 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.restore"> |
---|
225 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.restore" title="Permalink to this definition">¶</a></dt> |
---|
226 | <dd><p>Restore the roughness for this layer.</p> |
---|
227 | </dd></dl> |
---|
228 | |
---|
229 | <dl class="method"> |
---|
230 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.save"> |
---|
231 | <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.save" title="Permalink to this definition">¶</a></dt> |
---|
232 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
233 | can restore on Esc.</p> |
---|
234 | </dd></dl> |
---|
235 | |
---|
236 | <dl class="method"> |
---|
237 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.set_cursor"> |
---|
238 | <tt class="descname">set_cursor</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
239 | <dd></dd></dl> |
---|
240 | |
---|
241 | <dl class="method"> |
---|
242 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.set_layer"> |
---|
243 | <tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
244 | <dd><p>Allow adding plot to the same panel</p> |
---|
245 | <table class="docutils field-list" frame="void" rules="none"> |
---|
246 | <col class="field-name" /> |
---|
247 | <col class="field-body" /> |
---|
248 | <tbody valign="top"> |
---|
249 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> – the number of layer</td> |
---|
250 | </tr> |
---|
251 | </tbody> |
---|
252 | </table> |
---|
253 | </dd></dl> |
---|
254 | |
---|
255 | <dl class="method"> |
---|
256 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.set_params"> |
---|
257 | <tt class="descname">set_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.set_params" title="Permalink to this definition">¶</a></dt> |
---|
258 | <dd><p>Receive a dictionary and reset the slicer with values contained |
---|
259 | in the values of the dictionary.</p> |
---|
260 | <table class="docutils field-list" frame="void" rules="none"> |
---|
261 | <col class="field-name" /> |
---|
262 | <col class="field-body" /> |
---|
263 | <tbody valign="top"> |
---|
264 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>params</strong> – a dictionary containing name of slicer parameters and |
---|
265 | values the user assigned to the slicer.</td> |
---|
266 | </tr> |
---|
267 | </tbody> |
---|
268 | </table> |
---|
269 | </dd></dl> |
---|
270 | |
---|
271 | <dl class="method"> |
---|
272 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.thaw_axes"> |
---|
273 | <tt class="descname">thaw_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.thaw_axes" title="Permalink to this definition">¶</a></dt> |
---|
274 | <dd></dd></dl> |
---|
275 | |
---|
276 | <dl class="method"> |
---|
277 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.update"> |
---|
278 | <tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.update" title="Permalink to this definition">¶</a></dt> |
---|
279 | <dd><p>Respond to changes in the model by recalculating the profiles and |
---|
280 | resetting the widgets.</p> |
---|
281 | </dd></dl> |
---|
282 | |
---|
283 | <dl class="method"> |
---|
284 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.update_and_post"> |
---|
285 | <tt class="descname">update_and_post</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor.update_and_post" title="Permalink to this definition">¶</a></dt> |
---|
286 | <dd><p>Update the slicer and plot the resulting data</p> |
---|
287 | </dd></dl> |
---|
288 | |
---|
289 | </dd></dl> |
---|
290 | |
---|
291 | <dl class="class"> |
---|
292 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX"> |
---|
293 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSlicer.</tt><tt class="descname">BoxInteractorX</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX" title="Permalink to this definition">¶</a></dt> |
---|
294 | <dd><p>Bases: <a class="reference internal" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor" title="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor</span></tt></a></p> |
---|
295 | <p>Average in Qx direction</p> |
---|
296 | <dl class="method"> |
---|
297 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.__init__"> |
---|
298 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.__init__" title="Permalink to this definition">¶</a></dt> |
---|
299 | <dd></dd></dl> |
---|
300 | |
---|
301 | <dl class="attribute"> |
---|
302 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.__module__"> |
---|
303 | <tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.boxSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.__module__" title="Permalink to this definition">¶</a></dt> |
---|
304 | <dd></dd></dl> |
---|
305 | |
---|
306 | <dl class="method"> |
---|
307 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX._onEVT_SLICER_PARS"> |
---|
308 | <tt class="descname">_onEVT_SLICER_PARS</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX._onEVT_SLICER_PARS" title="Permalink to this definition">¶</a></dt> |
---|
309 | <dd><p>receive an event containing parameters values to reset the slicer</p> |
---|
310 | <table class="docutils field-list" frame="void" rules="none"> |
---|
311 | <col class="field-name" /> |
---|
312 | <col class="field-body" /> |
---|
313 | <tbody valign="top"> |
---|
314 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> – event of type SlicerParameterEvent with params as |
---|
315 | attribute</td> |
---|
316 | </tr> |
---|
317 | </tbody> |
---|
318 | </table> |
---|
319 | </dd></dl> |
---|
320 | |
---|
321 | <dl class="method"> |
---|
322 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX._post_data"> |
---|
323 | <tt class="descname">_post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX._post_data" title="Permalink to this definition">¶</a></dt> |
---|
324 | <dd><p>Post data creating by averaging in Qx direction</p> |
---|
325 | </dd></dl> |
---|
326 | |
---|
327 | <dl class="method"> |
---|
328 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.clear"> |
---|
329 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.clear" title="Permalink to this definition">¶</a></dt> |
---|
330 | <dd><p>Clear the slicer and all connected events related to this slicer</p> |
---|
331 | </dd></dl> |
---|
332 | |
---|
333 | <dl class="method"> |
---|
334 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.clear_markers"> |
---|
335 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
336 | <dd><p>Clear old markers and interfaces.</p> |
---|
337 | </dd></dl> |
---|
338 | |
---|
339 | <dl class="method"> |
---|
340 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.connect_markers"> |
---|
341 | <tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
342 | <dd><p>Connect markers to callbacks</p> |
---|
343 | </dd></dl> |
---|
344 | |
---|
345 | <dl class="method"> |
---|
346 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.dpixel"> |
---|
347 | <tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
348 | <dd><p>Return the step size in data coordinates for a small |
---|
349 | step in screen coordinates. If nudge is False (default) |
---|
350 | the step size is one pixel. If nudge is True, the step |
---|
351 | size is 0.2 pixels.</p> |
---|
352 | </dd></dl> |
---|
353 | |
---|
354 | <dl class="method"> |
---|
355 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.draw"> |
---|
356 | <tt class="descname">draw</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.draw" title="Permalink to this definition">¶</a></dt> |
---|
357 | <dd></dd></dl> |
---|
358 | |
---|
359 | <dl class="method"> |
---|
360 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.freeze_axes"> |
---|
361 | <tt class="descname">freeze_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.freeze_axes" title="Permalink to this definition">¶</a></dt> |
---|
362 | <dd></dd></dl> |
---|
363 | |
---|
364 | <dl class="method"> |
---|
365 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.get_params"> |
---|
366 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.get_params" title="Permalink to this definition">¶</a></dt> |
---|
367 | <dd><p>Store a copy of values of parameters of the slicer into a dictionary.</p> |
---|
368 | <table class="docutils field-list" frame="void" rules="none"> |
---|
369 | <col class="field-name" /> |
---|
370 | <col class="field-body" /> |
---|
371 | <tbody valign="top"> |
---|
372 | <tr class="field-odd field"><th class="field-name">Return params:</th><td class="field-body">the dictionary created</td> |
---|
373 | </tr> |
---|
374 | </tbody> |
---|
375 | </table> |
---|
376 | </dd></dl> |
---|
377 | |
---|
378 | <dl class="method"> |
---|
379 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.move"> |
---|
380 | <tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.move" title="Permalink to this definition">¶</a></dt> |
---|
381 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
382 | </dd></dl> |
---|
383 | |
---|
384 | <dl class="method"> |
---|
385 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.moveend"> |
---|
386 | <tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.moveend" title="Permalink to this definition">¶</a></dt> |
---|
387 | <dd><p>Called after a dragging event. |
---|
388 | Post the slicer new parameters and creates a new Data1D |
---|
389 | corresponding to the new average</p> |
---|
390 | </dd></dl> |
---|
391 | |
---|
392 | <dl class="method"> |
---|
393 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onClick"> |
---|
394 | <tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onClick" title="Permalink to this definition">¶</a></dt> |
---|
395 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
396 | later restore().</p> |
---|
397 | </dd></dl> |
---|
398 | |
---|
399 | <dl class="method"> |
---|
400 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onDrag"> |
---|
401 | <tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
402 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
403 | the mouse leaves the window.</p> |
---|
404 | </dd></dl> |
---|
405 | |
---|
406 | <dl class="method"> |
---|
407 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onHilite"> |
---|
408 | <tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
409 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
410 | ready to receive a click.</p> |
---|
411 | </dd></dl> |
---|
412 | |
---|
413 | <dl class="method"> |
---|
414 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onKey"> |
---|
415 | <tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onKey" title="Permalink to this definition">¶</a></dt> |
---|
416 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
417 | restores it to the position before the last click.</p> |
---|
418 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
419 | </dd></dl> |
---|
420 | |
---|
421 | <dl class="method"> |
---|
422 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onLeave"> |
---|
423 | <tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
424 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
425 | </dd></dl> |
---|
426 | |
---|
427 | <dl class="method"> |
---|
428 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onRelease"> |
---|
429 | <tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
430 | <dd></dd></dl> |
---|
431 | |
---|
432 | <dl class="method"> |
---|
433 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.post_data"> |
---|
434 | <tt class="descname">post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.post_data" title="Permalink to this definition">¶</a></dt> |
---|
435 | <dd><p>post data averaging in Qx or Qy given new_slab type</p> |
---|
436 | <table class="docutils field-list" frame="void" rules="none"> |
---|
437 | <col class="field-name" /> |
---|
438 | <col class="field-body" /> |
---|
439 | <tbody valign="top"> |
---|
440 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
441 | <li><strong>new_slab</strong> – slicer that determine with direction to average</li> |
---|
442 | <li><strong>nbins</strong> – the number of points plotted when averaging</li> |
---|
443 | <li><strong>direction</strong> – the direction of averaging</li> |
---|
444 | </ul> |
---|
445 | </td> |
---|
446 | </tr> |
---|
447 | </tbody> |
---|
448 | </table> |
---|
449 | </dd></dl> |
---|
450 | |
---|
451 | <dl class="method"> |
---|
452 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.restore"> |
---|
453 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.restore" title="Permalink to this definition">¶</a></dt> |
---|
454 | <dd><p>Restore the roughness for this layer.</p> |
---|
455 | </dd></dl> |
---|
456 | |
---|
457 | <dl class="method"> |
---|
458 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.save"> |
---|
459 | <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.save" title="Permalink to this definition">¶</a></dt> |
---|
460 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
461 | can restore on Esc.</p> |
---|
462 | </dd></dl> |
---|
463 | |
---|
464 | <dl class="method"> |
---|
465 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.set_cursor"> |
---|
466 | <tt class="descname">set_cursor</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
467 | <dd></dd></dl> |
---|
468 | |
---|
469 | <dl class="method"> |
---|
470 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.set_layer"> |
---|
471 | <tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
472 | <dd><p>Allow adding plot to the same panel</p> |
---|
473 | <table class="docutils field-list" frame="void" rules="none"> |
---|
474 | <col class="field-name" /> |
---|
475 | <col class="field-body" /> |
---|
476 | <tbody valign="top"> |
---|
477 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> – the number of layer</td> |
---|
478 | </tr> |
---|
479 | </tbody> |
---|
480 | </table> |
---|
481 | </dd></dl> |
---|
482 | |
---|
483 | <dl class="method"> |
---|
484 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.set_params"> |
---|
485 | <tt class="descname">set_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.set_params" title="Permalink to this definition">¶</a></dt> |
---|
486 | <dd><p>Receive a dictionary and reset the slicer with values contained |
---|
487 | in the values of the dictionary.</p> |
---|
488 | <table class="docutils field-list" frame="void" rules="none"> |
---|
489 | <col class="field-name" /> |
---|
490 | <col class="field-body" /> |
---|
491 | <tbody valign="top"> |
---|
492 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>params</strong> – a dictionary containing name of slicer parameters and |
---|
493 | values the user assigned to the slicer.</td> |
---|
494 | </tr> |
---|
495 | </tbody> |
---|
496 | </table> |
---|
497 | </dd></dl> |
---|
498 | |
---|
499 | <dl class="method"> |
---|
500 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.thaw_axes"> |
---|
501 | <tt class="descname">thaw_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.thaw_axes" title="Permalink to this definition">¶</a></dt> |
---|
502 | <dd></dd></dl> |
---|
503 | |
---|
504 | <dl class="method"> |
---|
505 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.update"> |
---|
506 | <tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.update" title="Permalink to this definition">¶</a></dt> |
---|
507 | <dd><p>Respond to changes in the model by recalculating the profiles and |
---|
508 | resetting the widgets.</p> |
---|
509 | </dd></dl> |
---|
510 | |
---|
511 | <dl class="method"> |
---|
512 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.update_and_post"> |
---|
513 | <tt class="descname">update_and_post</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorX.update_and_post" title="Permalink to this definition">¶</a></dt> |
---|
514 | <dd><p>Update the slicer and plot the resulting data</p> |
---|
515 | </dd></dl> |
---|
516 | |
---|
517 | </dd></dl> |
---|
518 | |
---|
519 | <dl class="class"> |
---|
520 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY"> |
---|
521 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSlicer.</tt><tt class="descname">BoxInteractorY</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY" title="Permalink to this definition">¶</a></dt> |
---|
522 | <dd><p>Bases: <a class="reference internal" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor" title="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractor</span></tt></a></p> |
---|
523 | <p>Average in Qy direction</p> |
---|
524 | <dl class="method"> |
---|
525 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.__init__"> |
---|
526 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.__init__" title="Permalink to this definition">¶</a></dt> |
---|
527 | <dd></dd></dl> |
---|
528 | |
---|
529 | <dl class="attribute"> |
---|
530 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.__module__"> |
---|
531 | <tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.boxSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.__module__" title="Permalink to this definition">¶</a></dt> |
---|
532 | <dd></dd></dl> |
---|
533 | |
---|
534 | <dl class="method"> |
---|
535 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY._onEVT_SLICER_PARS"> |
---|
536 | <tt class="descname">_onEVT_SLICER_PARS</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY._onEVT_SLICER_PARS" title="Permalink to this definition">¶</a></dt> |
---|
537 | <dd><p>receive an event containing parameters values to reset the slicer</p> |
---|
538 | <table class="docutils field-list" frame="void" rules="none"> |
---|
539 | <col class="field-name" /> |
---|
540 | <col class="field-body" /> |
---|
541 | <tbody valign="top"> |
---|
542 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>event</strong> – event of type SlicerParameterEvent with params as |
---|
543 | attribute</td> |
---|
544 | </tr> |
---|
545 | </tbody> |
---|
546 | </table> |
---|
547 | </dd></dl> |
---|
548 | |
---|
549 | <dl class="method"> |
---|
550 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY._post_data"> |
---|
551 | <tt class="descname">_post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY._post_data" title="Permalink to this definition">¶</a></dt> |
---|
552 | <dd><p>Post data creating by averaging in Qy direction</p> |
---|
553 | </dd></dl> |
---|
554 | |
---|
555 | <dl class="method"> |
---|
556 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.clear"> |
---|
557 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.clear" title="Permalink to this definition">¶</a></dt> |
---|
558 | <dd><p>Clear the slicer and all connected events related to this slicer</p> |
---|
559 | </dd></dl> |
---|
560 | |
---|
561 | <dl class="method"> |
---|
562 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.clear_markers"> |
---|
563 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
564 | <dd><p>Clear old markers and interfaces.</p> |
---|
565 | </dd></dl> |
---|
566 | |
---|
567 | <dl class="method"> |
---|
568 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.connect_markers"> |
---|
569 | <tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
570 | <dd><p>Connect markers to callbacks</p> |
---|
571 | </dd></dl> |
---|
572 | |
---|
573 | <dl class="method"> |
---|
574 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.dpixel"> |
---|
575 | <tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
576 | <dd><p>Return the step size in data coordinates for a small |
---|
577 | step in screen coordinates. If nudge is False (default) |
---|
578 | the step size is one pixel. If nudge is True, the step |
---|
579 | size is 0.2 pixels.</p> |
---|
580 | </dd></dl> |
---|
581 | |
---|
582 | <dl class="method"> |
---|
583 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.draw"> |
---|
584 | <tt class="descname">draw</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.draw" title="Permalink to this definition">¶</a></dt> |
---|
585 | <dd></dd></dl> |
---|
586 | |
---|
587 | <dl class="method"> |
---|
588 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.freeze_axes"> |
---|
589 | <tt class="descname">freeze_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.freeze_axes" title="Permalink to this definition">¶</a></dt> |
---|
590 | <dd></dd></dl> |
---|
591 | |
---|
592 | <dl class="method"> |
---|
593 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.get_params"> |
---|
594 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.get_params" title="Permalink to this definition">¶</a></dt> |
---|
595 | <dd><p>Store a copy of values of parameters of the slicer into a dictionary.</p> |
---|
596 | <table class="docutils field-list" frame="void" rules="none"> |
---|
597 | <col class="field-name" /> |
---|
598 | <col class="field-body" /> |
---|
599 | <tbody valign="top"> |
---|
600 | <tr class="field-odd field"><th class="field-name">Return params:</th><td class="field-body">the dictionary created</td> |
---|
601 | </tr> |
---|
602 | </tbody> |
---|
603 | </table> |
---|
604 | </dd></dl> |
---|
605 | |
---|
606 | <dl class="method"> |
---|
607 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.move"> |
---|
608 | <tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.move" title="Permalink to this definition">¶</a></dt> |
---|
609 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
610 | </dd></dl> |
---|
611 | |
---|
612 | <dl class="method"> |
---|
613 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.moveend"> |
---|
614 | <tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.moveend" title="Permalink to this definition">¶</a></dt> |
---|
615 | <dd><p>Called after a dragging event. |
---|
616 | Post the slicer new parameters and creates a new Data1D |
---|
617 | corresponding to the new average</p> |
---|
618 | </dd></dl> |
---|
619 | |
---|
620 | <dl class="method"> |
---|
621 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onClick"> |
---|
622 | <tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onClick" title="Permalink to this definition">¶</a></dt> |
---|
623 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
624 | later restore().</p> |
---|
625 | </dd></dl> |
---|
626 | |
---|
627 | <dl class="method"> |
---|
628 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onDrag"> |
---|
629 | <tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
630 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
631 | the mouse leaves the window.</p> |
---|
632 | </dd></dl> |
---|
633 | |
---|
634 | <dl class="method"> |
---|
635 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onHilite"> |
---|
636 | <tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
637 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
638 | ready to receive a click.</p> |
---|
639 | </dd></dl> |
---|
640 | |
---|
641 | <dl class="method"> |
---|
642 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onKey"> |
---|
643 | <tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onKey" title="Permalink to this definition">¶</a></dt> |
---|
644 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
645 | restores it to the position before the last click.</p> |
---|
646 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
647 | </dd></dl> |
---|
648 | |
---|
649 | <dl class="method"> |
---|
650 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onLeave"> |
---|
651 | <tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
652 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
653 | </dd></dl> |
---|
654 | |
---|
655 | <dl class="method"> |
---|
656 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onRelease"> |
---|
657 | <tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
658 | <dd></dd></dl> |
---|
659 | |
---|
660 | <dl class="method"> |
---|
661 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.post_data"> |
---|
662 | <tt class="descname">post_data</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.post_data" title="Permalink to this definition">¶</a></dt> |
---|
663 | <dd><p>post data averaging in Qx or Qy given new_slab type</p> |
---|
664 | <table class="docutils field-list" frame="void" rules="none"> |
---|
665 | <col class="field-name" /> |
---|
666 | <col class="field-body" /> |
---|
667 | <tbody valign="top"> |
---|
668 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
669 | <li><strong>new_slab</strong> – slicer that determine with direction to average</li> |
---|
670 | <li><strong>nbins</strong> – the number of points plotted when averaging</li> |
---|
671 | <li><strong>direction</strong> – the direction of averaging</li> |
---|
672 | </ul> |
---|
673 | </td> |
---|
674 | </tr> |
---|
675 | </tbody> |
---|
676 | </table> |
---|
677 | </dd></dl> |
---|
678 | |
---|
679 | <dl class="method"> |
---|
680 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.restore"> |
---|
681 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.restore" title="Permalink to this definition">¶</a></dt> |
---|
682 | <dd><p>Restore the roughness for this layer.</p> |
---|
683 | </dd></dl> |
---|
684 | |
---|
685 | <dl class="method"> |
---|
686 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.save"> |
---|
687 | <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.save" title="Permalink to this definition">¶</a></dt> |
---|
688 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
689 | can restore on Esc.</p> |
---|
690 | </dd></dl> |
---|
691 | |
---|
692 | <dl class="method"> |
---|
693 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.set_cursor"> |
---|
694 | <tt class="descname">set_cursor</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
695 | <dd></dd></dl> |
---|
696 | |
---|
697 | <dl class="method"> |
---|
698 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.set_layer"> |
---|
699 | <tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
700 | <dd><p>Allow adding plot to the same panel</p> |
---|
701 | <table class="docutils field-list" frame="void" rules="none"> |
---|
702 | <col class="field-name" /> |
---|
703 | <col class="field-body" /> |
---|
704 | <tbody valign="top"> |
---|
705 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> – the number of layer</td> |
---|
706 | </tr> |
---|
707 | </tbody> |
---|
708 | </table> |
---|
709 | </dd></dl> |
---|
710 | |
---|
711 | <dl class="method"> |
---|
712 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.set_params"> |
---|
713 | <tt class="descname">set_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.set_params" title="Permalink to this definition">¶</a></dt> |
---|
714 | <dd><p>Receive a dictionary and reset the slicer with values contained |
---|
715 | in the values of the dictionary.</p> |
---|
716 | <table class="docutils field-list" frame="void" rules="none"> |
---|
717 | <col class="field-name" /> |
---|
718 | <col class="field-body" /> |
---|
719 | <tbody valign="top"> |
---|
720 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>params</strong> – a dictionary containing name of slicer parameters and |
---|
721 | values the user assigned to the slicer.</td> |
---|
722 | </tr> |
---|
723 | </tbody> |
---|
724 | </table> |
---|
725 | </dd></dl> |
---|
726 | |
---|
727 | <dl class="method"> |
---|
728 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.thaw_axes"> |
---|
729 | <tt class="descname">thaw_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.thaw_axes" title="Permalink to this definition">¶</a></dt> |
---|
730 | <dd></dd></dl> |
---|
731 | |
---|
732 | <dl class="method"> |
---|
733 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.update"> |
---|
734 | <tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.update" title="Permalink to this definition">¶</a></dt> |
---|
735 | <dd><p>Respond to changes in the model by recalculating the profiles and |
---|
736 | resetting the widgets.</p> |
---|
737 | </dd></dl> |
---|
738 | |
---|
739 | <dl class="method"> |
---|
740 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.update_and_post"> |
---|
741 | <tt class="descname">update_and_post</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.BoxInteractorY.update_and_post" title="Permalink to this definition">¶</a></dt> |
---|
742 | <dd><p>Update the slicer and plot the resulting data</p> |
---|
743 | </dd></dl> |
---|
744 | |
---|
745 | </dd></dl> |
---|
746 | |
---|
747 | <dl class="class"> |
---|
748 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines"> |
---|
749 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSlicer.</tt><tt class="descname">HorizontalLines</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines" title="Permalink to this definition">¶</a></dt> |
---|
750 | <dd><p>Bases: <a class="reference internal" href="BaseInteractor.html#sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor" title="sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></a></p> |
---|
751 | <p>Draw 2 Horizontal lines centered on (0,0) that can move |
---|
752 | on the x- direction and in opposite direction</p> |
---|
753 | <dl class="method"> |
---|
754 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.__init__"> |
---|
755 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.__init__" title="Permalink to this definition">¶</a></dt> |
---|
756 | <dd></dd></dl> |
---|
757 | |
---|
758 | <dl class="attribute"> |
---|
759 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.__module__"> |
---|
760 | <tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.boxSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.__module__" title="Permalink to this definition">¶</a></dt> |
---|
761 | <dd></dd></dl> |
---|
762 | |
---|
763 | <dl class="method"> |
---|
764 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.clear"> |
---|
765 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.clear" title="Permalink to this definition">¶</a></dt> |
---|
766 | <dd><p>Clear this slicer and its markers</p> |
---|
767 | </dd></dl> |
---|
768 | |
---|
769 | <dl class="method"> |
---|
770 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.clear_markers"> |
---|
771 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
772 | <dd><p>Clear old markers and interfaces.</p> |
---|
773 | </dd></dl> |
---|
774 | |
---|
775 | <dl class="method"> |
---|
776 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.connect_markers"> |
---|
777 | <tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
778 | <dd><p>Connect markers to callbacks</p> |
---|
779 | </dd></dl> |
---|
780 | |
---|
781 | <dl class="method"> |
---|
782 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.dpixel"> |
---|
783 | <tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
784 | <dd><p>Return the step size in data coordinates for a small |
---|
785 | step in screen coordinates. If nudge is False (default) |
---|
786 | the step size is one pixel. If nudge is True, the step |
---|
787 | size is 0.2 pixels.</p> |
---|
788 | </dd></dl> |
---|
789 | |
---|
790 | <dl class="method"> |
---|
791 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.move"> |
---|
792 | <tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.move" title="Permalink to this definition">¶</a></dt> |
---|
793 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
794 | </dd></dl> |
---|
795 | |
---|
796 | <dl class="method"> |
---|
797 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.moveend"> |
---|
798 | <tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.moveend" title="Permalink to this definition">¶</a></dt> |
---|
799 | <dd><p>Called after a dragging this edge and set self.has_move to False |
---|
800 | to specify the end of dragging motion</p> |
---|
801 | </dd></dl> |
---|
802 | |
---|
803 | <dl class="method"> |
---|
804 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onClick"> |
---|
805 | <tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onClick" title="Permalink to this definition">¶</a></dt> |
---|
806 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
807 | later restore().</p> |
---|
808 | </dd></dl> |
---|
809 | |
---|
810 | <dl class="method"> |
---|
811 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onDrag"> |
---|
812 | <tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
813 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
814 | the mouse leaves the window.</p> |
---|
815 | </dd></dl> |
---|
816 | |
---|
817 | <dl class="method"> |
---|
818 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onHilite"> |
---|
819 | <tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
820 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
821 | ready to receive a click.</p> |
---|
822 | </dd></dl> |
---|
823 | |
---|
824 | <dl class="method"> |
---|
825 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onKey"> |
---|
826 | <tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onKey" title="Permalink to this definition">¶</a></dt> |
---|
827 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
828 | restores it to the position before the last click.</p> |
---|
829 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
830 | </dd></dl> |
---|
831 | |
---|
832 | <dl class="method"> |
---|
833 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onLeave"> |
---|
834 | <tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
835 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
836 | </dd></dl> |
---|
837 | |
---|
838 | <dl class="method"> |
---|
839 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onRelease"> |
---|
840 | <tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
841 | <dd></dd></dl> |
---|
842 | |
---|
843 | <dl class="method"> |
---|
844 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.restore"> |
---|
845 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.restore" title="Permalink to this definition">¶</a></dt> |
---|
846 | <dd><p>Restore the roughness for this layer.</p> |
---|
847 | </dd></dl> |
---|
848 | |
---|
849 | <dl class="method"> |
---|
850 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.save"> |
---|
851 | <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.save" title="Permalink to this definition">¶</a></dt> |
---|
852 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
853 | can restore on Esc.</p> |
---|
854 | </dd></dl> |
---|
855 | |
---|
856 | <dl class="method"> |
---|
857 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.set_layer"> |
---|
858 | <tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
859 | <dd><p>Allow adding plot to the same panel</p> |
---|
860 | <table class="docutils field-list" frame="void" rules="none"> |
---|
861 | <col class="field-name" /> |
---|
862 | <col class="field-body" /> |
---|
863 | <tbody valign="top"> |
---|
864 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> – the number of layer</td> |
---|
865 | </tr> |
---|
866 | </tbody> |
---|
867 | </table> |
---|
868 | </dd></dl> |
---|
869 | |
---|
870 | <dl class="method"> |
---|
871 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.update"> |
---|
872 | <tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.HorizontalLines.update" title="Permalink to this definition">¶</a></dt> |
---|
873 | <dd><p>Draw the new roughness on the graph.</p> |
---|
874 | <table class="docutils field-list" frame="void" rules="none"> |
---|
875 | <col class="field-name" /> |
---|
876 | <col class="field-body" /> |
---|
877 | <tbody valign="top"> |
---|
878 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
879 | <li><strong>x</strong> – x-coordinates to reset current class x</li> |
---|
880 | <li><strong>y</strong> – y-coordinates to reset current class y</li> |
---|
881 | </ul> |
---|
882 | </td> |
---|
883 | </tr> |
---|
884 | </tbody> |
---|
885 | </table> |
---|
886 | </dd></dl> |
---|
887 | |
---|
888 | </dd></dl> |
---|
889 | |
---|
890 | <dl class="class"> |
---|
891 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines"> |
---|
892 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSlicer.</tt><tt class="descname">VerticalLines</tt><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines" title="Permalink to this definition">¶</a></dt> |
---|
893 | <dd><p>Bases: <a class="reference internal" href="BaseInteractor.html#sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor" title="sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor"><tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></a></p> |
---|
894 | <p>Select an annulus through a 2D plot</p> |
---|
895 | <dl class="method"> |
---|
896 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.__init__"> |
---|
897 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.__init__" title="Permalink to this definition">¶</a></dt> |
---|
898 | <dd></dd></dl> |
---|
899 | |
---|
900 | <dl class="attribute"> |
---|
901 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.__module__"> |
---|
902 | <tt class="descname">__module__</tt><em class="property"> = 'sans.guiframe.local_perspectives.plotting.boxSlicer'</em><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.__module__" title="Permalink to this definition">¶</a></dt> |
---|
903 | <dd></dd></dl> |
---|
904 | |
---|
905 | <dl class="method"> |
---|
906 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.clear"> |
---|
907 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.clear" title="Permalink to this definition">¶</a></dt> |
---|
908 | <dd><p>Clear this slicer and its markers</p> |
---|
909 | </dd></dl> |
---|
910 | |
---|
911 | <dl class="method"> |
---|
912 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.clear_markers"> |
---|
913 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
914 | <dd><p>Clear old markers and interfaces.</p> |
---|
915 | </dd></dl> |
---|
916 | |
---|
917 | <dl class="method"> |
---|
918 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.connect_markers"> |
---|
919 | <tt class="descname">connect_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
920 | <dd><p>Connect markers to callbacks</p> |
---|
921 | </dd></dl> |
---|
922 | |
---|
923 | <dl class="method"> |
---|
924 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.dpixel"> |
---|
925 | <tt class="descname">dpixel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
926 | <dd><p>Return the step size in data coordinates for a small |
---|
927 | step in screen coordinates. If nudge is False (default) |
---|
928 | the step size is one pixel. If nudge is True, the step |
---|
929 | size is 0.2 pixels.</p> |
---|
930 | </dd></dl> |
---|
931 | |
---|
932 | <dl class="method"> |
---|
933 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.move"> |
---|
934 | <tt class="descname">move</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.move" title="Permalink to this definition">¶</a></dt> |
---|
935 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
936 | </dd></dl> |
---|
937 | |
---|
938 | <dl class="method"> |
---|
939 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.moveend"> |
---|
940 | <tt class="descname">moveend</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.moveend" title="Permalink to this definition">¶</a></dt> |
---|
941 | <dd><p>Called after a dragging this edge and set self.has_move to False |
---|
942 | to specify the end of dragging motion</p> |
---|
943 | </dd></dl> |
---|
944 | |
---|
945 | <dl class="method"> |
---|
946 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onClick"> |
---|
947 | <tt class="descname">onClick</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onClick" title="Permalink to this definition">¶</a></dt> |
---|
948 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
949 | later restore().</p> |
---|
950 | </dd></dl> |
---|
951 | |
---|
952 | <dl class="method"> |
---|
953 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onDrag"> |
---|
954 | <tt class="descname">onDrag</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
955 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
956 | the mouse leaves the window.</p> |
---|
957 | </dd></dl> |
---|
958 | |
---|
959 | <dl class="method"> |
---|
960 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onHilite"> |
---|
961 | <tt class="descname">onHilite</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
962 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
963 | ready to receive a click.</p> |
---|
964 | </dd></dl> |
---|
965 | |
---|
966 | <dl class="method"> |
---|
967 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onKey"> |
---|
968 | <tt class="descname">onKey</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onKey" title="Permalink to this definition">¶</a></dt> |
---|
969 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
970 | restores it to the position before the last click.</p> |
---|
971 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
972 | </dd></dl> |
---|
973 | |
---|
974 | <dl class="method"> |
---|
975 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onLeave"> |
---|
976 | <tt class="descname">onLeave</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
977 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
978 | </dd></dl> |
---|
979 | |
---|
980 | <dl class="method"> |
---|
981 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onRelease"> |
---|
982 | <tt class="descname">onRelease</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
983 | <dd></dd></dl> |
---|
984 | |
---|
985 | <dl class="method"> |
---|
986 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.restore"> |
---|
987 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.restore" title="Permalink to this definition">¶</a></dt> |
---|
988 | <dd><p>Restore the roughness for this layer.</p> |
---|
989 | </dd></dl> |
---|
990 | |
---|
991 | <dl class="method"> |
---|
992 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.save"> |
---|
993 | <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.save" title="Permalink to this definition">¶</a></dt> |
---|
994 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
995 | can restore on Esc.</p> |
---|
996 | </dd></dl> |
---|
997 | |
---|
998 | <dl class="method"> |
---|
999 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.set_layer"> |
---|
1000 | <tt class="descname">set_layer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
1001 | <dd><p>Allow adding plot to the same panel</p> |
---|
1002 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1003 | <col class="field-name" /> |
---|
1004 | <col class="field-body" /> |
---|
1005 | <tbody valign="top"> |
---|
1006 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>n</strong> – the number of layer</td> |
---|
1007 | </tr> |
---|
1008 | </tbody> |
---|
1009 | </table> |
---|
1010 | </dd></dl> |
---|
1011 | |
---|
1012 | <dl class="method"> |
---|
1013 | <dt id="sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.update"> |
---|
1014 | <tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSlicer.VerticalLines.update" title="Permalink to this definition">¶</a></dt> |
---|
1015 | <dd><p>Draw the new roughness on the graph.</p> |
---|
1016 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1017 | <col class="field-name" /> |
---|
1018 | <col class="field-body" /> |
---|
1019 | <tbody valign="top"> |
---|
1020 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1021 | <li><strong>x</strong> – x-coordinates to reset current class x</li> |
---|
1022 | <li><strong>y</strong> – y-coordinates to reset current class y</li> |
---|
1023 | </ul> |
---|
1024 | </td> |
---|
1025 | </tr> |
---|
1026 | </tbody> |
---|
1027 | </table> |
---|
1028 | </dd></dl> |
---|
1029 | |
---|
1030 | </dd></dl> |
---|
1031 | |
---|
1032 | </div> |
---|
1033 | </div> |
---|
1034 | |
---|
1035 | |
---|
1036 | </div> |
---|
1037 | </div> |
---|
1038 | </div> |
---|
1039 | <div class="sphinxsidebar"> |
---|
1040 | <div class="sphinxsidebarwrapper"> |
---|
1041 | <h3><a href="../../../index.html">Table Of Contents</a></h3> |
---|
1042 | <ul> |
---|
1043 | <li><a class="reference internal" href="#">boxSlicer</a><ul> |
---|
1044 | <li><a class="reference internal" href="#sans-guiframe-local-perspectives-plotting-boxslicer"><tt class="docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.boxSlicer</span></tt></a></li> |
---|
1045 | </ul> |
---|
1046 | </li> |
---|
1047 | </ul> |
---|
1048 | |
---|
1049 | <h4>Previous topic</h4> |
---|
1050 | <p class="topless"><a href="boxMask.html" |
---|
1051 | title="previous chapter">boxMask</a></p> |
---|
1052 | <h4>Next topic</h4> |
---|
1053 | <p class="topless"><a href="boxSum.html" |
---|
1054 | title="next chapter">boxSum</a></p> |
---|
1055 | <h3>This Page</h3> |
---|
1056 | <ul class="this-page-menu"> |
---|
1057 | <li><a href="../../../_sources/api/local_perspectives/plotting/boxSlicer.txt" |
---|
1058 | rel="nofollow">Show Source</a></li> |
---|
1059 | </ul> |
---|
1060 | <div id="searchbox" style="display: none"> |
---|
1061 | <h3>Quick search</h3> |
---|
1062 | <form class="search" action="../../../search.html" method="get"> |
---|
1063 | <input type="text" name="q" /> |
---|
1064 | <input type="submit" value="Go" /> |
---|
1065 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
1066 | <input type="hidden" name="area" value="default" /> |
---|
1067 | </form> |
---|
1068 | <p class="searchtip" style="font-size: 90%"> |
---|
1069 | Enter search terms or a module, class or function name. |
---|
1070 | </p> |
---|
1071 | </div> |
---|
1072 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
1073 | </div> |
---|
1074 | </div> |
---|
1075 | <div class="clearer"></div> |
---|
1076 | </div> |
---|
1077 | <div class="related"> |
---|
1078 | <h3>Navigation</h3> |
---|
1079 | <ul> |
---|
1080 | <li class="right" style="margin-right: 10px"> |
---|
1081 | <a href="../../../genindex.html" title="General Index" |
---|
1082 | >index</a></li> |
---|
1083 | <li class="right" > |
---|
1084 | <a href="../../../py-modindex.html" title="Python Module Index" |
---|
1085 | >modules</a> |</li> |
---|
1086 | <li class="right" > |
---|
1087 | <a href="boxSum.html" title="boxSum" |
---|
1088 | >next</a> |</li> |
---|
1089 | <li class="right" > |
---|
1090 | <a href="boxMask.html" title="boxMask" |
---|
1091 | >previous</a> |</li> |
---|
1092 | <li><a href="../../../index.html">guiframe 0.1.0 documentation</a> »</li> |
---|
1093 | <li><a href="index.html" >Local Perspective: plotting</a> »</li> |
---|
1094 | </ul> |
---|
1095 | </div> |
---|
1096 | <div class="footer"> |
---|
1097 | © Copyright 2010, sans group. |
---|
1098 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. |
---|
1099 | </div> |
---|
1100 | </body> |
---|
1101 | </html> |
---|