Ignore:
Timestamp:
Feb 14, 2015 12:12:40 PM (9 years ago)
Author:
smk78
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
Message:

Level 1 sphinx-ready commit of remaining help files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/guiframe/media/graph_help.rst

    r37bbd5f r78f02c3  
    11..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. 
    25 
    36Plotting Data/Models 
    47==================== 
    58 
    6 Placeholder for graph help 
     91. Graph Menu_ 
     102. 2D Data Averaging_ 
     113. Key Combinations_ 
     12 
     13.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     14 
     15.. _Graph menu: 
     16 
     17Graph Menu 
     18---------- 
     19 
     20Introduction_  
     21Reset Graph_  
     22Hide/Show/Delete Graph_  
     23Data Info_  
     24Save Plot Image_  
     25Save Data_  
     26Drag Plot_  
     27Zoom In/Out_  
     28Remove Data_  
     29Change Scale_  
     30Linear Fit_  
     31Other Graph Modifications_  
     32 
     33.. _Introduction:  
     34 
     35Locating the pointer and right-clicking on a data/theory plot will bring a  
     36context menu. On the menu, select a menu item. 
     37 
     38.. _Reset Graph:  
     39 
     40To reset the graph's axis range, right click on the plot and the context menu  
     41pops-up. Select *Reset Graph*  and the plot will take its initial range. Also  
     42the 'home' icon in tool bar will do the same. 
     43 
     44.. _Hide/Show/Delete Graph:  
     45 
     46To 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'  
     48button in the title bar. 
     49 
     50Note: If a residuals graph (in Fitting) is hidden, it will not show up after  
     51computation. 
     52 
     53.. _Save Plot Image:  
     54 
     55Right click on plot. Context menu will pop-up select save image [file name]. 
     56A dialog window opens and write a the name of the file to save and click on  
     57*Save Image.* 
     58 
     59.. _Data Info:  
     60 
     61From the context menu, select 'Data Info' to see the data information dialog  
     62panel. 
     63 
     64.. _Save Data:  
     65 
     66From the context menu, select 'Save points as a file' for 1D, or 'Save as a  
     67file(DAT)' for 2D. Note that two formats, txt and xml, are available in 1D  
     68saving. 
     69 
     70.. _Drag Plot:  
     71 
     72Select the *crossed arrows*  button on the plot panel *toolbar*  to drag the  
     73plot. To disable dragging mode, unselect the same button on the toolbar. 
     74 
     75.. _Remove data from plot:  
     76 
     77Highlight the plot and the context menu appears.Select *remove [file name]*.  
     78The plot selected will disappear. 
     79 
     80.. _Zoom In/Out:  
     81 
     82Select the *rectangle*  button on the plot panel *toolbar*  to zoom in a  
     83region of the plot. 
     84 
     85To disable zoom mode, unselect the same button on the toolbar. After zoom in  
     86a region, select *left arrow*  or *right arrow*  button on the toolbar to set  
     87the 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  
     89details). 
     90 
     91.. _Change Scale:  
     92 
     93If the loaded data is a 1-D data changing scale or data representation will  
     94work as follows. *Right click* on the plot window. A context menu pops-up and  
     95select *Change Scale* . A dialog window titled *select the scale of the graph*  
     96will pop-up then change the *x* , the *y*  and the *view*  values as wish.  
     97The 'view' option includes the axis scale short-cuts such as Linear, Guinier,  
     98Cross-sectional (XC) Guinier, and Porod plot scale. For a proper data set,  
     99these axis scales can be used to estimate Rg, Rod diameter, or Background of  
     100neutron scattering data respectively (via 'Linear Fit'; see below). For a 2D  
     101image, *Right click*  on the image to pop-up the context menu. Select to  
     102switch from linear to log scale. The scale selected is printed on the status  
     103bar. 
     104 
     105.. _Linear Fit:  
     106 
     107Linear fit is to perform a line model fitting keeping the scale of the plot.  
     108Highlight data to fit. From the context menu select *Linear Fit* . A dialog  
     109window appears. Change model initial parameters, data limits and hit *fit*  
     110button. New parameters values are displayed and the line with the new  
     111parameters is added to the plot. Especially for Guinier, XC Guinier, and  
     112Porod plot scale, this 'Linear Fit' will provides Rg, Rod diameter, and  
     113background, respectively. The following figure shows an example for the  
     114Guinier scale. 
     115 
     116.. _Change scale 
     117 
     118If the loaded data is a 1-D data changing scale or data representation will  
     119work as follows. *Right click* on the plot window. A context menu pops-up and  
     120select *Change Scale* . A dialog window titled *select the scale of the graph*  
     121will pop-up then change the *x* , the *y*  and the *view*  values as wish.  
     122If the loaded data is an image. *Right click*  on the image to pop-up the  
     123context menu. Select to switch from linear to log scale. The scale selected is  
     124printed on the statusbar. 
     125 
     126.. image:: guinier_fit.png 
     127 
     128.. _Other Graph Modifications:  
     129 
     130Some custom modifications of the symbols, text, axis, etc of the graph are  
     131provided 
     132 
     133.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     134 
     135.. _2D data averaging 
     136 
     1372D Data Averaging 
     138----------------- 
     139 
     140Description_  
     141How to Average_  
     142Available Averagings_ 
     143Perform Circular Average_  
     144Masked Circular Average_  
     145Sector [Q view]_  
     146Annulus [Phi view]_  
     147Box Sum_  
     148Box Averaging in Qx_  
     149Box Averaging in Qy_  
     150 
     151.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     152 
     153.. _Description:  
     154 
     155This feature allows you to perform different types of averages on your data,  
     156and allows you to see what regions of the detector will contribute to the  
     157average. The region to be averaged will be drown and can be modified by  
     158dragging the lines around. 
     159 
     160.. _How to Average  
     161 
     162Right click on 2D data for the context menu to appear. Select one type of  
     163averages among *"sector [Q view]", "Annulus [Phi view]", "Box sum", "Box  
     164averaging in Qx ", "box averaging on Qy","Perform circular Average".* 
     165 
     166A slicer will appear except for *"Perform circular Average"*  that you can  
     167drag by clicking on a slicer 's marker. When the marker is highlighted in red,  
     168it means that the slicer can change size.You can also move some of the slicer  
     169by simply drag its side when highlighted in red. the slicer size will be reset  
     170to its previous size if the user try to select a region greater than the size  
     171of the data. 
     172 
     173The user can also select a region to average when a slicer has been selected  
     174already by *right clicking*  on the context menu and selecting *Edit Slicer  
     175Parameters* . The dialog window will appears and the user can enter values to  
     176selected a region or selected numbers of points to plot *nbins* . 
     177 
     178For *Box sum* , when the user selects this option, a new panel is created  
     179containing the result of average of the sum of every pixels contains on that  
     180data.The user can also enter values to select a region. 
     181 
     182.. _Available Averagings: 
     183 
     184??? 
     185 
     186.. _Perform Circular Average:  
     187 
     188It will perform and average in constant q-rings around the (x,y) pixel  
     189location of the beam center. 
     190 
     191.. _Masked Circular Average:  
     192 
     193This operation is same as 'Perform Circular Average' except that the masked  
     194region is excluded if masked. 
     195 
     196.. _Sector [Q view]:  
     197 
     198It averages in constant q-arcs. The width of the sector is specified in  
     199degrees (+/- delta phi) each direction from the central angle (phi). 
     200 
     201.. _Annulus [Phi view]:  
     202 
     203It performs an average between two q-values centered in (0,0), and averaged  
     204over a width of a specified number of pixels. The data is returned as a  
     205function of angle (phi) in degrees. Moving one circle of this slicer to  
     206radius of zero corresponding to a circular averaging on radius qmax , the  
     207outer circle. The angle zero starts from the positive x-axis direction. 
     208 
     209.. _Box Sum:  
     210 
     211Perform the sum of counts in a 2D region of interest.When editing the slicer,  
     212the user can enter the length and the width the rectangle slicer and the  
     213coordinates of the center of this rectangle. 
     214 
     215.. _Box Averaging in Qx:  
     216 
     217Computes average I(Qx) for a region of interest. When editing the slicer, the  
     218user can control the length and the width the rectangle slicer. The averaged  
     219output is calculated from the constant bins with rectangular shape. The  
     220resultant q values are nominal values, i.e., the central values of each bins  
     221on the x-axis. 
     222 
     223.. _Box Averaging in Qy:  
     224 
     225Computes average I(Qy) for a region of interest.When editing the slicer, the  
     226user can control the length and the width the rectangle slicer. The averaged  
     227output is calculated from the constant bins with rectangular shape. The  
     228resultant q values are nominal values, i.e., the central values of each bins  
     229on the y-axis. 
     230 
     231.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     232 
     233.. _Key combination 
     234 
     235Key Combination 
     236--------------- 
     237 
     238Floating Panel_  
     239Graph Context Menu_  
     240Zoom In and Out_  
     241 
     242.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 
     243 
     244.. _Floating Panel:  
     245 
     246For a graph panel to float on the top of the SV window: 
     247 
     248Press the *Ctrl(Cmd on MAC) key*  on dragging and placing a panel. Or if you  
     249want to make all plot panels float, select 'Float' from Graph/Preperences in  
     250the menu bar. Otherwise choose 'Dock'. 
     251 
     252.. _Graph Context Menu:  
     253 
     254To 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*  
     256to bring up the full menu. 
     257 
     258.. _Zoom In and Out:  
     259 
     260To Zoom in or out the full plot, *locate the mouse point inside the graph  
     261which 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  
     264mouse point near x (or y) axis just outside of the graph and then *rotate  
     265MouseWheel* .* Note that this works only on the 1D plots. 
Note: See TracChangeset for help on using the changeset viewer.