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 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
7 | <head> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
9 | |
---|
10 | <title>boxSum — guiframe v0.1.0 documentation</title> |
---|
11 | <link rel="stylesheet" href="../../../_static/default.css" type="text/css" /> |
---|
12 | <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> |
---|
13 | <script type="text/javascript"> |
---|
14 | var DOCUMENTATION_OPTIONS = { |
---|
15 | URL_ROOT: '../../../', |
---|
16 | VERSION: '0.1.0', |
---|
17 | COLLAPSE_INDEX: false, |
---|
18 | FILE_SUFFIX: '.html', |
---|
19 | HAS_SOURCE: true |
---|
20 | }; |
---|
21 | </script> |
---|
22 | <script type="text/javascript" src="../../../_static/jquery.js"></script> |
---|
23 | <script type="text/javascript" src="../../../_static/underscore.js"></script> |
---|
24 | <script type="text/javascript" src="../../../_static/doctools.js"></script> |
---|
25 | <link rel="top" title="guiframe v0.1.0 documentation" href="../../../index.html" /> |
---|
26 | <link rel="up" title="Local Perspective: plotting" href="index.html" /> |
---|
27 | <link rel="next" title="detector_dialog" href="detector_dialog.html" /> |
---|
28 | <link rel="prev" title="boxSlicer" href="boxSlicer.html" /> |
---|
29 | </head> |
---|
30 | <body> |
---|
31 | <div class="related"> |
---|
32 | <h3>Navigation</h3> |
---|
33 | <ul> |
---|
34 | <li class="right" style="margin-right: 10px"> |
---|
35 | <a href="../../../genindex.html" title="General Index" |
---|
36 | accesskey="I">index</a></li> |
---|
37 | <li class="right" > |
---|
38 | <a href="../../../py-modindex.html" title="Python Module Index" |
---|
39 | >modules</a> |</li> |
---|
40 | <li class="right" > |
---|
41 | <a href="detector_dialog.html" title="detector_dialog" |
---|
42 | accesskey="N">next</a> |</li> |
---|
43 | <li class="right" > |
---|
44 | <a href="boxSlicer.html" title="boxSlicer" |
---|
45 | accesskey="P">previous</a> |</li> |
---|
46 | <li><a href="../../../index.html">guiframe v0.1.0 documentation</a> »</li> |
---|
47 | <li><a href="index.html" accesskey="U">Local Perspective: plotting</a> »</li> |
---|
48 | </ul> |
---|
49 | </div> |
---|
50 | |
---|
51 | <div class="document"> |
---|
52 | <div class="documentwrapper"> |
---|
53 | <div class="bodywrapper"> |
---|
54 | <div class="body"> |
---|
55 | |
---|
56 | <div class="section" id="boxsum"> |
---|
57 | <h1>boxSum<a class="headerlink" href="#boxsum" title="Permalink to this headline">¶</a></h1> |
---|
58 | <div class="section" id="module-sans.guiframe.local_perspectives.plotting.boxSum"> |
---|
59 | <span id="sans-guiframe-local-perspectives-plotting-boxsum"></span><h2><a class="reference internal" href="#module-sans.guiframe.local_perspectives.plotting.boxSum" title="sans.guiframe.local_perspectives.plotting.boxSum"><tt class="xref py py-mod docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.boxSum</span></tt></a><a class="headerlink" href="#module-sans.guiframe.local_perspectives.plotting.boxSum" title="Permalink to this headline">¶</a></h2> |
---|
60 | <dl class="class"> |
---|
61 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum"> |
---|
62 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSum.</tt><tt class="descname">BoxSum</tt><big>(</big><em>base</em>, <em>axes</em>, <em>color='black'</em>, <em>zorder=3</em>, <em>x_min=0.0080000000000000002</em>, <em>x_max=0.0080000000000000002</em>, <em>y_min=0.0025000000000000001</em>, <em>y_max=0.0025000000000000001</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum" title="Permalink to this definition">¶</a></dt> |
---|
63 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></p> |
---|
64 | <p>Boxsum Class: determine 2 rectangular area to compute |
---|
65 | the sum of pixel of a Data. |
---|
66 | Uses PointerInteractor , VerticalDoubleLine,HorizontalDoubleLine. |
---|
67 | @param zorder: Artists with lower zorder values are drawn first. |
---|
68 | @param x_min: the minimum value of the x coordinate |
---|
69 | @param x_max: the maximum value of the x coordinate |
---|
70 | @param y_min: the minimum value of the y coordinate |
---|
71 | @param y_max: the maximum value of the y coordinate</p> |
---|
72 | <dl class="method"> |
---|
73 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.clear"> |
---|
74 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.clear" title="Permalink to this definition">¶</a></dt> |
---|
75 | <dd><p>Clear the slicer and all connected events related to this slicer</p> |
---|
76 | </dd></dl> |
---|
77 | |
---|
78 | <dl class="method"> |
---|
79 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.clear_markers"> |
---|
80 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
81 | <dd><p>Clear old markers and interfaces.</p> |
---|
82 | </dd></dl> |
---|
83 | |
---|
84 | <dl class="method"> |
---|
85 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.connect_markers"> |
---|
86 | <tt class="descname">connect_markers</tt><big>(</big><em>markers</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
87 | <dd><p>Connect markers to callbacks</p> |
---|
88 | </dd></dl> |
---|
89 | |
---|
90 | <dl class="method"> |
---|
91 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.dpixel"> |
---|
92 | <tt class="descname">dpixel</tt><big>(</big><em>x</em>, <em>y</em>, <em>nudge=False</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
93 | <dd><p>Return the step size in data coordinates for a small |
---|
94 | step in screen coordinates. If nudge is False (default) |
---|
95 | the step size is one pixel. If nudge is True, the step |
---|
96 | size is 0.2 pixels.</p> |
---|
97 | </dd></dl> |
---|
98 | |
---|
99 | <dl class="method"> |
---|
100 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.draw"> |
---|
101 | <tt class="descname">draw</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.draw" title="Permalink to this definition">¶</a></dt> |
---|
102 | <dd></dd></dl> |
---|
103 | |
---|
104 | <dl class="method"> |
---|
105 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.freeze_axes"> |
---|
106 | <tt class="descname">freeze_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.freeze_axes" title="Permalink to this definition">¶</a></dt> |
---|
107 | <dd></dd></dl> |
---|
108 | |
---|
109 | <dl class="method"> |
---|
110 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.get_params"> |
---|
111 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.get_params" title="Permalink to this definition">¶</a></dt> |
---|
112 | <dd><p>Store a copy of values of parameters of the slicer into a dictionary. |
---|
113 | :return params: the dictionary created</p> |
---|
114 | </dd></dl> |
---|
115 | |
---|
116 | <dl class="method"> |
---|
117 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.get_result"> |
---|
118 | <tt class="descname">get_result</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.get_result" title="Permalink to this definition">¶</a></dt> |
---|
119 | <dd><p>return the result of box summation</p> |
---|
120 | </dd></dl> |
---|
121 | |
---|
122 | <dl class="method"> |
---|
123 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.move"> |
---|
124 | <tt class="descname">move</tt><big>(</big><em>x</em>, <em>y</em>, <em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.move" title="Permalink to this definition">¶</a></dt> |
---|
125 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
126 | </dd></dl> |
---|
127 | |
---|
128 | <dl class="method"> |
---|
129 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.moveend"> |
---|
130 | <tt class="descname">moveend</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.moveend" title="Permalink to this definition">¶</a></dt> |
---|
131 | <dd><p>After a dragging motion this function is called to compute |
---|
132 | the error and the sum of pixel of a given data 2D</p> |
---|
133 | </dd></dl> |
---|
134 | |
---|
135 | <dl class="method"> |
---|
136 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onClick"> |
---|
137 | <tt class="descname">onClick</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onClick" title="Permalink to this definition">¶</a></dt> |
---|
138 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
139 | later restore().</p> |
---|
140 | </dd></dl> |
---|
141 | |
---|
142 | <dl class="method"> |
---|
143 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onDrag"> |
---|
144 | <tt class="descname">onDrag</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
145 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
146 | the mouse leaves the window.</p> |
---|
147 | </dd></dl> |
---|
148 | |
---|
149 | <dl class="method"> |
---|
150 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onHilite"> |
---|
151 | <tt class="descname">onHilite</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
152 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
153 | ready to receive a click.</p> |
---|
154 | </dd></dl> |
---|
155 | |
---|
156 | <dl class="method"> |
---|
157 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onKey"> |
---|
158 | <tt class="descname">onKey</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onKey" title="Permalink to this definition">¶</a></dt> |
---|
159 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
160 | restores it to the position before the last click.</p> |
---|
161 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
162 | </dd></dl> |
---|
163 | |
---|
164 | <dl class="method"> |
---|
165 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onLeave"> |
---|
166 | <tt class="descname">onLeave</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
167 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
168 | </dd></dl> |
---|
169 | |
---|
170 | <dl class="method"> |
---|
171 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onRelease"> |
---|
172 | <tt class="descname">onRelease</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
173 | <dd></dd></dl> |
---|
174 | |
---|
175 | <dl class="method"> |
---|
176 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.restore"> |
---|
177 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.restore" title="Permalink to this definition">¶</a></dt> |
---|
178 | <dd><p>Restore the roughness for this layer.</p> |
---|
179 | </dd></dl> |
---|
180 | |
---|
181 | <dl class="method"> |
---|
182 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.save"> |
---|
183 | <tt class="descname">save</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.save" title="Permalink to this definition">¶</a></dt> |
---|
184 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
185 | can restore on Esc.</p> |
---|
186 | </dd></dl> |
---|
187 | |
---|
188 | <dl class="method"> |
---|
189 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_cursor"> |
---|
190 | <tt class="descname">set_cursor</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
191 | <dd></dd></dl> |
---|
192 | |
---|
193 | <dl class="method"> |
---|
194 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_layer"> |
---|
195 | <tt class="descname">set_layer</tt><big>(</big><em>n</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
196 | <dd><p>Allow adding plot to the same panel |
---|
197 | :param n: the number of layer</p> |
---|
198 | </dd></dl> |
---|
199 | |
---|
200 | <dl class="method"> |
---|
201 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_panel_name"> |
---|
202 | <tt class="descname">set_panel_name</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_panel_name" title="Permalink to this definition">¶</a></dt> |
---|
203 | <dd><p>Store the name of the panel associated to this slicer |
---|
204 | @param name: the name of this panel</p> |
---|
205 | </dd></dl> |
---|
206 | |
---|
207 | <dl class="method"> |
---|
208 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_params"> |
---|
209 | <tt class="descname">set_params</tt><big>(</big><em>params</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.set_params" title="Permalink to this definition">¶</a></dt> |
---|
210 | <dd><p>Receive a dictionary and reset the slicer with values contained |
---|
211 | in the values of the dictionary. |
---|
212 | :param params: a dictionary containing name of slicer parameters and</p> |
---|
213 | <blockquote> |
---|
214 | <div>values the user assigned to the slicer.</div></blockquote> |
---|
215 | </dd></dl> |
---|
216 | |
---|
217 | <dl class="method"> |
---|
218 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.thaw_axes"> |
---|
219 | <tt class="descname">thaw_axes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.thaw_axes" title="Permalink to this definition">¶</a></dt> |
---|
220 | <dd></dd></dl> |
---|
221 | |
---|
222 | <dl class="method"> |
---|
223 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.update"> |
---|
224 | <tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.BoxSum.update" title="Permalink to this definition">¶</a></dt> |
---|
225 | <dd><p>Respond to changes in the model by recalculating the profiles and |
---|
226 | resetting the widgets.</p> |
---|
227 | </dd></dl> |
---|
228 | |
---|
229 | </dd></dl> |
---|
230 | |
---|
231 | <dl class="class"> |
---|
232 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine"> |
---|
233 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSum.</tt><tt class="descname">HorizontalDoubleLine</tt><big>(</big><em>base</em>, <em>axes</em>, <em>color='black'</em>, <em>zorder=5</em>, <em>x=0.5</em>, <em>y=0.5</em>, <em>center_x=0.0</em>, <em>center_y=0.0</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine" title="Permalink to this definition">¶</a></dt> |
---|
234 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></p> |
---|
235 | <p>Select an annulus through a 2D plot</p> |
---|
236 | <dl class="method"> |
---|
237 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.clear"> |
---|
238 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.clear" title="Permalink to this definition">¶</a></dt> |
---|
239 | <dd><p>Clear this figure and its markers</p> |
---|
240 | </dd></dl> |
---|
241 | |
---|
242 | <dl class="method"> |
---|
243 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.clear_markers"> |
---|
244 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
245 | <dd><p>Clear old markers and interfaces.</p> |
---|
246 | </dd></dl> |
---|
247 | |
---|
248 | <dl class="method"> |
---|
249 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.connect_markers"> |
---|
250 | <tt class="descname">connect_markers</tt><big>(</big><em>markers</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
251 | <dd><p>Connect markers to callbacks</p> |
---|
252 | </dd></dl> |
---|
253 | |
---|
254 | <dl class="method"> |
---|
255 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.dpixel"> |
---|
256 | <tt class="descname">dpixel</tt><big>(</big><em>x</em>, <em>y</em>, <em>nudge=False</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
257 | <dd><p>Return the step size in data coordinates for a small |
---|
258 | step in screen coordinates. If nudge is False (default) |
---|
259 | the step size is one pixel. If nudge is True, the step |
---|
260 | size is 0.2 pixels.</p> |
---|
261 | </dd></dl> |
---|
262 | |
---|
263 | <dl class="method"> |
---|
264 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.get_params"> |
---|
265 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.get_params" title="Permalink to this definition">¶</a></dt> |
---|
266 | <dd><p>Store a copy of values of parameters of the slicer into a dictionary. |
---|
267 | :return params: the dictionary created</p> |
---|
268 | </dd></dl> |
---|
269 | |
---|
270 | <dl class="method"> |
---|
271 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.move"> |
---|
272 | <tt class="descname">move</tt><big>(</big><em>x</em>, <em>y</em>, <em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.move" title="Permalink to this definition">¶</a></dt> |
---|
273 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
274 | </dd></dl> |
---|
275 | |
---|
276 | <dl class="method"> |
---|
277 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.moveend"> |
---|
278 | <tt class="descname">moveend</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.moveend" title="Permalink to this definition">¶</a></dt> |
---|
279 | <dd><p>After a dragging motion reset the flag self.has_move to False</p> |
---|
280 | </dd></dl> |
---|
281 | |
---|
282 | <dl class="method"> |
---|
283 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onClick"> |
---|
284 | <tt class="descname">onClick</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onClick" title="Permalink to this definition">¶</a></dt> |
---|
285 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
286 | later restore().</p> |
---|
287 | </dd></dl> |
---|
288 | |
---|
289 | <dl class="method"> |
---|
290 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onDrag"> |
---|
291 | <tt class="descname">onDrag</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
292 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
293 | the mouse leaves the window.</p> |
---|
294 | </dd></dl> |
---|
295 | |
---|
296 | <dl class="method"> |
---|
297 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onHilite"> |
---|
298 | <tt class="descname">onHilite</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
299 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
300 | ready to receive a click.</p> |
---|
301 | </dd></dl> |
---|
302 | |
---|
303 | <dl class="method"> |
---|
304 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onKey"> |
---|
305 | <tt class="descname">onKey</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onKey" title="Permalink to this definition">¶</a></dt> |
---|
306 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
307 | restores it to the position before the last click.</p> |
---|
308 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
309 | </dd></dl> |
---|
310 | |
---|
311 | <dl class="method"> |
---|
312 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onLeave"> |
---|
313 | <tt class="descname">onLeave</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
314 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
315 | </dd></dl> |
---|
316 | |
---|
317 | <dl class="method"> |
---|
318 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onRelease"> |
---|
319 | <tt class="descname">onRelease</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
320 | <dd></dd></dl> |
---|
321 | |
---|
322 | <dl class="method"> |
---|
323 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.restore"> |
---|
324 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.restore" title="Permalink to this definition">¶</a></dt> |
---|
325 | <dd><p>Restore the roughness for this layer.</p> |
---|
326 | </dd></dl> |
---|
327 | |
---|
328 | <dl class="method"> |
---|
329 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.save"> |
---|
330 | <tt class="descname">save</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.save" title="Permalink to this definition">¶</a></dt> |
---|
331 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
332 | can restore on Esc.</p> |
---|
333 | </dd></dl> |
---|
334 | |
---|
335 | <dl class="method"> |
---|
336 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.set_cursor"> |
---|
337 | <tt class="descname">set_cursor</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
338 | <dd><p>Update the figure given x and y</p> |
---|
339 | </dd></dl> |
---|
340 | |
---|
341 | <dl class="method"> |
---|
342 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.set_layer"> |
---|
343 | <tt class="descname">set_layer</tt><big>(</big><em>n</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
344 | <dd><p>Allow adding plot to the same panel |
---|
345 | @param n: the number of layer</p> |
---|
346 | </dd></dl> |
---|
347 | |
---|
348 | <dl class="method"> |
---|
349 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.set_params"> |
---|
350 | <tt class="descname">set_params</tt><big>(</big><em>params</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.set_params" title="Permalink to this definition">¶</a></dt> |
---|
351 | <dd><p>Receive a dictionary and reset the slicer with values contained |
---|
352 | in the values of the dictionary. |
---|
353 | :param params: a dictionary containing name of slicer parameters and</p> |
---|
354 | <blockquote> |
---|
355 | <div>values the user assigned to the slicer.</div></blockquote> |
---|
356 | </dd></dl> |
---|
357 | |
---|
358 | <dl class="method"> |
---|
359 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.update"> |
---|
360 | <tt class="descname">update</tt><big>(</big><em>x1=None</em>, <em>x2=None</em>, <em>y1=None</em>, <em>y2=None</em>, <em>width=None</em>, <em>height=None</em>, <em>center=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.HorizontalDoubleLine.update" title="Permalink to this definition">¶</a></dt> |
---|
361 | <dd><p>Draw the new roughness on the graph. |
---|
362 | :param x1: new maximum value of x coordinates |
---|
363 | :param x2: new minimum value of x coordinates |
---|
364 | :param y1: new maximum value of y coordinates |
---|
365 | :param y2: new minimum value of y coordinates |
---|
366 | :param width: is the width of the new rectangle |
---|
367 | :param height: is the height of the new rectangle |
---|
368 | :param center: provided x, y coordinates of the center point</p> |
---|
369 | </dd></dl> |
---|
370 | |
---|
371 | </dd></dl> |
---|
372 | |
---|
373 | <dl class="class"> |
---|
374 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor"> |
---|
375 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSum.</tt><tt class="descname">PointInteractor</tt><big>(</big><em>base</em>, <em>axes</em>, <em>color='black'</em>, <em>zorder=5</em>, <em>center_x=0.0</em>, <em>center_y=0.0</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor" title="Permalink to this definition">¶</a></dt> |
---|
376 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></p> |
---|
377 | <p>Draw a point that can be dragged with the marker. |
---|
378 | this class controls the motion the center of the BoxSum</p> |
---|
379 | <dl class="method"> |
---|
380 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.clear"> |
---|
381 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.clear" title="Permalink to this definition">¶</a></dt> |
---|
382 | <dd><p>Clear this figure and its markers</p> |
---|
383 | </dd></dl> |
---|
384 | |
---|
385 | <dl class="method"> |
---|
386 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.clear_markers"> |
---|
387 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
388 | <dd><p>Clear old markers and interfaces.</p> |
---|
389 | </dd></dl> |
---|
390 | |
---|
391 | <dl class="method"> |
---|
392 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.connect_markers"> |
---|
393 | <tt class="descname">connect_markers</tt><big>(</big><em>markers</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
394 | <dd><p>Connect markers to callbacks</p> |
---|
395 | </dd></dl> |
---|
396 | |
---|
397 | <dl class="method"> |
---|
398 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.dpixel"> |
---|
399 | <tt class="descname">dpixel</tt><big>(</big><em>x</em>, <em>y</em>, <em>nudge=False</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
400 | <dd><p>Return the step size in data coordinates for a small |
---|
401 | step in screen coordinates. If nudge is False (default) |
---|
402 | the step size is one pixel. If nudge is True, the step |
---|
403 | size is 0.2 pixels.</p> |
---|
404 | </dd></dl> |
---|
405 | |
---|
406 | <dl class="method"> |
---|
407 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.get_params"> |
---|
408 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.get_params" title="Permalink to this definition">¶</a></dt> |
---|
409 | <dd></dd></dl> |
---|
410 | |
---|
411 | <dl class="method"> |
---|
412 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.move"> |
---|
413 | <tt class="descname">move</tt><big>(</big><em>x</em>, <em>y</em>, <em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.move" title="Permalink to this definition">¶</a></dt> |
---|
414 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
415 | </dd></dl> |
---|
416 | |
---|
417 | <dl class="method"> |
---|
418 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.moveend"> |
---|
419 | <tt class="descname">moveend</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.moveend" title="Permalink to this definition">¶</a></dt> |
---|
420 | <dd></dd></dl> |
---|
421 | |
---|
422 | <dl class="method"> |
---|
423 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onClick"> |
---|
424 | <tt class="descname">onClick</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onClick" title="Permalink to this definition">¶</a></dt> |
---|
425 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
426 | later restore().</p> |
---|
427 | </dd></dl> |
---|
428 | |
---|
429 | <dl class="method"> |
---|
430 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onDrag"> |
---|
431 | <tt class="descname">onDrag</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
432 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
433 | the mouse leaves the window.</p> |
---|
434 | </dd></dl> |
---|
435 | |
---|
436 | <dl class="method"> |
---|
437 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onHilite"> |
---|
438 | <tt class="descname">onHilite</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
439 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
440 | ready to receive a click.</p> |
---|
441 | </dd></dl> |
---|
442 | |
---|
443 | <dl class="method"> |
---|
444 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onKey"> |
---|
445 | <tt class="descname">onKey</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onKey" title="Permalink to this definition">¶</a></dt> |
---|
446 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
447 | restores it to the position before the last click.</p> |
---|
448 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
449 | </dd></dl> |
---|
450 | |
---|
451 | <dl class="method"> |
---|
452 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onLeave"> |
---|
453 | <tt class="descname">onLeave</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
454 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
455 | </dd></dl> |
---|
456 | |
---|
457 | <dl class="method"> |
---|
458 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onRelease"> |
---|
459 | <tt class="descname">onRelease</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
460 | <dd></dd></dl> |
---|
461 | |
---|
462 | <dl class="method"> |
---|
463 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.restore"> |
---|
464 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.restore" title="Permalink to this definition">¶</a></dt> |
---|
465 | <dd><p>Restore the roughness for this layer.</p> |
---|
466 | </dd></dl> |
---|
467 | |
---|
468 | <dl class="method"> |
---|
469 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.save"> |
---|
470 | <tt class="descname">save</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.save" title="Permalink to this definition">¶</a></dt> |
---|
471 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
472 | can restore on Esc.</p> |
---|
473 | </dd></dl> |
---|
474 | |
---|
475 | <dl class="method"> |
---|
476 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.set_cursor"> |
---|
477 | <tt class="descname">set_cursor</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
478 | <dd></dd></dl> |
---|
479 | |
---|
480 | <dl class="method"> |
---|
481 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.set_layer"> |
---|
482 | <tt class="descname">set_layer</tt><big>(</big><em>n</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
483 | <dd><p>Allow adding plot to the same panel |
---|
484 | @param n: the number of layer</p> |
---|
485 | </dd></dl> |
---|
486 | |
---|
487 | <dl class="method"> |
---|
488 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.set_params"> |
---|
489 | <tt class="descname">set_params</tt><big>(</big><em>params</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.set_params" title="Permalink to this definition">¶</a></dt> |
---|
490 | <dd></dd></dl> |
---|
491 | |
---|
492 | <dl class="method"> |
---|
493 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.update"> |
---|
494 | <tt class="descname">update</tt><big>(</big><em>center_x=None</em>, <em>center_y=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.PointInteractor.update" title="Permalink to this definition">¶</a></dt> |
---|
495 | <dd><p>Draw the new roughness on the graph.</p> |
---|
496 | </dd></dl> |
---|
497 | |
---|
498 | </dd></dl> |
---|
499 | |
---|
500 | <dl class="class"> |
---|
501 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine"> |
---|
502 | <em class="property">class </em><tt class="descclassname">sans.guiframe.local_perspectives.plotting.boxSum.</tt><tt class="descname">VerticalDoubleLine</tt><big>(</big><em>base</em>, <em>axes</em>, <em>color='black'</em>, <em>zorder=5</em>, <em>x=0.5</em>, <em>y=0.5</em>, <em>center_x=0.0</em>, <em>center_y=0.0</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine" title="Permalink to this definition">¶</a></dt> |
---|
503 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.BaseInteractor._BaseInteractor</span></tt></p> |
---|
504 | <p>Draw 2 vertical lines moving in opposite direction and centered on |
---|
505 | a point (PointInteractor)</p> |
---|
506 | <dl class="method"> |
---|
507 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.clear"> |
---|
508 | <tt class="descname">clear</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.clear" title="Permalink to this definition">¶</a></dt> |
---|
509 | <dd><p>Clear this slicer and its markers</p> |
---|
510 | </dd></dl> |
---|
511 | |
---|
512 | <dl class="method"> |
---|
513 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.clear_markers"> |
---|
514 | <tt class="descname">clear_markers</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.clear_markers" title="Permalink to this definition">¶</a></dt> |
---|
515 | <dd><p>Clear old markers and interfaces.</p> |
---|
516 | </dd></dl> |
---|
517 | |
---|
518 | <dl class="method"> |
---|
519 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.connect_markers"> |
---|
520 | <tt class="descname">connect_markers</tt><big>(</big><em>markers</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.connect_markers" title="Permalink to this definition">¶</a></dt> |
---|
521 | <dd><p>Connect markers to callbacks</p> |
---|
522 | </dd></dl> |
---|
523 | |
---|
524 | <dl class="method"> |
---|
525 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.dpixel"> |
---|
526 | <tt class="descname">dpixel</tt><big>(</big><em>x</em>, <em>y</em>, <em>nudge=False</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.dpixel" title="Permalink to this definition">¶</a></dt> |
---|
527 | <dd><p>Return the step size in data coordinates for a small |
---|
528 | step in screen coordinates. If nudge is False (default) |
---|
529 | the step size is one pixel. If nudge is True, the step |
---|
530 | size is 0.2 pixels.</p> |
---|
531 | </dd></dl> |
---|
532 | |
---|
533 | <dl class="method"> |
---|
534 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.get_params"> |
---|
535 | <tt class="descname">get_params</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.get_params" title="Permalink to this definition">¶</a></dt> |
---|
536 | <dd><p>Store a copy of values of parameters of the slicer into a dictionary. |
---|
537 | @return params: the dictionary created</p> |
---|
538 | </dd></dl> |
---|
539 | |
---|
540 | <dl class="method"> |
---|
541 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.move"> |
---|
542 | <tt class="descname">move</tt><big>(</big><em>x</em>, <em>y</em>, <em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.move" title="Permalink to this definition">¶</a></dt> |
---|
543 | <dd><p>Process move to a new position, making sure that the move is allowed.</p> |
---|
544 | </dd></dl> |
---|
545 | |
---|
546 | <dl class="method"> |
---|
547 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.moveend"> |
---|
548 | <tt class="descname">moveend</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.moveend" title="Permalink to this definition">¶</a></dt> |
---|
549 | <dd><p>After a dragging motion reset the flag self.has_move to False</p> |
---|
550 | </dd></dl> |
---|
551 | |
---|
552 | <dl class="method"> |
---|
553 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onClick"> |
---|
554 | <tt class="descname">onClick</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onClick" title="Permalink to this definition">¶</a></dt> |
---|
555 | <dd><p>Prepare to move the artist. Calls save() to preserve the state for |
---|
556 | later restore().</p> |
---|
557 | </dd></dl> |
---|
558 | |
---|
559 | <dl class="method"> |
---|
560 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onDrag"> |
---|
561 | <tt class="descname">onDrag</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onDrag" title="Permalink to this definition">¶</a></dt> |
---|
562 | <dd><p>Move the artist. Calls move() to update the state, or restore() if |
---|
563 | the mouse leaves the window.</p> |
---|
564 | </dd></dl> |
---|
565 | |
---|
566 | <dl class="method"> |
---|
567 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onHilite"> |
---|
568 | <tt class="descname">onHilite</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onHilite" title="Permalink to this definition">¶</a></dt> |
---|
569 | <dd><p>Hilite the artist reporting the event, indicating that it is |
---|
570 | ready to receive a click.</p> |
---|
571 | </dd></dl> |
---|
572 | |
---|
573 | <dl class="method"> |
---|
574 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onKey"> |
---|
575 | <tt class="descname">onKey</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onKey" title="Permalink to this definition">¶</a></dt> |
---|
576 | <dd><p>Respond to keyboard events. Arrow keys move the widget. Escape |
---|
577 | restores it to the position before the last click.</p> |
---|
578 | <p>Calls move() to update the state. Calls restore() on escape.</p> |
---|
579 | </dd></dl> |
---|
580 | |
---|
581 | <dl class="method"> |
---|
582 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onLeave"> |
---|
583 | <tt class="descname">onLeave</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onLeave" title="Permalink to this definition">¶</a></dt> |
---|
584 | <dd><p>Restore the artist to the original colour when the cursor leaves.</p> |
---|
585 | </dd></dl> |
---|
586 | |
---|
587 | <dl class="method"> |
---|
588 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onRelease"> |
---|
589 | <tt class="descname">onRelease</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.onRelease" title="Permalink to this definition">¶</a></dt> |
---|
590 | <dd></dd></dl> |
---|
591 | |
---|
592 | <dl class="method"> |
---|
593 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.restore"> |
---|
594 | <tt class="descname">restore</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.restore" title="Permalink to this definition">¶</a></dt> |
---|
595 | <dd><p>Restore the roughness for this layer.</p> |
---|
596 | </dd></dl> |
---|
597 | |
---|
598 | <dl class="method"> |
---|
599 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.save"> |
---|
600 | <tt class="descname">save</tt><big>(</big><em>ev</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.save" title="Permalink to this definition">¶</a></dt> |
---|
601 | <dd><p>Remember the roughness for this layer and the next so that we |
---|
602 | can restore on Esc.</p> |
---|
603 | </dd></dl> |
---|
604 | |
---|
605 | <dl class="method"> |
---|
606 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.set_cursor"> |
---|
607 | <tt class="descname">set_cursor</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.set_cursor" title="Permalink to this definition">¶</a></dt> |
---|
608 | <dd><p>Update the figure given x and y</p> |
---|
609 | </dd></dl> |
---|
610 | |
---|
611 | <dl class="method"> |
---|
612 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.set_layer"> |
---|
613 | <tt class="descname">set_layer</tt><big>(</big><em>n</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.set_layer" title="Permalink to this definition">¶</a></dt> |
---|
614 | <dd><p>Allow adding plot to the same panel |
---|
615 | :param n: the number of layer</p> |
---|
616 | </dd></dl> |
---|
617 | |
---|
618 | <dl class="method"> |
---|
619 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.set_params"> |
---|
620 | <tt class="descname">set_params</tt><big>(</big><em>params</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.set_params" title="Permalink to this definition">¶</a></dt> |
---|
621 | <dd><p>Receive a dictionary and reset the slicer with values contained |
---|
622 | in the values of the dictionary. |
---|
623 | @param params: a dictionary containing name of slicer parameters and |
---|
624 | values the user assigned to the slicer.</p> |
---|
625 | </dd></dl> |
---|
626 | |
---|
627 | <dl class="method"> |
---|
628 | <dt id="sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.update"> |
---|
629 | <tt class="descname">update</tt><big>(</big><em>x1=None</em>, <em>x2=None</em>, <em>y1=None</em>, <em>y2=None</em>, <em>width=None</em>, <em>height=None</em>, <em>center=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.local_perspectives.plotting.boxSum.VerticalDoubleLine.update" title="Permalink to this definition">¶</a></dt> |
---|
630 | <dd><p>Draw the new roughness on the graph. |
---|
631 | :param x1: new maximum value of x coordinates |
---|
632 | :param x2: new minimum value of x coordinates |
---|
633 | :param y1: new maximum value of y coordinates |
---|
634 | :param y2: new minimum value of y coordinates |
---|
635 | :param width: is the width of the new rectangle |
---|
636 | :param height: is the height of the new rectangle |
---|
637 | :param center: provided x, y coordinates of the center point</p> |
---|
638 | </dd></dl> |
---|
639 | |
---|
640 | </dd></dl> |
---|
641 | |
---|
642 | </div> |
---|
643 | </div> |
---|
644 | |
---|
645 | |
---|
646 | </div> |
---|
647 | </div> |
---|
648 | </div> |
---|
649 | <div class="sphinxsidebar"> |
---|
650 | <div class="sphinxsidebarwrapper"> |
---|
651 | <h3><a href="../../../index.html">Table Of Contents</a></h3> |
---|
652 | <ul> |
---|
653 | <li><a class="reference internal" href="#">boxSum</a><ul> |
---|
654 | <li><a class="reference internal" href="#module-sans.guiframe.local_perspectives.plotting.boxSum"><tt class="docutils literal"><span class="pre">sans.guiframe.local_perspectives.plotting.boxSum</span></tt></a></li> |
---|
655 | </ul> |
---|
656 | </li> |
---|
657 | </ul> |
---|
658 | |
---|
659 | <h4>Previous topic</h4> |
---|
660 | <p class="topless"><a href="boxSlicer.html" |
---|
661 | title="previous chapter">boxSlicer</a></p> |
---|
662 | <h4>Next topic</h4> |
---|
663 | <p class="topless"><a href="detector_dialog.html" |
---|
664 | title="next chapter">detector_dialog</a></p> |
---|
665 | <h3>This Page</h3> |
---|
666 | <ul class="this-page-menu"> |
---|
667 | <li><a href="../../../_sources/api/local_perspectives/plotting/boxSum.txt" |
---|
668 | rel="nofollow">Show Source</a></li> |
---|
669 | </ul> |
---|
670 | <div id="searchbox" style="display: none"> |
---|
671 | <h3>Quick search</h3> |
---|
672 | <form class="search" action="../../../search.html" method="get"> |
---|
673 | <input type="text" name="q" size="18" /> |
---|
674 | <input type="submit" value="Go" /> |
---|
675 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
676 | <input type="hidden" name="area" value="default" /> |
---|
677 | </form> |
---|
678 | <p class="searchtip" style="font-size: 90%"> |
---|
679 | Enter search terms or a module, class or function name. |
---|
680 | </p> |
---|
681 | </div> |
---|
682 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
683 | </div> |
---|
684 | </div> |
---|
685 | <div class="clearer"></div> |
---|
686 | </div> |
---|
687 | <div class="related"> |
---|
688 | <h3>Navigation</h3> |
---|
689 | <ul> |
---|
690 | <li class="right" style="margin-right: 10px"> |
---|
691 | <a href="../../../genindex.html" title="General Index" |
---|
692 | >index</a></li> |
---|
693 | <li class="right" > |
---|
694 | <a href="../../../py-modindex.html" title="Python Module Index" |
---|
695 | >modules</a> |</li> |
---|
696 | <li class="right" > |
---|
697 | <a href="detector_dialog.html" title="detector_dialog" |
---|
698 | >next</a> |</li> |
---|
699 | <li class="right" > |
---|
700 | <a href="boxSlicer.html" title="boxSlicer" |
---|
701 | >previous</a> |</li> |
---|
702 | <li><a href="../../../index.html">guiframe v0.1.0 documentation</a> »</li> |
---|
703 | <li><a href="index.html" >Local Perspective: plotting</a> »</li> |
---|
704 | </ul> |
---|
705 | </div> |
---|
706 | <div class="footer"> |
---|
707 | © Copyright 2010, sans group. |
---|
708 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. |
---|
709 | </div> |
---|
710 | </body> |
---|
711 | </html> |
---|