source: sasview/src/sas/guiframe/media/graph_help.rst @ 2df0b74

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 2df0b74 was 1394952, checked in by smk78, 10 years ago

Fixed links to anchors in different .rst file (thank you Paul K).

  • 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)
[1394952]288formats (see :ref:`1D_Formats`).
289
2902D data can only be saved in the NIST 2D format (.DAT) (see :ref:`2D_Formats`).
[78f02c3]291
[23a9beb]292.. _Linear_Fit:
[78f02c3]293
[23a9beb]294Linear Fit
295----------
[78f02c3]296
[3fd3d5a4]297Linear fit performs a simple ( y(x)=ax+b ) linear fit within the plot window.
298
299In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Linear Fit*. A
300fitting dialog will appear. Set some initial parameters and data limits and
301click *Fit*. The fitted parameter values are displayed and the resulting line
302calculated from them is added to the plot.
303
304This option is most useful for performing simple Guinier, XS Guinier, and
305Porod type analyses, for example, to estimate Rg, a rod diameter, or incoherent
306background level, respectively.
307
308The following figure shows an example of a Guinier analysis using this option
[78f02c3]309
310.. image:: guinier_fit.png
311
[3fd3d5a4]312.. _Remove_Data_from_Plot:
[23a9beb]313
[3fd3d5a4]314Remove Data from Plot
315---------------------
316
317In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Remove*. The
318selected data will be removed from the plot.
319
320*NOTE! This action cannot be undone.*
[78f02c3]321
[3fd3d5a4]322.. _Show_Hide_Error_Bars:
323
324Show/Hide Error Bars
325--------------------
326
327In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Show Error Bar* 
328or *Hide Error Bar* to switch between showing/hiding the errors associated
329with the chosen dataset.
330
331.. _Modify_Plot_Property:
332
333Modify Plot Property
334--------------------
335
336In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select *Modify Plot
337Property* to change the size, color, or shape of the displayed marker for the
338chosen dataset, or to change the dataset label that appears on the plot.
[78f02c3]339
340.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
341
[23a9beb]342.. _2D_Data_Averaging:
[78f02c3]343
3442D Data Averaging
345-----------------
346
[3fd3d5a4]347Purpose_
[23a9beb]348
349How_to_Average_
350
351Available_Averagings_
352
353Unmasked_Circular_Average_
354
355Masked_Circular_Average_
356
357Sector_Average_
358
359Annular_Average_
360
361Box_Sum_
362
363Box_Averaging_in_Qx_
364
365Box_Averaging_in_Qy_
[78f02c3]366
367.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
368
[3fd3d5a4]369.. Purpose:
[78f02c3]370
[3fd3d5a4]371Purpose
372-------
373
374This feature is only available with 2D data.
[23a9beb]375
[3fd3d5a4]3762D data averaging allows you to perform different types of averages on your
377data. The region to be averaged is displayed in the plot window and its limits
378can be modified by dragging the boundaries around.
[78f02c3]379
[23a9beb]380.. _How_to_Average:
381
382How to Average
383--------------
[78f02c3]384
[3fd3d5a4]385In the *Dataset Menu* (see Invoking_the_Dataset_Menu_), select one of the
386following averages
[78f02c3]387
[3fd3d5a4]388*  Perform Circular Average
389*  Sector [Q view]
390*  Annulus [Phi view]
391*  Box sum
392*  Box averaging in Qx
393*  Box averaging on Qy
[78f02c3]394
[3fd3d5a4]395A 'slicer' will appear (except for *Perform Circular Average*) in the plot that
396you can drag by clicking on a slicer's handle. When the handle is highlighted
397in red, it means that the slicer can move/change size.
[78f02c3]398
[3fd3d5a4]399*NOTE! The slicer size will reset if you try to select a region greater than
400the size of the data.*
401
402Alternatively, once a 'slicer' is active you can also select the region to
403average by bringing back the *Dataset Menu* and selecting *Edit Slicer
404Parameters*. A dialog window will appear in which you can enter values to
405define a region or select the number of points to plot (*nbins*).
406
407A separate plot window will also have appeared, displaying the requested
408average.
409
410*NOTE! The displayed average only updates when input focus is moved back to
411that window; ie, when the mouse pointer is moved onto that plot.*
412
413Selecting *Box Sum* automatically brings up the 'Slicer Parameters' dialog in
414order to display the average numerically, rather than graphically.
415
416To remove a 'slicer', bring back the *Dataset menu* and select *Clear Slicer*.
[78f02c3]417
[23a9beb]418.. _Available_Averagings:
419
420Available Averagings
421--------------------
[78f02c3]422
[3fd3d5a4]423The available averages are
[78f02c3]424
[23a9beb]425.. _Unmasked_Circular_Average:
[78f02c3]426
[23a9beb]427Unmasked Circular Average
428-------------------------
429
[3fd3d5a4]430This operation will perform an average in constant Q-rings around the (x,y)
431pixel location of the beam center.
[78f02c3]432
[23a9beb]433.. _Masked_Circular_Average:
434
435Masked Circular Average
436-----------------------
[78f02c3]437
[3fd3d5a4]438This operation is the same as 'Unmasked Circular Average' except that any
439masked region is excluded.
[78f02c3]440
[23a9beb]441.. _Sector_Average:
442
443Sector Average [Q View]
444-----------------------
445
[3fd3d5a4]446This operation averages in constant Q-arcs.
447
448The width of the sector is specified in degrees (+/- |delta|\|phi|\) each side
449of the central angle (|phi|\).
[78f02c3]450
[23a9beb]451.. _Annular_Average:
[78f02c3]452
[3fd3d5a4]453Annular Average [|phi| View]
454----------------------------
455
456This operation performs an average between two Q-values centered on (0,0),
457and averaged over a specified number of pixels.
[78f02c3]458
[3fd3d5a4]459The data is returned as a function of angle (|phi|\) in degrees with zero
460degrees at the 3 O'clock position.
[78f02c3]461
[23a9beb]462.. _Box_Sum:
463
464Box Sum
465-------
[78f02c3]466
[3fd3d5a4]467This operation performs a sum of counts in a 2D region of interest.
468
469When editing the slicer parameters, the user can enter the length and the width
470the rectangular slicer and the coordinates of the center of the rectangle.
[78f02c3]471
[23a9beb]472.. _Box_Averaging_in_Qx:
473
474Box Averaging in Qx
475-------------------
[78f02c3]476
[3fd3d5a4]477This operation computes an average I(Qx) for the region of interest.
478
479When editing the slicer parameters, the user can control the length and the
480width the rectangular slicer. The averaged output is calculated from constant
481bins with rectangular shape. The resultant Q values are nominal values, that
482is, the central value of each bin on the x-axis.
[78f02c3]483
[23a9beb]484.. _Box_Averaging_in_Qy:
485
486Box Averaging in Qy
487-------------------
[78f02c3]488
489
[3fd3d5a4]490This operation computes an average I(Qy) for the region of interest.
[23a9beb]491
[3fd3d5a4]492When editing the slicer parameters, the user can control the length and the
493width the rectangular slicer. The averaged output is calculated from constant
494bins with rectangular shape. The resultant Q values are nominal values, that
495is, the central value of each bin on the x-axis.
[78f02c3]496
[3fd3d5a4]497.. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ
[78f02c3]498
[3fd3d5a4]499.. note::  This help document was last changed by Steve King, 18Feb2015
Note: See TracBrowser for help on using the repository browser.