ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since f63f5ff was
f0c09d5,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
more comments
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | - BUGS |
---|
2 | 1- After fitting, the fit panel is not updated with the output values of the fit. |
---|
3 | 2- Do this: |
---|
4 | a) load a file |
---|
5 | b) fit a straight line |
---|
6 | c) change the scale using the "Properties" menu. |
---|
7 | You will see an exception that should be fixed. |
---|
8 | |
---|
9 | 3- Load the file line_in_x2_y.txt in miniView. Select x^2 and y for the scales. Fit it. |
---|
10 | a) The fit range is wrong, it's not update for the X^2 view. |
---|
11 | b) the fit result is wrong |
---|
12 | c) Even if you update the range, the fit and the plots are wrong. |
---|
13 | |
---|
14 | - NOTES that might help for bugs |
---|
15 | 1- Make sure you are fitting the View data, not the underlying data |
---|
16 | 2- Since you are using the log scale from matplotlib, the fit for when one of |
---|
17 | the axis is in log will NOT be a straight line |
---|
18 | 3- Make sure that you are filling the View of the fit result correctly. |
---|
19 | |
---|
20 | |
---|
21 | - IMPROVEMENTS |
---|
22 | 1- After loading a new file or changing the scale using the "Properties" menu, remove any previously displayed fit from the graph. |
---|
23 | |
---|
24 | 2- There are additional y scales we need: y, y^2, log(y), 1/y, 1/sqrt(y), log(y * x), log(y * x^2) |
---|
25 | 3- You should change the label according to what the user chose, and not hard-code them. |
---|
26 | For example, in PlotPanel._onEVT_FUNC_PROPERTY, replace |
---|
27 | |
---|
28 | self.graph.xaxis('\\rm{q^{2}} ', 'A^{-2}') |
---|
29 | |
---|
30 | with |
---|
31 | name, units = self.some_plottable.get_xaxis() |
---|
32 | self.graph.xaxis("(%s)^2" % name, "(%s)^2" % units) |
---|
33 | |
---|
34 | That way it still works even if the user is not plotting Intensity versus Q. |
---|
Note: See
TracBrowser
for help on using the repository browser.