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>dataFitting — 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="Reference" href="index.html" /> |
---|
27 | <link rel="next" title="data_manager" href="data_manager.html" /> |
---|
28 | <link rel="prev" title="custom_pstats" href="custom_pstats.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="data_manager.html" title="data_manager" |
---|
42 | accesskey="N">next</a> |</li> |
---|
43 | <li class="right" > |
---|
44 | <a href="custom_pstats.html" title="custom_pstats" |
---|
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">Reference</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="datafitting"> |
---|
57 | <h1>dataFitting<a class="headerlink" href="#datafitting" title="Permalink to this headline">¶</a></h1> |
---|
58 | <div class="section" id="module-sans.guiframe.dataFitting"> |
---|
59 | <span id="sans-guiframe-datafitting"></span><h2><a class="reference internal" href="#module-sans.guiframe.dataFitting" title="sans.guiframe.dataFitting"><tt class="xref py py-mod docutils literal"><span class="pre">sans.guiframe.dataFitting</span></tt></a><a class="headerlink" href="#module-sans.guiframe.dataFitting" title="Permalink to this headline">¶</a></h2> |
---|
60 | <p>Adapters for fitting module</p> |
---|
61 | <dl class="class"> |
---|
62 | <dt id="sans.guiframe.dataFitting.Data1D"> |
---|
63 | <em class="property">class </em><tt class="descclassname">sans.guiframe.dataFitting.</tt><tt class="descname">Data1D</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D" title="Permalink to this definition">¶</a></dt> |
---|
64 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">danse.common.plottools.plottables.Data1D</span></tt>, <tt class="xref py py-class docutils literal"><span class="pre">sans.dataloader.data_info.Data1D</span></tt></p> |
---|
65 | <dl class="class"> |
---|
66 | <dt id="sans.guiframe.dataFitting.Data1D.View"> |
---|
67 | <em class="property">class </em><tt class="descname">View</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View" title="Permalink to this definition">¶</a></dt> |
---|
68 | <dd><p>Representation of the data that might include a transformation</p> |
---|
69 | <dl class="method"> |
---|
70 | <dt id="sans.guiframe.dataFitting.Data1D.View.check_data_logX"> |
---|
71 | <tt class="descname">check_data_logX</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.check_data_logX" title="Permalink to this definition">¶</a></dt> |
---|
72 | <dd><p>Remove negative value in x vector to avoid plotting negative |
---|
73 | value of Log10</p> |
---|
74 | </dd></dl> |
---|
75 | |
---|
76 | <dl class="method"> |
---|
77 | <dt id="sans.guiframe.dataFitting.Data1D.View.check_data_logY"> |
---|
78 | <tt class="descname">check_data_logY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.check_data_logY" title="Permalink to this definition">¶</a></dt> |
---|
79 | <dd><p>Remove negative value in y vector |
---|
80 | to avoid plotting negative value of Log10</p> |
---|
81 | </dd></dl> |
---|
82 | |
---|
83 | <dl class="method"> |
---|
84 | <dt id="sans.guiframe.dataFitting.Data1D.View.onFitRangeView"> |
---|
85 | <tt class="descname">onFitRangeView</tt><big>(</big><em>xmin=None</em>, <em>xmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.onFitRangeView" title="Permalink to this definition">¶</a></dt> |
---|
86 | <dd><p>It limits View data range to plot from min to max</p> |
---|
87 | <table class="docutils field-list" frame="void" rules="none"> |
---|
88 | <col class="field-name" /> |
---|
89 | <col class="field-body" /> |
---|
90 | <tbody valign="top"> |
---|
91 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
92 | <li><strong>xmin</strong> – the minimum value of x to plot.</li> |
---|
93 | <li><strong>xmax</strong> – the maximum value of x to plot</li> |
---|
94 | </ul> |
---|
95 | </td> |
---|
96 | </tr> |
---|
97 | </tbody> |
---|
98 | </table> |
---|
99 | </dd></dl> |
---|
100 | |
---|
101 | <dl class="method"> |
---|
102 | <dt id="sans.guiframe.dataFitting.Data1D.View.onResetView"> |
---|
103 | <tt class="descname">onResetView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.onResetView" title="Permalink to this definition">¶</a></dt> |
---|
104 | <dd><p>Reset x,y,dx and y in their full range and in the initial scale |
---|
105 | in case their previous range has changed</p> |
---|
106 | </dd></dl> |
---|
107 | |
---|
108 | <dl class="method"> |
---|
109 | <dt id="sans.guiframe.dataFitting.Data1D.View.returnXview"> |
---|
110 | <tt class="descname">returnXview</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.returnXview" title="Permalink to this definition">¶</a></dt> |
---|
111 | <dd><p>Return View x,y,dx,dy</p> |
---|
112 | </dd></dl> |
---|
113 | |
---|
114 | <dl class="method"> |
---|
115 | <dt id="sans.guiframe.dataFitting.Data1D.View.setTransformX"> |
---|
116 | <tt class="descname">setTransformX</tt><big>(</big><em>funcx</em>, <em>funcdx</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.setTransformX" title="Permalink to this definition">¶</a></dt> |
---|
117 | <dd><p>Receive pointers to function that transform x and dx |
---|
118 | and set corresponding View pointers</p> |
---|
119 | <table class="docutils field-list" frame="void" rules="none"> |
---|
120 | <col class="field-name" /> |
---|
121 | <col class="field-body" /> |
---|
122 | <tbody valign="top"> |
---|
123 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
124 | <li><strong>transx</strong> – pointer to function that transforms x</li> |
---|
125 | <li><strong>transdx</strong> – pointer to function that transforms dx</li> |
---|
126 | </ul> |
---|
127 | </td> |
---|
128 | </tr> |
---|
129 | </tbody> |
---|
130 | </table> |
---|
131 | </dd></dl> |
---|
132 | |
---|
133 | <dl class="method"> |
---|
134 | <dt id="sans.guiframe.dataFitting.Data1D.View.setTransformY"> |
---|
135 | <tt class="descname">setTransformY</tt><big>(</big><em>funcy</em>, <em>funcdy</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.setTransformY" title="Permalink to this definition">¶</a></dt> |
---|
136 | <dd><p>Receive pointers to function that transform y and dy |
---|
137 | and set corresponding View pointers</p> |
---|
138 | <table class="docutils field-list" frame="void" rules="none"> |
---|
139 | <col class="field-name" /> |
---|
140 | <col class="field-body" /> |
---|
141 | <tbody valign="top"> |
---|
142 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
143 | <li><strong>transx</strong> – pointer to function that transforms y</li> |
---|
144 | <li><strong>transdx</strong> – pointer to function that transforms dy</li> |
---|
145 | </ul> |
---|
146 | </td> |
---|
147 | </tr> |
---|
148 | </tbody> |
---|
149 | </table> |
---|
150 | </dd></dl> |
---|
151 | |
---|
152 | <dl class="method"> |
---|
153 | <dt id="sans.guiframe.dataFitting.Data1D.View.transform"> |
---|
154 | <tt class="descname">transform</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.View.transform" title="Permalink to this definition">¶</a></dt> |
---|
155 | <dd><dl class="docutils"> |
---|
156 | <dt>Transforms the x,y,dx and dy vectors and stores</dt> |
---|
157 | <dd>the output in View parameters</dd> |
---|
158 | </dl> |
---|
159 | <table class="docutils field-list" frame="void" rules="none"> |
---|
160 | <col class="field-name" /> |
---|
161 | <col class="field-body" /> |
---|
162 | <tbody valign="top"> |
---|
163 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
164 | <li><strong>x</strong> – array of x values</li> |
---|
165 | <li><strong>y</strong> – array of y values</li> |
---|
166 | <li><strong>dx</strong> – array of errors values on x</li> |
---|
167 | <li><strong>dy</strong> – array of error values on y</li> |
---|
168 | </ul> |
---|
169 | </td> |
---|
170 | </tr> |
---|
171 | </tbody> |
---|
172 | </table> |
---|
173 | </dd></dl> |
---|
174 | |
---|
175 | </dd></dl> |
---|
176 | |
---|
177 | <dl class="method"> |
---|
178 | <dt id="sans.guiframe.dataFitting.Data1D.add_notes"> |
---|
179 | <tt class="descclassname">Data1D.</tt><tt class="descname">add_notes</tt><big>(</big><em>message=''</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.add_notes" title="Permalink to this definition">¶</a></dt> |
---|
180 | <dd><p>Add notes to datainfo</p> |
---|
181 | </dd></dl> |
---|
182 | |
---|
183 | <dl class="method"> |
---|
184 | <dt id="sans.guiframe.dataFitting.Data1D.append_empty_process"> |
---|
185 | <tt class="descclassname">Data1D.</tt><tt class="descname">append_empty_process</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.append_empty_process" title="Permalink to this definition">¶</a></dt> |
---|
186 | <dd></dd></dl> |
---|
187 | |
---|
188 | <dl class="method"> |
---|
189 | <dt id="sans.guiframe.dataFitting.Data1D.changed"> |
---|
190 | <tt class="descclassname">Data1D.</tt><tt class="descname">changed</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.changed" title="Permalink to this definition">¶</a></dt> |
---|
191 | <dd></dd></dl> |
---|
192 | |
---|
193 | <dl class="method"> |
---|
194 | <dt id="sans.guiframe.dataFitting.Data1D.check_data_PlottableX"> |
---|
195 | <tt class="descclassname">Data1D.</tt><tt class="descname">check_data_PlottableX</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.check_data_PlottableX" title="Permalink to this definition">¶</a></dt> |
---|
196 | <dd><p>Since no transformation is made for log10(x), check that |
---|
197 | no negative values is plot in log scale</p> |
---|
198 | </dd></dl> |
---|
199 | |
---|
200 | <dl class="method"> |
---|
201 | <dt id="sans.guiframe.dataFitting.Data1D.check_data_PlottableY"> |
---|
202 | <tt class="descclassname">Data1D.</tt><tt class="descname">check_data_PlottableY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.check_data_PlottableY" title="Permalink to this definition">¶</a></dt> |
---|
203 | <dd><p>Since no transformation is made for log10(y), check that |
---|
204 | no negative values is plot in log scale</p> |
---|
205 | </dd></dl> |
---|
206 | |
---|
207 | <dl class="method"> |
---|
208 | <dt id="sans.guiframe.dataFitting.Data1D.clone_without_data"> |
---|
209 | <tt class="descclassname">Data1D.</tt><tt class="descname">clone_without_data</tt><big>(</big><em>length=0</em>, <em>clone=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.clone_without_data" title="Permalink to this definition">¶</a></dt> |
---|
210 | <dd><p>Clone the current object, without copying the data (which |
---|
211 | will be filled out by a subsequent operation). |
---|
212 | The data arrays will be initialized to zero.</p> |
---|
213 | <table class="docutils field-list" frame="void" rules="none"> |
---|
214 | <col class="field-name" /> |
---|
215 | <col class="field-body" /> |
---|
216 | <tbody valign="top"> |
---|
217 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
218 | <li><strong>length</strong> – length of the data array to be initialized</li> |
---|
219 | <li><strong>clone</strong> – if provided, the data will be copied to clone</li> |
---|
220 | </ul> |
---|
221 | </td> |
---|
222 | </tr> |
---|
223 | </tbody> |
---|
224 | </table> |
---|
225 | </dd></dl> |
---|
226 | |
---|
227 | <dl class="method"> |
---|
228 | <dt id="sans.guiframe.dataFitting.Data1D.colors"> |
---|
229 | <tt class="descclassname">Data1D.</tt><tt class="descname">colors</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.colors" title="Permalink to this definition">¶</a></dt> |
---|
230 | <dd><p>Return the number of colors need to render the object</p> |
---|
231 | </dd></dl> |
---|
232 | |
---|
233 | <dl class="method"> |
---|
234 | <dt id="sans.guiframe.dataFitting.Data1D.copy_from_datainfo"> |
---|
235 | <tt class="descclassname">Data1D.</tt><tt class="descname">copy_from_datainfo</tt><big>(</big><em>data1d</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.copy_from_datainfo" title="Permalink to this definition">¶</a></dt> |
---|
236 | <dd><p>copy values of Data1D of type DataLaoder.Data_info</p> |
---|
237 | </dd></dl> |
---|
238 | |
---|
239 | <dl class="method"> |
---|
240 | <dt id="sans.guiframe.dataFitting.Data1D.get_xaxis"> |
---|
241 | <tt class="descclassname">Data1D.</tt><tt class="descname">get_xaxis</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.get_xaxis" title="Permalink to this definition">¶</a></dt> |
---|
242 | <dd><p>Return the units and name of x-axis</p> |
---|
243 | </dd></dl> |
---|
244 | |
---|
245 | <dl class="method"> |
---|
246 | <dt id="sans.guiframe.dataFitting.Data1D.get_yaxis"> |
---|
247 | <tt class="descclassname">Data1D.</tt><tt class="descname">get_yaxis</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.get_yaxis" title="Permalink to this definition">¶</a></dt> |
---|
248 | <dd><p>Return the units and name of y- axis</p> |
---|
249 | </dd></dl> |
---|
250 | |
---|
251 | <dl class="method"> |
---|
252 | <dt id="sans.guiframe.dataFitting.Data1D.is_empty"> |
---|
253 | <tt class="descclassname">Data1D.</tt><tt class="descname">is_empty</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.is_empty" title="Permalink to this definition">¶</a></dt> |
---|
254 | <dd><p>Returns True if there is no data stored in the plottable</p> |
---|
255 | </dd></dl> |
---|
256 | |
---|
257 | <dl class="method"> |
---|
258 | <dt id="sans.guiframe.dataFitting.Data1D.is_slit_smeared"> |
---|
259 | <tt class="descclassname">Data1D.</tt><tt class="descname">is_slit_smeared</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.is_slit_smeared" title="Permalink to this definition">¶</a></dt> |
---|
260 | <dd><p>Check whether the data has slit smearing information</p> |
---|
261 | <table class="docutils field-list" frame="void" rules="none"> |
---|
262 | <col class="field-name" /> |
---|
263 | <col class="field-body" /> |
---|
264 | <tbody valign="top"> |
---|
265 | <tr class="field"><th class="field-name">Returns:</th><td class="field-body">True is slit smearing info is present, False otherwise</td> |
---|
266 | </tr> |
---|
267 | </tbody> |
---|
268 | </table> |
---|
269 | </dd></dl> |
---|
270 | |
---|
271 | <dl class="classmethod"> |
---|
272 | <dt id="sans.guiframe.dataFitting.Data1D.labels"> |
---|
273 | <em class="property">classmethod </em><tt class="descclassname">Data1D.</tt><tt class="descname">labels</tt><big>(</big><em>collection</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.labels" title="Permalink to this definition">¶</a></dt> |
---|
274 | <dd><p>Build a label mostly unique within a collection</p> |
---|
275 | </dd></dl> |
---|
276 | |
---|
277 | <dl class="method"> |
---|
278 | <dt id="sans.guiframe.dataFitting.Data1D.onFitRange"> |
---|
279 | <tt class="descclassname">Data1D.</tt><tt class="descname">onFitRange</tt><big>(</big><em>xmin=None</em>, <em>xmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.onFitRange" title="Permalink to this definition">¶</a></dt> |
---|
280 | <dd><p>It limits View data range to plot from min to max</p> |
---|
281 | <table class="docutils field-list" frame="void" rules="none"> |
---|
282 | <col class="field-name" /> |
---|
283 | <col class="field-body" /> |
---|
284 | <tbody valign="top"> |
---|
285 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
286 | <li><strong>xmin</strong> – the minimum value of x to plot.</li> |
---|
287 | <li><strong>xmax</strong> – the maximum value of x to plot</li> |
---|
288 | </ul> |
---|
289 | </td> |
---|
290 | </tr> |
---|
291 | </tbody> |
---|
292 | </table> |
---|
293 | </dd></dl> |
---|
294 | |
---|
295 | <dl class="method"> |
---|
296 | <dt id="sans.guiframe.dataFitting.Data1D.onReset"> |
---|
297 | <tt class="descclassname">Data1D.</tt><tt class="descname">onReset</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.onReset" title="Permalink to this definition">¶</a></dt> |
---|
298 | <dd><p>Reset x, y, dx, dy view with its parameters</p> |
---|
299 | </dd></dl> |
---|
300 | |
---|
301 | <dl class="method"> |
---|
302 | <dt id="sans.guiframe.dataFitting.Data1D.render"> |
---|
303 | <tt class="descclassname">Data1D.</tt><tt class="descname">render</tt><big>(</big><em>plot</em>, <em>**kw</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.render" title="Permalink to this definition">¶</a></dt> |
---|
304 | <dd><p>Renders the plottable on the graph</p> |
---|
305 | </dd></dl> |
---|
306 | |
---|
307 | <dl class="method"> |
---|
308 | <dt id="sans.guiframe.dataFitting.Data1D.reset_view"> |
---|
309 | <tt class="descclassname">Data1D.</tt><tt class="descname">reset_view</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.reset_view" title="Permalink to this definition">¶</a></dt> |
---|
310 | <dd><p>Reload view with new value to plot</p> |
---|
311 | </dd></dl> |
---|
312 | |
---|
313 | <dl class="method"> |
---|
314 | <dt id="sans.guiframe.dataFitting.Data1D.returnValuesOfView"> |
---|
315 | <tt class="descclassname">Data1D.</tt><tt class="descname">returnValuesOfView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.returnValuesOfView" title="Permalink to this definition">¶</a></dt> |
---|
316 | <dd><p>Return View parameters and it is used by Fit Dialog</p> |
---|
317 | </dd></dl> |
---|
318 | |
---|
319 | <dl class="method"> |
---|
320 | <dt id="sans.guiframe.dataFitting.Data1D.setLabel"> |
---|
321 | <tt class="descclassname">Data1D.</tt><tt class="descname">setLabel</tt><big>(</big><em>labelx</em>, <em>labely</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.setLabel" title="Permalink to this definition">¶</a></dt> |
---|
322 | <dd><p>It takes a label of the x and y transformation and set View parameters</p> |
---|
323 | <table class="docutils field-list" frame="void" rules="none"> |
---|
324 | <col class="field-name" /> |
---|
325 | <col class="field-body" /> |
---|
326 | <tbody valign="top"> |
---|
327 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
328 | <li><strong>transx</strong> – The label of x transformation is sent by Properties Dialog</li> |
---|
329 | <li><strong>transy</strong> – The label of y transformation is sent Properties Dialog</li> |
---|
330 | </ul> |
---|
331 | </td> |
---|
332 | </tr> |
---|
333 | </tbody> |
---|
334 | </table> |
---|
335 | </dd></dl> |
---|
336 | |
---|
337 | <dl class="method"> |
---|
338 | <dt id="sans.guiframe.dataFitting.Data1D.set_View"> |
---|
339 | <tt class="descclassname">Data1D.</tt><tt class="descname">set_View</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.set_View" title="Permalink to this definition">¶</a></dt> |
---|
340 | <dd><p>Load View</p> |
---|
341 | </dd></dl> |
---|
342 | |
---|
343 | <dl class="method"> |
---|
344 | <dt id="sans.guiframe.dataFitting.Data1D.set_data"> |
---|
345 | <tt class="descclassname">Data1D.</tt><tt class="descname">set_data</tt><big>(</big><em>x</em>, <em>y</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.set_data" title="Permalink to this definition">¶</a></dt> |
---|
346 | <dd></dd></dl> |
---|
347 | |
---|
348 | <dl class="method"> |
---|
349 | <dt id="sans.guiframe.dataFitting.Data1D.transformView"> |
---|
350 | <tt class="descclassname">Data1D.</tt><tt class="descname">transformView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.transformView" title="Permalink to this definition">¶</a></dt> |
---|
351 | <dd><p>It transforms x, y before displaying</p> |
---|
352 | </dd></dl> |
---|
353 | |
---|
354 | <dl class="method"> |
---|
355 | <dt id="sans.guiframe.dataFitting.Data1D.transformX"> |
---|
356 | <tt class="descclassname">Data1D.</tt><tt class="descname">transformX</tt><big>(</big><em>transx</em>, <em>transdx</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.transformX" title="Permalink to this definition">¶</a></dt> |
---|
357 | <dd><p>Receive pointers to function that transform x and dx |
---|
358 | and set corresponding View pointers</p> |
---|
359 | <table class="docutils field-list" frame="void" rules="none"> |
---|
360 | <col class="field-name" /> |
---|
361 | <col class="field-body" /> |
---|
362 | <tbody valign="top"> |
---|
363 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
364 | <li><strong>transx</strong> – pointer to function that transforms x</li> |
---|
365 | <li><strong>transdx</strong> – pointer to function that transforms dx</li> |
---|
366 | </ul> |
---|
367 | </td> |
---|
368 | </tr> |
---|
369 | </tbody> |
---|
370 | </table> |
---|
371 | </dd></dl> |
---|
372 | |
---|
373 | <dl class="method"> |
---|
374 | <dt id="sans.guiframe.dataFitting.Data1D.transformY"> |
---|
375 | <tt class="descclassname">Data1D.</tt><tt class="descname">transformY</tt><big>(</big><em>transy</em>, <em>transdy</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.transformY" title="Permalink to this definition">¶</a></dt> |
---|
376 | <dd><p>Receive pointers to function that transform y and dy |
---|
377 | and set corresponding View pointers</p> |
---|
378 | <table class="docutils field-list" frame="void" rules="none"> |
---|
379 | <col class="field-name" /> |
---|
380 | <col class="field-body" /> |
---|
381 | <tbody valign="top"> |
---|
382 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
383 | <li><strong>transy</strong> – pointer to function that transforms y</li> |
---|
384 | <li><strong>transdy</strong> – pointer to function that transforms dy</li> |
---|
385 | </ul> |
---|
386 | </td> |
---|
387 | </tr> |
---|
388 | </tbody> |
---|
389 | </table> |
---|
390 | </dd></dl> |
---|
391 | |
---|
392 | <dl class="method"> |
---|
393 | <dt id="sans.guiframe.dataFitting.Data1D.xaxis"> |
---|
394 | <tt class="descclassname">Data1D.</tt><tt class="descname">xaxis</tt><big>(</big><em>name</em>, <em>units</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.xaxis" title="Permalink to this definition">¶</a></dt> |
---|
395 | <dd><p>Set the name and unit of x_axis</p> |
---|
396 | <table class="docutils field-list" frame="void" rules="none"> |
---|
397 | <col class="field-name" /> |
---|
398 | <col class="field-body" /> |
---|
399 | <tbody valign="top"> |
---|
400 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
401 | <li><strong>name</strong> – the name of x-axis</li> |
---|
402 | <li><strong>units</strong> – the units of x_axis</li> |
---|
403 | </ul> |
---|
404 | </td> |
---|
405 | </tr> |
---|
406 | </tbody> |
---|
407 | </table> |
---|
408 | </dd></dl> |
---|
409 | |
---|
410 | <dl class="method"> |
---|
411 | <dt id="sans.guiframe.dataFitting.Data1D.yaxis"> |
---|
412 | <tt class="descclassname">Data1D.</tt><tt class="descname">yaxis</tt><big>(</big><em>name</em>, <em>units</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data1D.yaxis" title="Permalink to this definition">¶</a></dt> |
---|
413 | <dd><p>Set the name and unit of y_axis</p> |
---|
414 | <table class="docutils field-list" frame="void" rules="none"> |
---|
415 | <col class="field-name" /> |
---|
416 | <col class="field-body" /> |
---|
417 | <tbody valign="top"> |
---|
418 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
419 | <li><strong>name</strong> – the name of y-axis</li> |
---|
420 | <li><strong>units</strong> – the units of y_axis</li> |
---|
421 | </ul> |
---|
422 | </td> |
---|
423 | </tr> |
---|
424 | </tbody> |
---|
425 | </table> |
---|
426 | </dd></dl> |
---|
427 | |
---|
428 | </dd></dl> |
---|
429 | |
---|
430 | <dl class="class"> |
---|
431 | <dt id="sans.guiframe.dataFitting.Data2D"> |
---|
432 | <em class="property">class </em><tt class="descclassname">sans.guiframe.dataFitting.</tt><tt class="descname">Data2D</tt><big>(</big><em>image=None</em>, <em>err_image=None</em>, <em>xmin=None</em>, <em>xmax=None</em>, <em>ymin=None</em>, <em>ymax=None</em>, <em>zmin=None</em>, <em>zmax=None</em>, <em>qx_data=None</em>, <em>qy_data=None</em>, <em>q_data=None</em>, <em>mask=None</em>, <em>dqx_data=None</em>, <em>dqy_data=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D" title="Permalink to this definition">¶</a></dt> |
---|
433 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">danse.common.plottools.plottables.Data2D</span></tt>, <tt class="xref py py-class docutils literal"><span class="pre">sans.dataloader.data_info.Data2D</span></tt></p> |
---|
434 | <dl class="class"> |
---|
435 | <dt id="sans.guiframe.dataFitting.Data2D.View"> |
---|
436 | <em class="property">class </em><tt class="descname">View</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View" title="Permalink to this definition">¶</a></dt> |
---|
437 | <dd><p>Representation of the data that might include a transformation</p> |
---|
438 | <dl class="method"> |
---|
439 | <dt id="sans.guiframe.dataFitting.Data2D.View.check_data_logX"> |
---|
440 | <tt class="descname">check_data_logX</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.check_data_logX" title="Permalink to this definition">¶</a></dt> |
---|
441 | <dd><p>Remove negative value in x vector to avoid plotting negative |
---|
442 | value of Log10</p> |
---|
443 | </dd></dl> |
---|
444 | |
---|
445 | <dl class="method"> |
---|
446 | <dt id="sans.guiframe.dataFitting.Data2D.View.check_data_logY"> |
---|
447 | <tt class="descname">check_data_logY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.check_data_logY" title="Permalink to this definition">¶</a></dt> |
---|
448 | <dd><p>Remove negative value in y vector |
---|
449 | to avoid plotting negative value of Log10</p> |
---|
450 | </dd></dl> |
---|
451 | |
---|
452 | <dl class="method"> |
---|
453 | <dt id="sans.guiframe.dataFitting.Data2D.View.onFitRangeView"> |
---|
454 | <tt class="descname">onFitRangeView</tt><big>(</big><em>xmin=None</em>, <em>xmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.onFitRangeView" title="Permalink to this definition">¶</a></dt> |
---|
455 | <dd><p>It limits View data range to plot from min to max</p> |
---|
456 | <table class="docutils field-list" frame="void" rules="none"> |
---|
457 | <col class="field-name" /> |
---|
458 | <col class="field-body" /> |
---|
459 | <tbody valign="top"> |
---|
460 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
461 | <li><strong>xmin</strong> – the minimum value of x to plot.</li> |
---|
462 | <li><strong>xmax</strong> – the maximum value of x to plot</li> |
---|
463 | </ul> |
---|
464 | </td> |
---|
465 | </tr> |
---|
466 | </tbody> |
---|
467 | </table> |
---|
468 | </dd></dl> |
---|
469 | |
---|
470 | <dl class="method"> |
---|
471 | <dt id="sans.guiframe.dataFitting.Data2D.View.onResetView"> |
---|
472 | <tt class="descname">onResetView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.onResetView" title="Permalink to this definition">¶</a></dt> |
---|
473 | <dd><p>Reset x,y,dx and y in their full range and in the initial scale |
---|
474 | in case their previous range has changed</p> |
---|
475 | </dd></dl> |
---|
476 | |
---|
477 | <dl class="method"> |
---|
478 | <dt id="sans.guiframe.dataFitting.Data2D.View.returnXview"> |
---|
479 | <tt class="descname">returnXview</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.returnXview" title="Permalink to this definition">¶</a></dt> |
---|
480 | <dd><p>Return View x,y,dx,dy</p> |
---|
481 | </dd></dl> |
---|
482 | |
---|
483 | <dl class="method"> |
---|
484 | <dt id="sans.guiframe.dataFitting.Data2D.View.setTransformX"> |
---|
485 | <tt class="descname">setTransformX</tt><big>(</big><em>funcx</em>, <em>funcdx</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.setTransformX" title="Permalink to this definition">¶</a></dt> |
---|
486 | <dd><p>Receive pointers to function that transform x and dx |
---|
487 | and set corresponding View pointers</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"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
493 | <li><strong>transx</strong> – pointer to function that transforms x</li> |
---|
494 | <li><strong>transdx</strong> – pointer to function that transforms dx</li> |
---|
495 | </ul> |
---|
496 | </td> |
---|
497 | </tr> |
---|
498 | </tbody> |
---|
499 | </table> |
---|
500 | </dd></dl> |
---|
501 | |
---|
502 | <dl class="method"> |
---|
503 | <dt id="sans.guiframe.dataFitting.Data2D.View.setTransformY"> |
---|
504 | <tt class="descname">setTransformY</tt><big>(</big><em>funcy</em>, <em>funcdy</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.setTransformY" title="Permalink to this definition">¶</a></dt> |
---|
505 | <dd><p>Receive pointers to function that transform y and dy |
---|
506 | and set corresponding View pointers</p> |
---|
507 | <table class="docutils field-list" frame="void" rules="none"> |
---|
508 | <col class="field-name" /> |
---|
509 | <col class="field-body" /> |
---|
510 | <tbody valign="top"> |
---|
511 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
512 | <li><strong>transx</strong> – pointer to function that transforms y</li> |
---|
513 | <li><strong>transdx</strong> – pointer to function that transforms dy</li> |
---|
514 | </ul> |
---|
515 | </td> |
---|
516 | </tr> |
---|
517 | </tbody> |
---|
518 | </table> |
---|
519 | </dd></dl> |
---|
520 | |
---|
521 | <dl class="method"> |
---|
522 | <dt id="sans.guiframe.dataFitting.Data2D.View.transform"> |
---|
523 | <tt class="descname">transform</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.View.transform" title="Permalink to this definition">¶</a></dt> |
---|
524 | <dd><dl class="docutils"> |
---|
525 | <dt>Transforms the x,y,dx and dy vectors and stores</dt> |
---|
526 | <dd>the output in View parameters</dd> |
---|
527 | </dl> |
---|
528 | <table class="docutils field-list" frame="void" rules="none"> |
---|
529 | <col class="field-name" /> |
---|
530 | <col class="field-body" /> |
---|
531 | <tbody valign="top"> |
---|
532 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
533 | <li><strong>x</strong> – array of x values</li> |
---|
534 | <li><strong>y</strong> – array of y values</li> |
---|
535 | <li><strong>dx</strong> – array of errors values on x</li> |
---|
536 | <li><strong>dy</strong> – array of error values on y</li> |
---|
537 | </ul> |
---|
538 | </td> |
---|
539 | </tr> |
---|
540 | </tbody> |
---|
541 | </table> |
---|
542 | </dd></dl> |
---|
543 | |
---|
544 | </dd></dl> |
---|
545 | |
---|
546 | <dl class="method"> |
---|
547 | <dt id="sans.guiframe.dataFitting.Data2D.add_notes"> |
---|
548 | <tt class="descclassname">Data2D.</tt><tt class="descname">add_notes</tt><big>(</big><em>message=''</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.add_notes" title="Permalink to this definition">¶</a></dt> |
---|
549 | <dd><p>Add notes to datainfo</p> |
---|
550 | </dd></dl> |
---|
551 | |
---|
552 | <dl class="method"> |
---|
553 | <dt id="sans.guiframe.dataFitting.Data2D.append_empty_process"> |
---|
554 | <tt class="descclassname">Data2D.</tt><tt class="descname">append_empty_process</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.append_empty_process" title="Permalink to this definition">¶</a></dt> |
---|
555 | <dd></dd></dl> |
---|
556 | |
---|
557 | <dl class="method"> |
---|
558 | <dt id="sans.guiframe.dataFitting.Data2D.changed"> |
---|
559 | <tt class="descclassname">Data2D.</tt><tt class="descname">changed</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.changed" title="Permalink to this definition">¶</a></dt> |
---|
560 | <dd></dd></dl> |
---|
561 | |
---|
562 | <dl class="method"> |
---|
563 | <dt id="sans.guiframe.dataFitting.Data2D.check_data_PlottableX"> |
---|
564 | <tt class="descclassname">Data2D.</tt><tt class="descname">check_data_PlottableX</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.check_data_PlottableX" title="Permalink to this definition">¶</a></dt> |
---|
565 | <dd><p>Since no transformation is made for log10(x), check that |
---|
566 | no negative values is plot in log scale</p> |
---|
567 | </dd></dl> |
---|
568 | |
---|
569 | <dl class="method"> |
---|
570 | <dt id="sans.guiframe.dataFitting.Data2D.check_data_PlottableY"> |
---|
571 | <tt class="descclassname">Data2D.</tt><tt class="descname">check_data_PlottableY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.check_data_PlottableY" title="Permalink to this definition">¶</a></dt> |
---|
572 | <dd><p>Since no transformation is made for log10(y), check that |
---|
573 | no negative values is plot in log scale</p> |
---|
574 | </dd></dl> |
---|
575 | |
---|
576 | <dl class="method"> |
---|
577 | <dt id="sans.guiframe.dataFitting.Data2D.clone_without_data"> |
---|
578 | <tt class="descclassname">Data2D.</tt><tt class="descname">clone_without_data</tt><big>(</big><em>length=0</em>, <em>clone=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.clone_without_data" title="Permalink to this definition">¶</a></dt> |
---|
579 | <dd><p>Clone the current object, without copying the data (which |
---|
580 | will be filled out by a subsequent operation). |
---|
581 | The data arrays will be initialized to zero.</p> |
---|
582 | <table class="docutils field-list" frame="void" rules="none"> |
---|
583 | <col class="field-name" /> |
---|
584 | <col class="field-body" /> |
---|
585 | <tbody valign="top"> |
---|
586 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
587 | <li><strong>length</strong> – length of the data array to be initialized</li> |
---|
588 | <li><strong>clone</strong> – if provided, the data will be copied to clone</li> |
---|
589 | </ul> |
---|
590 | </td> |
---|
591 | </tr> |
---|
592 | </tbody> |
---|
593 | </table> |
---|
594 | </dd></dl> |
---|
595 | |
---|
596 | <dl class="method"> |
---|
597 | <dt id="sans.guiframe.dataFitting.Data2D.colors"> |
---|
598 | <tt class="descclassname">Data2D.</tt><tt class="descname">colors</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.colors" title="Permalink to this definition">¶</a></dt> |
---|
599 | <dd><p>Return the number of colors need to render the object</p> |
---|
600 | </dd></dl> |
---|
601 | |
---|
602 | <dl class="method"> |
---|
603 | <dt id="sans.guiframe.dataFitting.Data2D.copy_from_datainfo"> |
---|
604 | <tt class="descclassname">Data2D.</tt><tt class="descname">copy_from_datainfo</tt><big>(</big><em>data2d</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.copy_from_datainfo" title="Permalink to this definition">¶</a></dt> |
---|
605 | <dd><p>copy value of Data2D of type DataLoader.data_info</p> |
---|
606 | </dd></dl> |
---|
607 | |
---|
608 | <dl class="method"> |
---|
609 | <dt id="sans.guiframe.dataFitting.Data2D.get_xaxis"> |
---|
610 | <tt class="descclassname">Data2D.</tt><tt class="descname">get_xaxis</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.get_xaxis" title="Permalink to this definition">¶</a></dt> |
---|
611 | <dd><p>Return the units and name of x-axis</p> |
---|
612 | </dd></dl> |
---|
613 | |
---|
614 | <dl class="method"> |
---|
615 | <dt id="sans.guiframe.dataFitting.Data2D.get_yaxis"> |
---|
616 | <tt class="descclassname">Data2D.</tt><tt class="descname">get_yaxis</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.get_yaxis" title="Permalink to this definition">¶</a></dt> |
---|
617 | <dd><p>Return the units and name of y- axis</p> |
---|
618 | </dd></dl> |
---|
619 | |
---|
620 | <dl class="method"> |
---|
621 | <dt id="sans.guiframe.dataFitting.Data2D.is_empty"> |
---|
622 | <tt class="descclassname">Data2D.</tt><tt class="descname">is_empty</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.is_empty" title="Permalink to this definition">¶</a></dt> |
---|
623 | <dd><p>Returns True if there is no data stored in the plottable</p> |
---|
624 | </dd></dl> |
---|
625 | |
---|
626 | <dl class="classmethod"> |
---|
627 | <dt id="sans.guiframe.dataFitting.Data2D.labels"> |
---|
628 | <em class="property">classmethod </em><tt class="descclassname">Data2D.</tt><tt class="descname">labels</tt><big>(</big><em>collection</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.labels" title="Permalink to this definition">¶</a></dt> |
---|
629 | <dd><p>Build a label mostly unique within a collection</p> |
---|
630 | </dd></dl> |
---|
631 | |
---|
632 | <dl class="method"> |
---|
633 | <dt id="sans.guiframe.dataFitting.Data2D.onFitRange"> |
---|
634 | <tt class="descclassname">Data2D.</tt><tt class="descname">onFitRange</tt><big>(</big><em>xmin=None</em>, <em>xmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.onFitRange" title="Permalink to this definition">¶</a></dt> |
---|
635 | <dd><p>It limits View data range to plot from min to max</p> |
---|
636 | <table class="docutils field-list" frame="void" rules="none"> |
---|
637 | <col class="field-name" /> |
---|
638 | <col class="field-body" /> |
---|
639 | <tbody valign="top"> |
---|
640 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
641 | <li><strong>xmin</strong> – the minimum value of x to plot.</li> |
---|
642 | <li><strong>xmax</strong> – the maximum value of x to plot</li> |
---|
643 | </ul> |
---|
644 | </td> |
---|
645 | </tr> |
---|
646 | </tbody> |
---|
647 | </table> |
---|
648 | </dd></dl> |
---|
649 | |
---|
650 | <dl class="method"> |
---|
651 | <dt id="sans.guiframe.dataFitting.Data2D.onReset"> |
---|
652 | <tt class="descclassname">Data2D.</tt><tt class="descname">onReset</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.onReset" title="Permalink to this definition">¶</a></dt> |
---|
653 | <dd><p>Reset x, y, dx, dy view with its parameters</p> |
---|
654 | </dd></dl> |
---|
655 | |
---|
656 | <dl class="method"> |
---|
657 | <dt id="sans.guiframe.dataFitting.Data2D.render"> |
---|
658 | <tt class="descclassname">Data2D.</tt><tt class="descname">render</tt><big>(</big><em>plot</em>, <em>**kw</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.render" title="Permalink to this definition">¶</a></dt> |
---|
659 | <dd><p>Renders the plottable on the graph</p> |
---|
660 | </dd></dl> |
---|
661 | |
---|
662 | <dl class="method"> |
---|
663 | <dt id="sans.guiframe.dataFitting.Data2D.reset_view"> |
---|
664 | <tt class="descclassname">Data2D.</tt><tt class="descname">reset_view</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.reset_view" title="Permalink to this definition">¶</a></dt> |
---|
665 | <dd><p>Reload view with new value to plot</p> |
---|
666 | </dd></dl> |
---|
667 | |
---|
668 | <dl class="method"> |
---|
669 | <dt id="sans.guiframe.dataFitting.Data2D.returnValuesOfView"> |
---|
670 | <tt class="descclassname">Data2D.</tt><tt class="descname">returnValuesOfView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.returnValuesOfView" title="Permalink to this definition">¶</a></dt> |
---|
671 | <dd><p>Return View parameters and it is used by Fit Dialog</p> |
---|
672 | </dd></dl> |
---|
673 | |
---|
674 | <dl class="method"> |
---|
675 | <dt id="sans.guiframe.dataFitting.Data2D.setLabel"> |
---|
676 | <tt class="descclassname">Data2D.</tt><tt class="descname">setLabel</tt><big>(</big><em>labelx</em>, <em>labely</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.setLabel" title="Permalink to this definition">¶</a></dt> |
---|
677 | <dd><p>It takes a label of the x and y transformation and set View parameters</p> |
---|
678 | <table class="docutils field-list" frame="void" rules="none"> |
---|
679 | <col class="field-name" /> |
---|
680 | <col class="field-body" /> |
---|
681 | <tbody valign="top"> |
---|
682 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
683 | <li><strong>transx</strong> – The label of x transformation is sent by Properties Dialog</li> |
---|
684 | <li><strong>transy</strong> – The label of y transformation is sent Properties Dialog</li> |
---|
685 | </ul> |
---|
686 | </td> |
---|
687 | </tr> |
---|
688 | </tbody> |
---|
689 | </table> |
---|
690 | </dd></dl> |
---|
691 | |
---|
692 | <dl class="method"> |
---|
693 | <dt id="sans.guiframe.dataFitting.Data2D.setValues"> |
---|
694 | <tt class="descclassname">Data2D.</tt><tt class="descname">setValues</tt><big>(</big><em>datainfo=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.setValues" title="Permalink to this definition">¶</a></dt> |
---|
695 | <dd><p>Use datainfo object to initialize data2D</p> |
---|
696 | <table class="docutils field-list" frame="void" rules="none"> |
---|
697 | <col class="field-name" /> |
---|
698 | <col class="field-body" /> |
---|
699 | <tbody valign="top"> |
---|
700 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>datainfo</strong> – object</td> |
---|
701 | </tr> |
---|
702 | </tbody> |
---|
703 | </table> |
---|
704 | </dd></dl> |
---|
705 | |
---|
706 | <dl class="method"> |
---|
707 | <dt id="sans.guiframe.dataFitting.Data2D.set_View"> |
---|
708 | <tt class="descclassname">Data2D.</tt><tt class="descname">set_View</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.set_View" title="Permalink to this definition">¶</a></dt> |
---|
709 | <dd><p>Load View</p> |
---|
710 | </dd></dl> |
---|
711 | |
---|
712 | <dl class="method"> |
---|
713 | <dt id="sans.guiframe.dataFitting.Data2D.set_data"> |
---|
714 | <tt class="descclassname">Data2D.</tt><tt class="descname">set_data</tt><big>(</big><em>x</em>, <em>y</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.set_data" title="Permalink to this definition">¶</a></dt> |
---|
715 | <dd></dd></dl> |
---|
716 | |
---|
717 | <dl class="method"> |
---|
718 | <dt id="sans.guiframe.dataFitting.Data2D.set_zrange"> |
---|
719 | <tt class="descclassname">Data2D.</tt><tt class="descname">set_zrange</tt><big>(</big><em>zmin=None</em>, <em>zmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.set_zrange" title="Permalink to this definition">¶</a></dt> |
---|
720 | <dd></dd></dl> |
---|
721 | |
---|
722 | <dl class="method"> |
---|
723 | <dt id="sans.guiframe.dataFitting.Data2D.transformView"> |
---|
724 | <tt class="descclassname">Data2D.</tt><tt class="descname">transformView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.transformView" title="Permalink to this definition">¶</a></dt> |
---|
725 | <dd><p>It transforms x, y before displaying</p> |
---|
726 | </dd></dl> |
---|
727 | |
---|
728 | <dl class="method"> |
---|
729 | <dt id="sans.guiframe.dataFitting.Data2D.transformX"> |
---|
730 | <tt class="descclassname">Data2D.</tt><tt class="descname">transformX</tt><big>(</big><em>transx</em>, <em>transdx</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.transformX" title="Permalink to this definition">¶</a></dt> |
---|
731 | <dd><p>Receive pointers to function that transform x and dx |
---|
732 | and set corresponding View pointers</p> |
---|
733 | <table class="docutils field-list" frame="void" rules="none"> |
---|
734 | <col class="field-name" /> |
---|
735 | <col class="field-body" /> |
---|
736 | <tbody valign="top"> |
---|
737 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
738 | <li><strong>transx</strong> – pointer to function that transforms x</li> |
---|
739 | <li><strong>transdx</strong> – pointer to function that transforms dx</li> |
---|
740 | </ul> |
---|
741 | </td> |
---|
742 | </tr> |
---|
743 | </tbody> |
---|
744 | </table> |
---|
745 | </dd></dl> |
---|
746 | |
---|
747 | <dl class="method"> |
---|
748 | <dt id="sans.guiframe.dataFitting.Data2D.transformY"> |
---|
749 | <tt class="descclassname">Data2D.</tt><tt class="descname">transformY</tt><big>(</big><em>transy</em>, <em>transdy</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.transformY" title="Permalink to this definition">¶</a></dt> |
---|
750 | <dd><p>Receive pointers to function that transform y and dy |
---|
751 | and set corresponding View pointers</p> |
---|
752 | <table class="docutils field-list" frame="void" rules="none"> |
---|
753 | <col class="field-name" /> |
---|
754 | <col class="field-body" /> |
---|
755 | <tbody valign="top"> |
---|
756 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
757 | <li><strong>transy</strong> – pointer to function that transforms y</li> |
---|
758 | <li><strong>transdy</strong> – pointer to function that transforms dy</li> |
---|
759 | </ul> |
---|
760 | </td> |
---|
761 | </tr> |
---|
762 | </tbody> |
---|
763 | </table> |
---|
764 | </dd></dl> |
---|
765 | |
---|
766 | <dl class="method"> |
---|
767 | <dt id="sans.guiframe.dataFitting.Data2D.xaxis"> |
---|
768 | <tt class="descclassname">Data2D.</tt><tt class="descname">xaxis</tt><big>(</big><em>label</em>, <em>unit</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.xaxis" title="Permalink to this definition">¶</a></dt> |
---|
769 | <dd><p>set x-axis</p> |
---|
770 | <table class="docutils field-list" frame="void" rules="none"> |
---|
771 | <col class="field-name" /> |
---|
772 | <col class="field-body" /> |
---|
773 | <tbody valign="top"> |
---|
774 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
775 | <li><strong>label</strong> – x-axis label</li> |
---|
776 | <li><strong>unit</strong> – x-axis unit</li> |
---|
777 | </ul> |
---|
778 | </td> |
---|
779 | </tr> |
---|
780 | </tbody> |
---|
781 | </table> |
---|
782 | </dd></dl> |
---|
783 | |
---|
784 | <dl class="method"> |
---|
785 | <dt id="sans.guiframe.dataFitting.Data2D.yaxis"> |
---|
786 | <tt class="descclassname">Data2D.</tt><tt class="descname">yaxis</tt><big>(</big><em>label</em>, <em>unit</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.yaxis" title="Permalink to this definition">¶</a></dt> |
---|
787 | <dd><p>set y-axis</p> |
---|
788 | <table class="docutils field-list" frame="void" rules="none"> |
---|
789 | <col class="field-name" /> |
---|
790 | <col class="field-body" /> |
---|
791 | <tbody valign="top"> |
---|
792 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
793 | <li><strong>label</strong> – y-axis label</li> |
---|
794 | <li><strong>unit</strong> – y-axis unit</li> |
---|
795 | </ul> |
---|
796 | </td> |
---|
797 | </tr> |
---|
798 | </tbody> |
---|
799 | </table> |
---|
800 | </dd></dl> |
---|
801 | |
---|
802 | <dl class="method"> |
---|
803 | <dt id="sans.guiframe.dataFitting.Data2D.zaxis"> |
---|
804 | <tt class="descclassname">Data2D.</tt><tt class="descname">zaxis</tt><big>(</big><em>label</em>, <em>unit</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Data2D.zaxis" title="Permalink to this definition">¶</a></dt> |
---|
805 | <dd><p>set z-axis</p> |
---|
806 | <table class="docutils field-list" frame="void" rules="none"> |
---|
807 | <col class="field-name" /> |
---|
808 | <col class="field-body" /> |
---|
809 | <tbody valign="top"> |
---|
810 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
811 | <li><strong>label</strong> – z-axis label</li> |
---|
812 | <li><strong>unit</strong> – z-axis unit</li> |
---|
813 | </ul> |
---|
814 | </td> |
---|
815 | </tr> |
---|
816 | </tbody> |
---|
817 | </table> |
---|
818 | </dd></dl> |
---|
819 | |
---|
820 | </dd></dl> |
---|
821 | |
---|
822 | <dl class="class"> |
---|
823 | <dt id="sans.guiframe.dataFitting.Theory1D"> |
---|
824 | <em class="property">class </em><tt class="descclassname">sans.guiframe.dataFitting.</tt><tt class="descname">Theory1D</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D" title="Permalink to this definition">¶</a></dt> |
---|
825 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">danse.common.plottools.plottables.Theory1D</span></tt>, <tt class="xref py py-class docutils literal"><span class="pre">sans.dataloader.data_info.Data1D</span></tt></p> |
---|
826 | <dl class="class"> |
---|
827 | <dt id="sans.guiframe.dataFitting.Theory1D.View"> |
---|
828 | <em class="property">class </em><tt class="descname">View</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View" title="Permalink to this definition">¶</a></dt> |
---|
829 | <dd><p>Representation of the data that might include a transformation</p> |
---|
830 | <dl class="method"> |
---|
831 | <dt id="sans.guiframe.dataFitting.Theory1D.View.check_data_logX"> |
---|
832 | <tt class="descname">check_data_logX</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.check_data_logX" title="Permalink to this definition">¶</a></dt> |
---|
833 | <dd><p>Remove negative value in x vector to avoid plotting negative |
---|
834 | value of Log10</p> |
---|
835 | </dd></dl> |
---|
836 | |
---|
837 | <dl class="method"> |
---|
838 | <dt id="sans.guiframe.dataFitting.Theory1D.View.check_data_logY"> |
---|
839 | <tt class="descname">check_data_logY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.check_data_logY" title="Permalink to this definition">¶</a></dt> |
---|
840 | <dd><p>Remove negative value in y vector |
---|
841 | to avoid plotting negative value of Log10</p> |
---|
842 | </dd></dl> |
---|
843 | |
---|
844 | <dl class="method"> |
---|
845 | <dt id="sans.guiframe.dataFitting.Theory1D.View.onFitRangeView"> |
---|
846 | <tt class="descname">onFitRangeView</tt><big>(</big><em>xmin=None</em>, <em>xmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.onFitRangeView" title="Permalink to this definition">¶</a></dt> |
---|
847 | <dd><p>It limits View data range to plot from min to max</p> |
---|
848 | <table class="docutils field-list" frame="void" rules="none"> |
---|
849 | <col class="field-name" /> |
---|
850 | <col class="field-body" /> |
---|
851 | <tbody valign="top"> |
---|
852 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
853 | <li><strong>xmin</strong> – the minimum value of x to plot.</li> |
---|
854 | <li><strong>xmax</strong> – the maximum value of x to plot</li> |
---|
855 | </ul> |
---|
856 | </td> |
---|
857 | </tr> |
---|
858 | </tbody> |
---|
859 | </table> |
---|
860 | </dd></dl> |
---|
861 | |
---|
862 | <dl class="method"> |
---|
863 | <dt id="sans.guiframe.dataFitting.Theory1D.View.onResetView"> |
---|
864 | <tt class="descname">onResetView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.onResetView" title="Permalink to this definition">¶</a></dt> |
---|
865 | <dd><p>Reset x,y,dx and y in their full range and in the initial scale |
---|
866 | in case their previous range has changed</p> |
---|
867 | </dd></dl> |
---|
868 | |
---|
869 | <dl class="method"> |
---|
870 | <dt id="sans.guiframe.dataFitting.Theory1D.View.returnXview"> |
---|
871 | <tt class="descname">returnXview</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.returnXview" title="Permalink to this definition">¶</a></dt> |
---|
872 | <dd><p>Return View x,y,dx,dy</p> |
---|
873 | </dd></dl> |
---|
874 | |
---|
875 | <dl class="method"> |
---|
876 | <dt id="sans.guiframe.dataFitting.Theory1D.View.setTransformX"> |
---|
877 | <tt class="descname">setTransformX</tt><big>(</big><em>funcx</em>, <em>funcdx</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.setTransformX" title="Permalink to this definition">¶</a></dt> |
---|
878 | <dd><p>Receive pointers to function that transform x and dx |
---|
879 | and set corresponding View pointers</p> |
---|
880 | <table class="docutils field-list" frame="void" rules="none"> |
---|
881 | <col class="field-name" /> |
---|
882 | <col class="field-body" /> |
---|
883 | <tbody valign="top"> |
---|
884 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
885 | <li><strong>transx</strong> – pointer to function that transforms x</li> |
---|
886 | <li><strong>transdx</strong> – pointer to function that transforms dx</li> |
---|
887 | </ul> |
---|
888 | </td> |
---|
889 | </tr> |
---|
890 | </tbody> |
---|
891 | </table> |
---|
892 | </dd></dl> |
---|
893 | |
---|
894 | <dl class="method"> |
---|
895 | <dt id="sans.guiframe.dataFitting.Theory1D.View.setTransformY"> |
---|
896 | <tt class="descname">setTransformY</tt><big>(</big><em>funcy</em>, <em>funcdy</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.setTransformY" title="Permalink to this definition">¶</a></dt> |
---|
897 | <dd><p>Receive pointers to function that transform y and dy |
---|
898 | and set corresponding View pointers</p> |
---|
899 | <table class="docutils field-list" frame="void" rules="none"> |
---|
900 | <col class="field-name" /> |
---|
901 | <col class="field-body" /> |
---|
902 | <tbody valign="top"> |
---|
903 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
904 | <li><strong>transx</strong> – pointer to function that transforms y</li> |
---|
905 | <li><strong>transdx</strong> – pointer to function that transforms dy</li> |
---|
906 | </ul> |
---|
907 | </td> |
---|
908 | </tr> |
---|
909 | </tbody> |
---|
910 | </table> |
---|
911 | </dd></dl> |
---|
912 | |
---|
913 | <dl class="method"> |
---|
914 | <dt id="sans.guiframe.dataFitting.Theory1D.View.transform"> |
---|
915 | <tt class="descname">transform</tt><big>(</big><em>x=None</em>, <em>y=None</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.View.transform" title="Permalink to this definition">¶</a></dt> |
---|
916 | <dd><dl class="docutils"> |
---|
917 | <dt>Transforms the x,y,dx and dy vectors and stores</dt> |
---|
918 | <dd>the output in View parameters</dd> |
---|
919 | </dl> |
---|
920 | <table class="docutils field-list" frame="void" rules="none"> |
---|
921 | <col class="field-name" /> |
---|
922 | <col class="field-body" /> |
---|
923 | <tbody valign="top"> |
---|
924 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
925 | <li><strong>x</strong> – array of x values</li> |
---|
926 | <li><strong>y</strong> – array of y values</li> |
---|
927 | <li><strong>dx</strong> – array of errors values on x</li> |
---|
928 | <li><strong>dy</strong> – array of error values on y</li> |
---|
929 | </ul> |
---|
930 | </td> |
---|
931 | </tr> |
---|
932 | </tbody> |
---|
933 | </table> |
---|
934 | </dd></dl> |
---|
935 | |
---|
936 | </dd></dl> |
---|
937 | |
---|
938 | <dl class="method"> |
---|
939 | <dt id="sans.guiframe.dataFitting.Theory1D.add_notes"> |
---|
940 | <tt class="descclassname">Theory1D.</tt><tt class="descname">add_notes</tt><big>(</big><em>message=''</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.add_notes" title="Permalink to this definition">¶</a></dt> |
---|
941 | <dd><p>Add notes to datainfo</p> |
---|
942 | </dd></dl> |
---|
943 | |
---|
944 | <dl class="method"> |
---|
945 | <dt id="sans.guiframe.dataFitting.Theory1D.append_empty_process"> |
---|
946 | <tt class="descclassname">Theory1D.</tt><tt class="descname">append_empty_process</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.append_empty_process" title="Permalink to this definition">¶</a></dt> |
---|
947 | <dd></dd></dl> |
---|
948 | |
---|
949 | <dl class="method"> |
---|
950 | <dt id="sans.guiframe.dataFitting.Theory1D.changed"> |
---|
951 | <tt class="descclassname">Theory1D.</tt><tt class="descname">changed</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.changed" title="Permalink to this definition">¶</a></dt> |
---|
952 | <dd></dd></dl> |
---|
953 | |
---|
954 | <dl class="method"> |
---|
955 | <dt id="sans.guiframe.dataFitting.Theory1D.check_data_PlottableX"> |
---|
956 | <tt class="descclassname">Theory1D.</tt><tt class="descname">check_data_PlottableX</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.check_data_PlottableX" title="Permalink to this definition">¶</a></dt> |
---|
957 | <dd><p>Since no transformation is made for log10(x), check that |
---|
958 | no negative values is plot in log scale</p> |
---|
959 | </dd></dl> |
---|
960 | |
---|
961 | <dl class="method"> |
---|
962 | <dt id="sans.guiframe.dataFitting.Theory1D.check_data_PlottableY"> |
---|
963 | <tt class="descclassname">Theory1D.</tt><tt class="descname">check_data_PlottableY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.check_data_PlottableY" title="Permalink to this definition">¶</a></dt> |
---|
964 | <dd><p>Since no transformation is made for log10(y), check that |
---|
965 | no negative values is plot in log scale</p> |
---|
966 | </dd></dl> |
---|
967 | |
---|
968 | <dl class="method"> |
---|
969 | <dt id="sans.guiframe.dataFitting.Theory1D.clone_without_data"> |
---|
970 | <tt class="descclassname">Theory1D.</tt><tt class="descname">clone_without_data</tt><big>(</big><em>length=0</em>, <em>clone=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.clone_without_data" title="Permalink to this definition">¶</a></dt> |
---|
971 | <dd><p>Clone the current object, without copying the data (which |
---|
972 | will be filled out by a subsequent operation). |
---|
973 | The data arrays will be initialized to zero.</p> |
---|
974 | <table class="docutils field-list" frame="void" rules="none"> |
---|
975 | <col class="field-name" /> |
---|
976 | <col class="field-body" /> |
---|
977 | <tbody valign="top"> |
---|
978 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
979 | <li><strong>length</strong> – length of the data array to be initialized</li> |
---|
980 | <li><strong>clone</strong> – if provided, the data will be copied to clone</li> |
---|
981 | </ul> |
---|
982 | </td> |
---|
983 | </tr> |
---|
984 | </tbody> |
---|
985 | </table> |
---|
986 | </dd></dl> |
---|
987 | |
---|
988 | <dl class="method"> |
---|
989 | <dt id="sans.guiframe.dataFitting.Theory1D.colors"> |
---|
990 | <tt class="descclassname">Theory1D.</tt><tt class="descname">colors</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.colors" title="Permalink to this definition">¶</a></dt> |
---|
991 | <dd><p>Return the number of colors need to render the object</p> |
---|
992 | </dd></dl> |
---|
993 | |
---|
994 | <dl class="method"> |
---|
995 | <dt id="sans.guiframe.dataFitting.Theory1D.copy_from_datainfo"> |
---|
996 | <tt class="descclassname">Theory1D.</tt><tt class="descname">copy_from_datainfo</tt><big>(</big><em>data1d</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.copy_from_datainfo" title="Permalink to this definition">¶</a></dt> |
---|
997 | <dd><p>copy values of Data1D of type DataLaoder.Data_info</p> |
---|
998 | </dd></dl> |
---|
999 | |
---|
1000 | <dl class="method"> |
---|
1001 | <dt id="sans.guiframe.dataFitting.Theory1D.get_xaxis"> |
---|
1002 | <tt class="descclassname">Theory1D.</tt><tt class="descname">get_xaxis</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.get_xaxis" title="Permalink to this definition">¶</a></dt> |
---|
1003 | <dd><p>Return the units and name of x-axis</p> |
---|
1004 | </dd></dl> |
---|
1005 | |
---|
1006 | <dl class="method"> |
---|
1007 | <dt id="sans.guiframe.dataFitting.Theory1D.get_yaxis"> |
---|
1008 | <tt class="descclassname">Theory1D.</tt><tt class="descname">get_yaxis</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.get_yaxis" title="Permalink to this definition">¶</a></dt> |
---|
1009 | <dd><p>Return the units and name of y- axis</p> |
---|
1010 | </dd></dl> |
---|
1011 | |
---|
1012 | <dl class="method"> |
---|
1013 | <dt id="sans.guiframe.dataFitting.Theory1D.is_empty"> |
---|
1014 | <tt class="descclassname">Theory1D.</tt><tt class="descname">is_empty</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.is_empty" title="Permalink to this definition">¶</a></dt> |
---|
1015 | <dd><p>Returns True if there is no data stored in the plottable</p> |
---|
1016 | </dd></dl> |
---|
1017 | |
---|
1018 | <dl class="method"> |
---|
1019 | <dt id="sans.guiframe.dataFitting.Theory1D.is_slit_smeared"> |
---|
1020 | <tt class="descclassname">Theory1D.</tt><tt class="descname">is_slit_smeared</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.is_slit_smeared" title="Permalink to this definition">¶</a></dt> |
---|
1021 | <dd><p>Check whether the data has slit smearing information</p> |
---|
1022 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1023 | <col class="field-name" /> |
---|
1024 | <col class="field-body" /> |
---|
1025 | <tbody valign="top"> |
---|
1026 | <tr class="field"><th class="field-name">Returns:</th><td class="field-body">True is slit smearing info is present, False otherwise</td> |
---|
1027 | </tr> |
---|
1028 | </tbody> |
---|
1029 | </table> |
---|
1030 | </dd></dl> |
---|
1031 | |
---|
1032 | <dl class="classmethod"> |
---|
1033 | <dt id="sans.guiframe.dataFitting.Theory1D.labels"> |
---|
1034 | <em class="property">classmethod </em><tt class="descclassname">Theory1D.</tt><tt class="descname">labels</tt><big>(</big><em>collection</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.labels" title="Permalink to this definition">¶</a></dt> |
---|
1035 | <dd><p>Build a label mostly unique within a collection</p> |
---|
1036 | </dd></dl> |
---|
1037 | |
---|
1038 | <dl class="method"> |
---|
1039 | <dt id="sans.guiframe.dataFitting.Theory1D.onFitRange"> |
---|
1040 | <tt class="descclassname">Theory1D.</tt><tt class="descname">onFitRange</tt><big>(</big><em>xmin=None</em>, <em>xmax=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.onFitRange" title="Permalink to this definition">¶</a></dt> |
---|
1041 | <dd><p>It limits View data range to plot from min to max</p> |
---|
1042 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1043 | <col class="field-name" /> |
---|
1044 | <col class="field-body" /> |
---|
1045 | <tbody valign="top"> |
---|
1046 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1047 | <li><strong>xmin</strong> – the minimum value of x to plot.</li> |
---|
1048 | <li><strong>xmax</strong> – the maximum value of x to plot</li> |
---|
1049 | </ul> |
---|
1050 | </td> |
---|
1051 | </tr> |
---|
1052 | </tbody> |
---|
1053 | </table> |
---|
1054 | </dd></dl> |
---|
1055 | |
---|
1056 | <dl class="method"> |
---|
1057 | <dt id="sans.guiframe.dataFitting.Theory1D.onReset"> |
---|
1058 | <tt class="descclassname">Theory1D.</tt><tt class="descname">onReset</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.onReset" title="Permalink to this definition">¶</a></dt> |
---|
1059 | <dd><p>Reset x, y, dx, dy view with its parameters</p> |
---|
1060 | </dd></dl> |
---|
1061 | |
---|
1062 | <dl class="method"> |
---|
1063 | <dt id="sans.guiframe.dataFitting.Theory1D.render"> |
---|
1064 | <tt class="descclassname">Theory1D.</tt><tt class="descname">render</tt><big>(</big><em>plot</em>, <em>**kw</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.render" title="Permalink to this definition">¶</a></dt> |
---|
1065 | <dd></dd></dl> |
---|
1066 | |
---|
1067 | <dl class="method"> |
---|
1068 | <dt id="sans.guiframe.dataFitting.Theory1D.reset_view"> |
---|
1069 | <tt class="descclassname">Theory1D.</tt><tt class="descname">reset_view</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.reset_view" title="Permalink to this definition">¶</a></dt> |
---|
1070 | <dd><p>Reload view with new value to plot</p> |
---|
1071 | </dd></dl> |
---|
1072 | |
---|
1073 | <dl class="method"> |
---|
1074 | <dt id="sans.guiframe.dataFitting.Theory1D.returnValuesOfView"> |
---|
1075 | <tt class="descclassname">Theory1D.</tt><tt class="descname">returnValuesOfView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.returnValuesOfView" title="Permalink to this definition">¶</a></dt> |
---|
1076 | <dd><p>Return View parameters and it is used by Fit Dialog</p> |
---|
1077 | </dd></dl> |
---|
1078 | |
---|
1079 | <dl class="method"> |
---|
1080 | <dt id="sans.guiframe.dataFitting.Theory1D.setLabel"> |
---|
1081 | <tt class="descclassname">Theory1D.</tt><tt class="descname">setLabel</tt><big>(</big><em>labelx</em>, <em>labely</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.setLabel" title="Permalink to this definition">¶</a></dt> |
---|
1082 | <dd><p>It takes a label of the x and y transformation and set View parameters</p> |
---|
1083 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1084 | <col class="field-name" /> |
---|
1085 | <col class="field-body" /> |
---|
1086 | <tbody valign="top"> |
---|
1087 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1088 | <li><strong>transx</strong> – The label of x transformation is sent by Properties Dialog</li> |
---|
1089 | <li><strong>transy</strong> – The label of y transformation is sent Properties Dialog</li> |
---|
1090 | </ul> |
---|
1091 | </td> |
---|
1092 | </tr> |
---|
1093 | </tbody> |
---|
1094 | </table> |
---|
1095 | </dd></dl> |
---|
1096 | |
---|
1097 | <dl class="method"> |
---|
1098 | <dt id="sans.guiframe.dataFitting.Theory1D.set_View"> |
---|
1099 | <tt class="descclassname">Theory1D.</tt><tt class="descname">set_View</tt><big>(</big><em>x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.set_View" title="Permalink to this definition">¶</a></dt> |
---|
1100 | <dd><p>Load View</p> |
---|
1101 | </dd></dl> |
---|
1102 | |
---|
1103 | <dl class="method"> |
---|
1104 | <dt id="sans.guiframe.dataFitting.Theory1D.set_data"> |
---|
1105 | <tt class="descclassname">Theory1D.</tt><tt class="descname">set_data</tt><big>(</big><em>x</em>, <em>y</em>, <em>dx=None</em>, <em>dy=None</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.set_data" title="Permalink to this definition">¶</a></dt> |
---|
1106 | <dd></dd></dl> |
---|
1107 | |
---|
1108 | <dl class="method"> |
---|
1109 | <dt id="sans.guiframe.dataFitting.Theory1D.transformView"> |
---|
1110 | <tt class="descclassname">Theory1D.</tt><tt class="descname">transformView</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.transformView" title="Permalink to this definition">¶</a></dt> |
---|
1111 | <dd><p>It transforms x, y before displaying</p> |
---|
1112 | </dd></dl> |
---|
1113 | |
---|
1114 | <dl class="method"> |
---|
1115 | <dt id="sans.guiframe.dataFitting.Theory1D.transformX"> |
---|
1116 | <tt class="descclassname">Theory1D.</tt><tt class="descname">transformX</tt><big>(</big><em>transx</em>, <em>transdx</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.transformX" title="Permalink to this definition">¶</a></dt> |
---|
1117 | <dd><p>Receive pointers to function that transform x and dx |
---|
1118 | and set corresponding View pointers</p> |
---|
1119 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1120 | <col class="field-name" /> |
---|
1121 | <col class="field-body" /> |
---|
1122 | <tbody valign="top"> |
---|
1123 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1124 | <li><strong>transx</strong> – pointer to function that transforms x</li> |
---|
1125 | <li><strong>transdx</strong> – pointer to function that transforms dx</li> |
---|
1126 | </ul> |
---|
1127 | </td> |
---|
1128 | </tr> |
---|
1129 | </tbody> |
---|
1130 | </table> |
---|
1131 | </dd></dl> |
---|
1132 | |
---|
1133 | <dl class="method"> |
---|
1134 | <dt id="sans.guiframe.dataFitting.Theory1D.transformY"> |
---|
1135 | <tt class="descclassname">Theory1D.</tt><tt class="descname">transformY</tt><big>(</big><em>transy</em>, <em>transdy</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.transformY" title="Permalink to this definition">¶</a></dt> |
---|
1136 | <dd><p>Receive pointers to function that transform y and dy |
---|
1137 | and set corresponding View pointers</p> |
---|
1138 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1139 | <col class="field-name" /> |
---|
1140 | <col class="field-body" /> |
---|
1141 | <tbody valign="top"> |
---|
1142 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1143 | <li><strong>transy</strong> – pointer to function that transforms y</li> |
---|
1144 | <li><strong>transdy</strong> – pointer to function that transforms dy</li> |
---|
1145 | </ul> |
---|
1146 | </td> |
---|
1147 | </tr> |
---|
1148 | </tbody> |
---|
1149 | </table> |
---|
1150 | </dd></dl> |
---|
1151 | |
---|
1152 | <dl class="method"> |
---|
1153 | <dt id="sans.guiframe.dataFitting.Theory1D.xaxis"> |
---|
1154 | <tt class="descclassname">Theory1D.</tt><tt class="descname">xaxis</tt><big>(</big><em>name</em>, <em>units</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.xaxis" title="Permalink to this definition">¶</a></dt> |
---|
1155 | <dd><p>Set the name and unit of x_axis</p> |
---|
1156 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1157 | <col class="field-name" /> |
---|
1158 | <col class="field-body" /> |
---|
1159 | <tbody valign="top"> |
---|
1160 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1161 | <li><strong>name</strong> – the name of x-axis</li> |
---|
1162 | <li><strong>units</strong> – the units of x_axis</li> |
---|
1163 | </ul> |
---|
1164 | </td> |
---|
1165 | </tr> |
---|
1166 | </tbody> |
---|
1167 | </table> |
---|
1168 | </dd></dl> |
---|
1169 | |
---|
1170 | <dl class="method"> |
---|
1171 | <dt id="sans.guiframe.dataFitting.Theory1D.yaxis"> |
---|
1172 | <tt class="descclassname">Theory1D.</tt><tt class="descname">yaxis</tt><big>(</big><em>name</em>, <em>units</em><big>)</big><a class="headerlink" href="#sans.guiframe.dataFitting.Theory1D.yaxis" title="Permalink to this definition">¶</a></dt> |
---|
1173 | <dd><p>Set the name and unit of y_axis</p> |
---|
1174 | <table class="docutils field-list" frame="void" rules="none"> |
---|
1175 | <col class="field-name" /> |
---|
1176 | <col class="field-body" /> |
---|
1177 | <tbody valign="top"> |
---|
1178 | <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
1179 | <li><strong>name</strong> – the name of y-axis</li> |
---|
1180 | <li><strong>units</strong> – the units of y_axis</li> |
---|
1181 | </ul> |
---|
1182 | </td> |
---|
1183 | </tr> |
---|
1184 | </tbody> |
---|
1185 | </table> |
---|
1186 | </dd></dl> |
---|
1187 | |
---|
1188 | </dd></dl> |
---|
1189 | |
---|
1190 | </div> |
---|
1191 | </div> |
---|
1192 | |
---|
1193 | |
---|
1194 | </div> |
---|
1195 | </div> |
---|
1196 | </div> |
---|
1197 | <div class="sphinxsidebar"> |
---|
1198 | <div class="sphinxsidebarwrapper"> |
---|
1199 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
1200 | <ul> |
---|
1201 | <li><a class="reference internal" href="#">dataFitting</a><ul> |
---|
1202 | <li><a class="reference internal" href="#module-sans.guiframe.dataFitting"><tt class="docutils literal"><span class="pre">sans.guiframe.dataFitting</span></tt></a></li> |
---|
1203 | </ul> |
---|
1204 | </li> |
---|
1205 | </ul> |
---|
1206 | |
---|
1207 | <h4>Previous topic</h4> |
---|
1208 | <p class="topless"><a href="custom_pstats.html" |
---|
1209 | title="previous chapter">custom_pstats</a></p> |
---|
1210 | <h4>Next topic</h4> |
---|
1211 | <p class="topless"><a href="data_manager.html" |
---|
1212 | title="next chapter">data_manager</a></p> |
---|
1213 | <h3>This Page</h3> |
---|
1214 | <ul class="this-page-menu"> |
---|
1215 | <li><a href="../_sources/api/dataFitting.txt" |
---|
1216 | rel="nofollow">Show Source</a></li> |
---|
1217 | </ul> |
---|
1218 | <div id="searchbox" style="display: none"> |
---|
1219 | <h3>Quick search</h3> |
---|
1220 | <form class="search" action="../search.html" method="get"> |
---|
1221 | <input type="text" name="q" size="18" /> |
---|
1222 | <input type="submit" value="Go" /> |
---|
1223 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
1224 | <input type="hidden" name="area" value="default" /> |
---|
1225 | </form> |
---|
1226 | <p class="searchtip" style="font-size: 90%"> |
---|
1227 | Enter search terms or a module, class or function name. |
---|
1228 | </p> |
---|
1229 | </div> |
---|
1230 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
1231 | </div> |
---|
1232 | </div> |
---|
1233 | <div class="clearer"></div> |
---|
1234 | </div> |
---|
1235 | <div class="related"> |
---|
1236 | <h3>Navigation</h3> |
---|
1237 | <ul> |
---|
1238 | <li class="right" style="margin-right: 10px"> |
---|
1239 | <a href="../genindex.html" title="General Index" |
---|
1240 | >index</a></li> |
---|
1241 | <li class="right" > |
---|
1242 | <a href="../py-modindex.html" title="Python Module Index" |
---|
1243 | >modules</a> |</li> |
---|
1244 | <li class="right" > |
---|
1245 | <a href="data_manager.html" title="data_manager" |
---|
1246 | >next</a> |</li> |
---|
1247 | <li class="right" > |
---|
1248 | <a href="custom_pstats.html" title="custom_pstats" |
---|
1249 | >previous</a> |</li> |
---|
1250 | <li><a href="../index.html">guiframe v0.1.0 documentation</a> »</li> |
---|
1251 | <li><a href="index.html" >Reference</a> »</li> |
---|
1252 | </ul> |
---|
1253 | </div> |
---|
1254 | <div class="footer"> |
---|
1255 | © Copyright 2010, sans group. |
---|
1256 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. |
---|
1257 | </div> |
---|
1258 | </body> |
---|
1259 | </html> |
---|