Changeset 78f02c3 in sasview for src/sas/guiframe/media
- Timestamp:
- Feb 14, 2015 12:12:40 PM (10 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 898a8b9
- Parents:
- 3e2ebbb
- Location:
- src/sas/guiframe/media
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/guiframe/media/data_explorer_help.rst
r3e2ebbb r78f02c3 1 1 .. _data_explorer_help.rst 2 3 .. This is a port of the original SasView html help file to ReSTructured text 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 2 5 3 6 Loading Data 4 7 ============ 5 8 6 Introduction_7 Load data_8 Handy menu_9 Activate data_10 Remove data_11 Append plot to graph_12 Create new plot_13 Freeze theory_14 Send data to applications_9 1. Introduction_ 10 2. Load Data_ 11 3. Handy Menu_ 12 4. Activate Data_ 13 5. Remove Data_ 14 6. Append Plot to Graph_ 15 7. Create New Plot_ 16 8. Freeze Theory_ 17 9. Send Data to Applications_ 15 18 16 .. _Introduction : 17 ------------------ 18 *Data Explorer* is a panel that allows the user more interactions with data. Some functionalities provided by the Data Explorer are also available through the context menu of plot panels or other menus of the applications.Under menu *View* of the menubar, Data explorer can be toggled between Show and Hide by clicking the menu *Show/Hide Data Explorer* . 19 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 19 20 20 *IMPORTANT!* When Data explorer is hidden, all the data loaded will be sent directly to the current active application, if possible. When data Explorer is shown data go first to the Data Explorer for the user to handle them later. 21 .. _Introduction: 21 22 22 .. _Load data : 23 --------------- 24 To Load data, click the button *Load Data* , then select one or more (holding Ctrl key) files to load into the application. In the list, the *Data* will be displayed as the name of each selected file. Expending this data by clicking the *+* symbol will display available information about the data such as data title if exists. 23 Introduction 24 ------------ 25 *Data Explorer* is a panel that allows the user more interactions with data. 26 Some functionalities provided by the Data Explorer are also available through 27 the context menu of plot panels or other menus of the applications.Under menu 28 *View* of the menubar, Data explorer can be toggled between Show and Hide by 29 clicking the menu *Show/Hide Data Explorer* . 25 30 26 .. _Handy menu : 27 ---------------- 28 For a quick Data-info/Save/Plot/3d-plot(2d only)/Edit-mask(2d only), high-light the data/theory, right-click, and select a proper item from the context menu. 31 *IMPORTANT!* When Data explorer is hidden, all the data loaded will be sent 32 directly to the current active application, if possible. When data Explorer is 33 shown data go first to the Data Explorer for the user to handle them later. 34 35 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 36 37 .. _Load Data: 38 39 Load Data 40 --------- 41 42 To Load data, click the button *Load Data* , then select one or more (holding 43 Ctrl key) files to load into the application. In the list, the *Data* will be 44 displayed as the name of each selected file. Expending this data by clicking 45 the *+* symbol will display available information about the data such as data 46 title if exists. 47 48 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 49 50 .. _Handy Menu: 51 52 Handy Menu 53 ---------- 54 55 For a quick Data-info/Save/Plot/3d-plot(2d only)/Edit-mask(2d only), 56 high-light the data/theory, right-click, and select a proper item from the 57 context menu. 58 29 59 .. _ image:: hand_menu.png 30 60 61 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 31 62 32 .. _Activate data : 33 ------------------- 34 To interact with data, check a data label and click on a button. Checking Data make them active for the button operation. Unchecking Data labels will deactivate them. 63 .. _Activate Data: 35 64 36 There is a combo box labeled *Selection Options* that allows to activate or select multiple data simultaneously. 65 Activate Data 66 ------------- 37 67 38 .. _Remove data : 39 ----------------- 68 To interact with data, check a data label and click on a button. Checking Data 69 make them active for the button operation. Unchecking Data labels will 70 deactivate them. 71 72 There is a combo box labeled *Selection Options* that allows to activate or 73 select multiple data simultaneously. 74 75 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 76 77 .. _Remove Data: 78 79 Remove Data 80 ----------- 81 40 82 Remove data button remove all reference of this data into the application. 41 83 42 84 *WARNING!* Remove data will stop any jobs currently using the selected data. 43 85 44 .. _Append plot to graph : 45 -------------------------- 46 Click on the button *Append To* to append selected Data to a plot panel on focus. Next to this button is a combo box containing available panels names. Selecting a name from this combo box will set the corresponding lot panel on focus. If not plot panel is available, the combo box and button will be disable. 2D Data cannot be appended to any plot panels . This operation can only be performed on 1D data and plot panels currently containing 1D data. 86 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 47 87 48 .. _Create new plot : 49 --------------------- 50 Click on *New Plot* button to create a new plot panel where selected data will be plotted. 88 .. _Append Plot to Graph: 51 89 52 .. _Freeze theory : 90 Append Plot to Graph 91 -------------------- 92 93 Click on the button *Append To* to append selected Data to a plot panel on 94 focus. Next to this button is a combo box containing available panels names. 95 Selecting a name from this combo box will set the corresponding lot panel on 96 focus. If not plot panel is available, the combo box and button will be 97 disable. 2D Data cannot be appended to any plot panels . This operation can 98 only be performed on 1D data and plot panels currently containing 1D data. 99 100 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 101 102 .. _Create New Plot: 103 104 Create New Plot 105 --------------- 106 107 Click on *New Plot* button to create a new plot panel where selected data 108 will be plotted. 109 110 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 111 112 .. _Freeze Theory: 113 114 Freeze Theory 115 ------------- 116 117 *Freeze Theory* button generate Data from selected theory. This operation can 118 only be performed when theory labels are selected. 119 120 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 121 122 .. _Send to application: 123 124 Send to Application 53 125 ------------------- 54 *Freeze Theory* button generate Data from selected theory. This operation can only be performed when theory labels are selected.55 126 56 .. _Send to application :57 ------------------------- 58 Click on the button *Send To* to send Data to the current active control page. One of the single/batch mode can be selected only for Fitting. The batch mode provides serial (batch) fitting with one model, i.e., fitting one data by another data. Note that only the Fitting allows more that one data to be sent. 59 127 Click on the button *Send To* to send Data to the current active control 128 page. One of the single/batch mode can be selected only for Fitting. The batch 129 mode provides serial (batch) fitting with one model, i.e., fitting one data by 130 another data. Note that only the Fitting allows more that one data to be sent. -
src/sas/guiframe/media/graph_help.rst
r37bbd5f r78f02c3 1 1 ..graph_help.rst 2 3 .. This is a port of the original SasView html help file to ReSTructured text 4 .. by S King, ISIS, during SasView CodeCamp-III in Feb 2015. 2 5 3 6 Plotting Data/Models 4 7 ==================== 5 8 6 Placeholder for graph help 9 1. Graph Menu_ 10 2. 2D Data Averaging_ 11 3. Key Combinations_ 12 13 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 14 15 .. _Graph menu: 16 17 Graph Menu 18 ---------- 19 20 Introduction_ 21 Reset Graph_ 22 Hide/Show/Delete Graph_ 23 Data Info_ 24 Save Plot Image_ 25 Save Data_ 26 Drag Plot_ 27 Zoom In/Out_ 28 Remove Data_ 29 Change Scale_ 30 Linear Fit_ 31 Other Graph Modifications_ 32 33 .. _Introduction: 34 35 Locating the pointer and right-clicking on a data/theory plot will bring a 36 context menu. On the menu, select a menu item. 37 38 .. _Reset Graph: 39 40 To reset the graph's axis range, right click on the plot and the context menu 41 pops-up. Select *Reset Graph* and the plot will take its initial range. Also 42 the 'home' icon in tool bar will do the same. 43 44 .. _Hide/Show/Delete Graph: 45 46 To Hide, click the Hide (bar) button in the tool bar.To Show, select the the 47 'Show' menu item in the 'Graph' menu in the menu bar.To Delete, click the 'x' 48 button in the title bar. 49 50 Note: If a residuals graph (in Fitting) is hidden, it will not show up after 51 computation. 52 53 .. _Save Plot Image: 54 55 Right click on plot. Context menu will pop-up select save image [file name]. 56 A dialog window opens and write a the name of the file to save and click on 57 *Save Image.* 58 59 .. _Data Info: 60 61 From the context menu, select 'Data Info' to see the data information dialog 62 panel. 63 64 .. _Save Data: 65 66 From the context menu, select 'Save points as a file' for 1D, or 'Save as a 67 file(DAT)' for 2D. Note that two formats, txt and xml, are available in 1D 68 saving. 69 70 .. _Drag Plot: 71 72 Select the *crossed arrows* button on the plot panel *toolbar* to drag the 73 plot. To disable dragging mode, unselect the same button on the toolbar. 74 75 .. _Remove data from plot: 76 77 Highlight the plot and the context menu appears.Select *remove [file name]*. 78 The plot selected will disappear. 79 80 .. _Zoom In/Out: 81 82 Select the *rectangle* button on the plot panel *toolbar* to zoom in a 83 region of the plot. 84 85 To disable zoom mode, unselect the same button on the toolbar. After zoom in 86 a region, select *left arrow* or *right arrow* button on the toolbar to set 87 the graph the the previous size. If a mouse wheel button is available, 88 *zoom in/out* by scrolling the mouse wheel (see Key combination_ help for 89 details). 90 91 .. _Change Scale: 92 93 If the loaded data is a 1-D data changing scale or data representation will 94 work as follows. *Right click* on the plot window. A context menu pops-up and 95 select *Change Scale* . A dialog window titled *select the scale of the graph* 96 will pop-up then change the *x* , the *y* and the *view* values as wish. 97 The 'view' option includes the axis scale short-cuts such as Linear, Guinier, 98 Cross-sectional (XC) Guinier, and Porod plot scale. For a proper data set, 99 these axis scales can be used to estimate Rg, Rod diameter, or Background of 100 neutron scattering data respectively (via 'Linear Fit'; see below). For a 2D 101 image, *Right click* on the image to pop-up the context menu. Select to 102 switch from linear to log scale. The scale selected is printed on the status 103 bar. 104 105 .. _Linear Fit: 106 107 Linear fit is to perform a line model fitting keeping the scale of the plot. 108 Highlight data to fit. From the context menu select *Linear Fit* . A dialog 109 window appears. Change model initial parameters, data limits and hit *fit* 110 button. New parameters values are displayed and the line with the new 111 parameters is added to the plot. Especially for Guinier, XC Guinier, and 112 Porod plot scale, this 'Linear Fit' will provides Rg, Rod diameter, and 113 background, respectively. The following figure shows an example for the 114 Guinier scale. 115 116 .. _Change scale 117 118 If the loaded data is a 1-D data changing scale or data representation will 119 work as follows. *Right click* on the plot window. A context menu pops-up and 120 select *Change Scale* . A dialog window titled *select the scale of the graph* 121 will pop-up then change the *x* , the *y* and the *view* values as wish. 122 If the loaded data is an image. *Right click* on the image to pop-up the 123 context menu. Select to switch from linear to log scale. The scale selected is 124 printed on the statusbar. 125 126 .. image:: guinier_fit.png 127 128 .. _Other Graph Modifications: 129 130 Some custom modifications of the symbols, text, axis, etc of the graph are 131 provided 132 133 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 134 135 .. _2D data averaging 136 137 2D Data Averaging 138 ----------------- 139 140 Description_ 141 How to Average_ 142 Available Averagings_ 143 Perform Circular Average_ 144 Masked Circular Average_ 145 Sector [Q view]_ 146 Annulus [Phi view]_ 147 Box Sum_ 148 Box Averaging in Qx_ 149 Box Averaging in Qy_ 150 151 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 152 153 .. _Description: 154 155 This feature allows you to perform different types of averages on your data, 156 and allows you to see what regions of the detector will contribute to the 157 average. The region to be averaged will be drown and can be modified by 158 dragging the lines around. 159 160 .. _How to Average 161 162 Right click on 2D data for the context menu to appear. Select one type of 163 averages among *"sector [Q view]", "Annulus [Phi view]", "Box sum", "Box 164 averaging in Qx ", "box averaging on Qy","Perform circular Average".* 165 166 A slicer will appear except for *"Perform circular Average"* that you can 167 drag by clicking on a slicer 's marker. When the marker is highlighted in red, 168 it means that the slicer can change size.You can also move some of the slicer 169 by simply drag its side when highlighted in red. the slicer size will be reset 170 to its previous size if the user try to select a region greater than the size 171 of the data. 172 173 The user can also select a region to average when a slicer has been selected 174 already by *right clicking* on the context menu and selecting *Edit Slicer 175 Parameters* . The dialog window will appears and the user can enter values to 176 selected a region or selected numbers of points to plot *nbins* . 177 178 For *Box sum* , when the user selects this option, a new panel is created 179 containing the result of average of the sum of every pixels contains on that 180 data.The user can also enter values to select a region. 181 182 .. _Available Averagings: 183 184 ??? 185 186 .. _Perform Circular Average: 187 188 It will perform and average in constant q-rings around the (x,y) pixel 189 location of the beam center. 190 191 .. _Masked Circular Average: 192 193 This operation is same as 'Perform Circular Average' except that the masked 194 region is excluded if masked. 195 196 .. _Sector [Q view]: 197 198 It averages in constant q-arcs. The width of the sector is specified in 199 degrees (+/- delta phi) each direction from the central angle (phi). 200 201 .. _Annulus [Phi view]: 202 203 It performs an average between two q-values centered in (0,0), and averaged 204 over a width of a specified number of pixels. The data is returned as a 205 function of angle (phi) in degrees. Moving one circle of this slicer to 206 radius of zero corresponding to a circular averaging on radius qmax , the 207 outer circle. The angle zero starts from the positive x-axis direction. 208 209 .. _Box Sum: 210 211 Perform the sum of counts in a 2D region of interest.When editing the slicer, 212 the user can enter the length and the width the rectangle slicer and the 213 coordinates of the center of this rectangle. 214 215 .. _Box Averaging in Qx: 216 217 Computes average I(Qx) for a region of interest. When editing the slicer, the 218 user can control the length and the width the rectangle slicer. The averaged 219 output is calculated from the constant bins with rectangular shape. The 220 resultant q values are nominal values, i.e., the central values of each bins 221 on the x-axis. 222 223 .. _Box Averaging in Qy: 224 225 Computes average I(Qy) for a region of interest.When editing the slicer, the 226 user can control the length and the width the rectangle slicer. The averaged 227 output is calculated from the constant bins with rectangular shape. The 228 resultant q values are nominal values, i.e., the central values of each bins 229 on the y-axis. 230 231 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 232 233 .. _Key combination 234 235 Key Combination 236 --------------- 237 238 Floating Panel_ 239 Graph Context Menu_ 240 Zoom In and Out_ 241 242 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 243 244 .. _Floating Panel: 245 246 For a graph panel to float on the top of the SV window: 247 248 Press the *Ctrl(Cmd on MAC) key* on dragging and placing a panel. Or if you 249 want to make all plot panels float, select 'Float' from Graph/Preperences in 250 the menu bar. Otherwise choose 'Dock'. 251 252 .. _Graph Context Menu: 253 254 To get the graph context menu to print, copy, save data, (2D)average, etc, 255 *locate the mouse point on the plot to highlight and *(Mouse) Right Click* 256 to bring up the full menu. 257 258 .. _Zoom In and Out: 259 260 To Zoom in or out the full plot, *locate the mouse point inside the graph 261 which will be the center of the zooming, then *rotate MouseWheel*. 262 263 *To Zoom in or out the plot in x or y direction, *locate (and click) the 264 mouse point near x (or y) axis just outside of the graph and then *rotate 265 MouseWheel* .* Note that this works only on the 1D plots.
Note: See TracChangeset
for help on using the changeset viewer.