source: sasview/src/sas/guiframe/media/graph_help.rst @ 3fd3d5a4

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 3fd3d5a4 was 3fd3d5a4, checked in by smk78, 10 years ago

Proof read.

  • Property mode set to 100644
File size: 12.9 KB
RevLine 
[23a9beb]1.. graph_help.rst
[0d66541]2
[78f02c3]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.
5
[3fd3d5a4]6.. |delta| unicode:: U+03B4
7.. |phi| unicode:: U+03C6
8
9
[37bbd5f]10Plotting Data/Models
11====================
12
[3fd3d5a4]13Graph_Window_Options_
[23a9beb]14
[3fd3d5a4]15Dataset_Menu_Options_
[23a9beb]16
[3fd3d5a4]172D_Data_Averaging_
[78f02c3]18
19.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
20
[3fd3d5a4]21.. _Graph_Window_Options:
[78f02c3]22
[3fd3d5a4]23Graph Window Options
24--------------------
[78f02c3]25
[98b30b4]26Invoking_the_Graph_Menu_
[23a9beb]27
28Hide_Show_Delete_Graph_
29
[3fd3d5a4]30Drag_Plot_
[23a9beb]31
[3fd3d5a4]32Zoom_In_Out_
[23a9beb]33
[3fd3d5a4]34Save_Plot_Image_
[23a9beb]35
[3fd3d5a4]36Print_Plot_
[23a9beb]37
[3fd3d5a4]38Reset_Graph_
[23a9beb]39
[3fd3d5a4]40Graph_Modifications_
[23a9beb]41
42Change_Scale_
43
[3fd3d5a4]44Toggle_Scale_
45
462D_Color_Map_
47
48Data_Coordinates_
49
50.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
51
52.. _Dataset_Menu_Options:
53
54Dataset Menu Options
55--------------------
56
57Invoking_the_Dataset_Menu_
58
59Data_Info_
60
61Save_Data_
62
[23a9beb]63Linear_Fit_
64
[3fd3d5a4]65Remove_Data_from_Plot_
[23a9beb]66
[3fd3d5a4]67Show_Hide_Error_Bars_
68
69Modify_Plot_Property_
[23a9beb]70
[3fd3d5a4]712D Averaging
[23a9beb]72------------
[78f02c3]73
[3fd3d5a4]742D_Data_Averaging_
[78f02c3]75
[3fd3d5a4]76.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
[23a9beb]77
[3fd3d5a4]78.. _Invoking_the_Graph_Menu:
[78f02c3]79
[3fd3d5a4]80Invoking the Graph Menu
81-----------------------
82
83To invoke the *Graph Menu* simply right-click on a data/theory plot, or click
84the *Graph Menu* (bullet list) icon in the toolbar at the bottom of the plot.
85Then select a menu item.
[78f02c3]86
[23a9beb]87.. _Hide_Show_Delete_Graph:
88
89Hide/Show/Delete Graph
90----------------------
[78f02c3]91
[3fd3d5a4]92To expand a plot window, click the *Maximise* (square) icon in the top-right
93corner.
[78f02c3]94
[3fd3d5a4]95To shrink a plot window, click the *Restore down* (square-on-square) icon in
96the top-right corner.
[78f02c3]97
[3fd3d5a4]98To hide a plot, click the *Minimise* (-) icon in the top-right corner of the
99plot window.
[23a9beb]100
[3fd3d5a4]101To show a hidden plot, select the *Restore up* (square-on-square) icon on the
102minimised window.
103
104To delete a plot, click the *Close* (x) icon in the top-right corner of the
105plot window.
106
107*NOTE! If a residuals graph (when fitting data) is hidden, it will not show up
108after computation.*
109
110.. _Drag_Plot:
111
112Drag Plot
[23a9beb]113---------
114
[3fd3d5a4]115Select the *Pan* (crossed arrows) icon in the toolbar at the bottom of the plot
116to activate this option. Move the mouse pointer to the plot. It will change to
117a hand. Then left-click and drag the plot around. The axis values will adjust
118accordingly.
119 
120To disable dragging mode, unselect the *crossed arrows* icon on the toolbar.
[23a9beb]121
[3fd3d5a4]122.. _Zoom_In_Out:
[23a9beb]123
[3fd3d5a4]124Zoom In/Out
125-----------
[78f02c3]126
[3fd3d5a4]127Select the *Zoom* (magnifying glass) button in the toolbar at the bottom of
128the plot to activate this option. Move the mouse pointer to the plot. It will
129change to a cross-hair. Then left-click and drag the pointer around to generate
130a region of interest. Release the mouse button to generate the new view.
[78f02c3]131
[3fd3d5a4]132To disable zoom mode, unselect the *Zoom* button on the toolbar.
[78f02c3]133
[3fd3d5a4]134After zooming in on a a region, the *left arrow* or *right arrow* buttons on
135the toolbar will switch between recent views.
[78f02c3]136
[3fd3d5a4]137*NOTE! If a wheel mouse is available scrolling the wheel will zoom in/out
138on the current plot (changing both axes). Alternatively, point at the numbers
139on one axis and scroll the wheel to zoom in/out on just that axis.*
[78f02c3]140
[3fd3d5a4]141To return to the original view of the data, click the the *Reset* (home) icon
142in the toolbar at the bottom of the plot (see Reset_Graph_ for further details).
[23a9beb]143
[3fd3d5a4]144.. _Save_Plot_Image:
145
146Save Plot Image
147---------------
[78f02c3]148
[3fd3d5a4]149To save the current plot as an image file, right click on the plot to bring up
150the *Graph Menu* (see Invoking_the_Graph_Menu_) and select *Save Image*.
151Alternatively, click on the *Save* (floppy disk) icon in the toolbar at the
152bottom of the plot.
153 
154A dialog window will open. Select a folder, enter a filename, choose an output
155image type, and click *Save*.
156
157The currently supported image types are:
158
159*  EPS (encapsulated postscript)
160*  EMF (enhanced metafile)
161*  JPG/JPEG (joint photographics experts group)
162*  PDF (portable documant format)
163*  PNG (portable network graphics)
164*  PS (postscript)
165*  RAW/RGBA (bitmap)
166*  SVG/SVGA (scalable vector graphics)
167*  TIF/TIFF (tagged iamge file)
168
169.. _Print_Plot:
170
171Print Plot
172----------
[78f02c3]173
[3fd3d5a4]174To send the current plot to a printer, click on the *Print* (printer) icon in
175the toolbar at the bottom of the plot.
[78f02c3]176
[3fd3d5a4]177.. _Reset_Graph:
178
179Reset Graph
[23a9beb]180-----------
[78f02c3]181
[3fd3d5a4]182To reset the axis range of a graph to its initial values select *Reset Graph
183Range* on the *Graph Menu* (see Invoking_the_Graph_Menu_). Alternatively, use
184the *Reset* (home) icon in the toolbar at the bottom of the plot.
[78f02c3]185
[3fd3d5a4]186.. _Graph_Modifications:
[78f02c3]187
[3fd3d5a4]188Graph Modifications
189-------------------
[23a9beb]190
[3fd3d5a4]191From the *Graph Menu* (see Invoking_the_Graph_Menu_) it is also possible to
192make some custom modifications to plots, including:
[23a9beb]193
[3fd3d5a4]194*  changing the plot window title
195*  changing the axis legend locations
196*  changing the axis legend label text
197*  changing the axis legend label units
198*  changing the axis legend label font & font colour
199*  adding/removing a text string
200*  adding a grid overlay
[23a9beb]201
202.. _Change_Scale:
203
204Change Scale
205------------
[78f02c3]206
[3fd3d5a4]207This menu option is only available with 1D data.
208
209From the *Graph Menu* (see Invoking_the_Graph_Menu_) select *Change Scale*. A
210dialog window will appear in which it is possible to choose different
211transformations of the x (usually Q) or y (usually I(Q)) axes, including:
212
213*  x, x^2, x^4, ln(x), log10(x), log10(x^4)
214*  y, 1/y, ln(y), y^2, y.(x^4), 1/sqrt(y),
215*  log10(y), ln(y.x), ln(y.x^2), ln(y.x^4), log10(y.x^4)
216 
217A *View* option includes short-cuts to common SAS transformations, such as:
218
219*  linear
220*  Guinier
221*  X-sectional Guinier
222*  Porod
223*  Kratky
224
225For properly corrected and scaled data, these SAS transformations can be used
226to estimate, for example, Rg, rod diameter, or SANS incoherent background
227levels, via a linear fit (see Linear_Fit_).
228
229.. _Toggle_Scale:
230
231Toggle Scale
232------------
233
234This menu option is only available with 2D data.
235
236From the *Graph Menu* (see Invoking_the_Graph_Menu_) select *Toggle Linear/Log
237Scale* to switch between a linear to log intensity scale. The type of scale
238selected is written alongside the colour scale.
239
240.. _2D_Color_Map:
241
2422D Color Map
243------------
244
245This menu option is only available with 2D data.
246
247From the *Graph Menu* (see Invoking_the_Graph_Menu_) select *2D Color Map* to
248choose a different color scale for the image and/or change the maximum or
249minimum limits of the scale.
250
251.. _Data_Coordinates:
252
253Data Coordinates
254----------------
255
256Clicking anywhere in the plot window will cause the current coordinates to be
257displayed in the status bar at the very bottom-left of the SasView window.
258 
259.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
[23a9beb]260
[3fd3d5a4]261.. _Invoking_the_Dataset_Menu:
[78f02c3]262
[3fd3d5a4]263Invoking_the_Dataset_Menu
264-------------------------
265
266From the *Graph Menu* (see Invoking_the_Graph_Menu_) highlight a plotted
267dataset.
268
269.. _Data_Info:
270
271Data Info
272---------
273
274In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), highlight a data set
275and select *DataInfo* to bring up a data information dialog panel for that
276data set.
277
278.. _Save_Data:
279
280Save Data
281---------
282
283In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Save Points as
284a File* (if 1D data) or *Save as a file(DAT)* (if 2D data). A save dialog will
285appear.
286
2871D data can be saved in either ASCII text (.TXT) or CanSAS/SASXML (.XML)
288formats (see 1D_Formats_). 2D data can only be saved in the NIST 2D format
289(.DAT) (see 2D_Formats_).
[78f02c3]290
[23a9beb]291.. _Linear_Fit:
[78f02c3]292
[23a9beb]293Linear Fit
294----------
[78f02c3]295
[3fd3d5a4]296Linear fit performs a simple ( y(x)=ax+b ) linear fit within the plot window.
297
298In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Linear Fit*. A
299fitting dialog will appear. Set some initial parameters and data limits and
300click *Fit*. The fitted parameter values are displayed and the resulting line
301calculated from them is added to the plot.
302
303This option is most useful for performing simple Guinier, XS Guinier, and
304Porod type analyses, for example, to estimate Rg, a rod diameter, or incoherent
305background level, respectively.
306
307The following figure shows an example of a Guinier analysis using this option
[78f02c3]308
309.. image:: guinier_fit.png
310
[3fd3d5a4]311.. _Remove_Data_from_Plot:
[23a9beb]312
[3fd3d5a4]313Remove Data from Plot
314---------------------
315
316In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Remove*. The
317selected data will be removed from the plot.
318
319*NOTE! This action cannot be undone.*
[78f02c3]320
[3fd3d5a4]321.. _Show_Hide_Error_Bars:
322
323Show/Hide Error Bars
324--------------------
325
326In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Show Error Bar* 
327or *Hide Error Bar* to switch between showing/hiding the errors associated
328with the chosen dataset.
329
330.. _Modify_Plot_Property:
331
332Modify Plot Property
333--------------------
334
335In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Modify Plot
336Property* to change the size, color, or shape of the displayed marker for the
337chosen dataset, or to change the dataset label that appears on the plot.
[78f02c3]338
339.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
340
[23a9beb]341.. _2D_Data_Averaging:
[78f02c3]342
3432D Data Averaging
344-----------------
345
[3fd3d5a4]346Purpose_
[23a9beb]347
348How_to_Average_
349
350Available_Averagings_
351
352Unmasked_Circular_Average_
353
354Masked_Circular_Average_
355
356Sector_Average_
357
358Annular_Average_
359
360Box_Sum_
361
362Box_Averaging_in_Qx_
363
364Box_Averaging_in_Qy_
[78f02c3]365
366.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
367
[3fd3d5a4]368.. Purpose:
[78f02c3]369
[3fd3d5a4]370Purpose
371-------
372
373This feature is only available with 2D data.
[23a9beb]374
[3fd3d5a4]3752D data averaging allows you to perform different types of averages on your
376data. The region to be averaged is displayed in the plot window and its limits
377can be modified by dragging the boundaries around.
[78f02c3]378
[23a9beb]379.. _How_to_Average:
380
381How to Average
382--------------
[78f02c3]383
[3fd3d5a4]384In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select one of the
385following averages
[78f02c3]386
[3fd3d5a4]387*  Perform Circular Average
388*  Sector [Q view]
389*  Annulus [Phi view]
390*  Box sum
391*  Box averaging in Qx
392*  Box averaging on Qy
[78f02c3]393
[3fd3d5a4]394A 'slicer' will appear (except for *Perform Circular Average*) in the plot that
395you can drag by clicking on a slicer's handle. When the handle is highlighted
396in red, it means that the slicer can move/change size.
[78f02c3]397
[3fd3d5a4]398*NOTE! The slicer size will reset if you try to select a region greater than
399the size of the data.*
400
401Alternatively, once a 'slicer' is active you can also select the region to
402average by bringing back the *Dataset Menu* and selecting *Edit Slicer
403Parameters*. A dialog window will appear in which you can enter values to
404define a region or select the number of points to plot (*nbins*).
405
406A separate plot window will also have appeared, displaying the requested
407average.
408
409*NOTE! The displayed average only updates when input focus is moved back to
410that window; ie, when the mouse pointer is moved onto that plot.*
411
412Selecting *Box Sum* automatically brings up the 'Slicer Parameters' dialog in
413order to display the average numerically, rather than graphically.
414
415To remove a 'slicer', bring back the *Dataset menu* and select *Clear Slicer*.
[78f02c3]416
[23a9beb]417.. _Available_Averagings:
418
419Available Averagings
420--------------------
[78f02c3]421
[3fd3d5a4]422The available averages are
[78f02c3]423
[23a9beb]424.. _Unmasked_Circular_Average:
[78f02c3]425
[23a9beb]426Unmasked Circular Average
427-------------------------
428
[3fd3d5a4]429This operation will perform an average in constant Q-rings around the (x,y)
430pixel location of the beam center.
[78f02c3]431
[23a9beb]432.. _Masked_Circular_Average:
433
434Masked Circular Average
435-----------------------
[78f02c3]436
[3fd3d5a4]437This operation is the same as 'Unmasked Circular Average' except that any
438masked region is excluded.
[78f02c3]439
[23a9beb]440.. _Sector_Average:
441
442Sector Average [Q View]
443-----------------------
444
[3fd3d5a4]445This operation averages in constant Q-arcs.
446
447The width of the sector is specified in degrees (+/- |delta|\|phi|\) each side
448of the central angle (|phi|\).
[78f02c3]449
[23a9beb]450.. _Annular_Average:
[78f02c3]451
[3fd3d5a4]452Annular Average [|phi| View]
453----------------------------
454
455This operation performs an average between two Q-values centered on (0,0),
456and averaged over a specified number of pixels.
[78f02c3]457
[3fd3d5a4]458The data is returned as a function of angle (|phi|\) in degrees with zero
459degrees at the 3 O'clock position.
[78f02c3]460
[23a9beb]461.. _Box_Sum:
462
463Box Sum
464-------
[78f02c3]465
[3fd3d5a4]466This operation performs a sum of counts in a 2D region of interest.
467
468When editing the slicer parameters, the user can enter the length and the width
469the rectangular slicer and the coordinates of the center of the rectangle.
[78f02c3]470
[23a9beb]471.. _Box_Averaging_in_Qx:
472
473Box Averaging in Qx
474-------------------
[78f02c3]475
[3fd3d5a4]476This operation computes an average I(Qx) for the region of interest.
477
478When editing the slicer parameters, the user can control the length and the
479width the rectangular slicer. The averaged output is calculated from constant
480bins with rectangular shape. The resultant Q values are nominal values, that
481is, the central value of each bin on the x-axis.
[78f02c3]482
[23a9beb]483.. _Box_Averaging_in_Qy:
484
485Box Averaging in Qy
486-------------------
[78f02c3]487
488
[3fd3d5a4]489This operation computes an average I(Qy) for the region of interest.
[23a9beb]490
[3fd3d5a4]491When editing the slicer parameters, the user can control the length and the
492width the rectangular slicer. The averaged output is calculated from constant
493bins with rectangular shape. The resultant Q values are nominal values, that
494is, the central value of each bin on the x-axis.
[78f02c3]495
[3fd3d5a4]496.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
[78f02c3]497
[3fd3d5a4]498.. note::  This help document was last changed by Steve King, 18Feb2015
Note: See TracBrowser for help on using the repository browser.