[386] | 1 | <html> |
---|
| 2 | <head> |
---|
[406] | 3 | <title>EXPGUI -- LIVEPLOT/BKGEDIT</title> |
---|
[518] | 4 | <meta name="keywords" content="crystallography, Rietveld, diffraction, |
---|
| 5 | GSAS, EXPGUI"> |
---|
| 6 | </HEAD> |
---|
| 7 | <style> |
---|
| 8 | A:link {text-decoration:none} |
---|
| 9 | A:vlink {text-decoration:none} |
---|
| 10 | </style> |
---|
[386] | 11 | |
---|
[518] | 12 | <BODY BGCOLOR="#FFFFFF" |
---|
| 13 | topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" |
---|
| 14 | text="#000000" link="#0033ff" vlink="#0033ff" alink="#0033ff"> |
---|
[386] | 15 | |
---|
[518] | 16 | <? |
---|
| 17 | include("/var/www/include/navigation.inc"); |
---|
| 18 | include("/var/www/include/utility.inc"); |
---|
| 19 | ?> |
---|
| 20 | <blockquote><font face="arial, helvetica, sans-serif"> |
---|
| 21 | |
---|
[386] | 22 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
| 23 | <TR><TH><A Href="expgui.html">EXPGUI top</A> |
---|
[518] | 24 | </TH><TH><A Href="excledt.html">Next page<BR>(EXCLEDT)</A> |
---|
[439] | 25 | </TH><TH><A Href="expguic.html">Previous page</A> |
---|
[386] | 26 | </TH></TR></TABLE><BR CLEAR=ALL> |
---|
| 27 | |
---|
| 28 | <center><h1> |
---|
[518] | 29 | <HR noshade width="75%" size="2" align="center"> |
---|
| 30 | EXPGUI Utilities (1),<BR>LIVEPLOT and BKGEDIT |
---|
| 31 | <HR noshade width="75%" size="2" align="center"> |
---|
[386] | 32 | </h1></center> |
---|
[406] | 33 | This page documents the LIVEPLOT and BKGEDIT utility programs |
---|
| 34 | in the EXPGUI package. |
---|
| 35 | LIVEPLOT and BKGEDIT are actually the same program, but perform |
---|
| 36 | different functions, depending on how they are invoked. |
---|
| 37 | LIVEPLOT is used to display the quality of the diffraction fit, while |
---|
| 38 | BKGEDIT is used to fit a background function to fixed background points |
---|
| 39 | that have been input by the user. |
---|
[386] | 40 | <P> |
---|
[406] | 41 | Both LIVEPLOT and BKGEDIT get the current diffraction information |
---|
[1157] | 42 | by running the GSAS TCLDUMP program. (In GSAS/EXPGUI before 2001, the |
---|
| 43 | GSAS HSTDUMP program was used, which was less powerful. This code has |
---|
| 44 | not been removed, but will not be used if TCLDUMP is present.) |
---|
[386] | 45 | |
---|
[406] | 46 | <a name="liveplot"></a> |
---|
| 47 | <H3>LIVEPLOT</H3> |
---|
| 48 | LIVEPLOT is started by pressing the LIVEPLOT button on the toolbar |
---|
| 49 | or via the Graphs/liveplot menu item. |
---|
| 50 | <P> |
---|
[386] | 51 | Some of the features available in LIVEPLOT are: |
---|
| 52 | <UL> |
---|
[1180] | 53 | <LI><IMG SRC="new.gif" alt="New!"> |
---|
| 54 | Plotting of Topas refinement results in LIVEPLOT: |
---|
| 55 | Upon request, LIVEPLOT has been augmented to read in results from |
---|
| 56 | Topas, as well as GENLES. |
---|
| 57 | <a HREF="#Topas">See below for details.</a> |
---|
| 58 | <LI><IMG SRC="new.gif" alt="New!"> |
---|
[1157] | 59 | Regions of the plot can be magnified to show more detail, for example |
---|
| 60 | in regions at high Q. |
---|
| 61 | <LI><IMG SRC="new.gif" alt="New!"> |
---|
| 62 | Plots can be <a href="#export">exported to obtain publication-quality |
---|
| 63 | graphics </a> -- <B><I>now on all platforms</I></B>. |
---|
| 64 | <LI><IMG SRC="new.gif" alt="New!"> Intensity can be displayed as I/sigma(I) |
---|
| 65 | <LI>The plot is updated automatically after each refinement run |
---|
[751] | 66 | <LI>The plot can be "zoomed-in", by clicking on the corners of the |
---|
| 67 | area to be magnified and "zoomed-out" using the |
---|
| 68 | right mouse button (Mac: Apple+click) |
---|
[386] | 69 | <LI> |
---|
| 70 | The units used for plotting histograms can be selected. Choices are: |
---|
| 71 | native units (2Theta/TOF/KeV); d-space (A) or Q (A<sup>-1</sup>) |
---|
[1157] | 72 | <LI> |
---|
| 73 | The background (fixed plus fitted) can be plotted or can be subtracted. |
---|
[386] | 74 | <LI> |
---|
| 75 | Reflection tickmarks can be displayed in a variety of formats |
---|
| 76 | <LI> |
---|
| 77 | LIVEPLOT can be coupled to the LOGIC or CMPR programs, so that |
---|
[890] | 78 | peak positions for an arbitrary unit cell and |
---|
[386] | 79 | spacegroup can be shown superimposed on the "Rietveld plot." |
---|
| 80 | <LI> |
---|
| 81 | Reflection indices (<I>hkl</I> values) can be shown for tickmarks |
---|
| 82 | <LI> |
---|
[787] | 83 | The cumulative chi<sup>2</sup> function or |
---|
[1144] | 84 | (obs-calc)/sigma can be plotted. |
---|
[580] | 85 | <LI> |
---|
| 86 | The cursor position can be displayed |
---|
[386] | 87 | </UL> |
---|
| 88 | |
---|
[406] | 89 | <a name="bkgedit"></a> |
---|
| 90 | <H3>BKGEDIT</H3> |
---|
[751] | 91 | <IMG SRC="note.gif" alt="Note!"> |
---|
[520] | 92 | BKGEDIT is used to fit a background function to a set of points |
---|
| 93 | selected by the user. |
---|
| 94 | For most refinements, this is not needed, |
---|
| 95 | as it is possible to simply select a background |
---|
[406] | 96 | function (I find that the type 1 function, |
---|
[520] | 97 | shifted Chebyschev polynomials, works well) |
---|
[406] | 98 | and then refine, adding terms until a good fit is obtained. |
---|
| 99 | On occasion, poor initial fits are obtained in this manner. This is |
---|
| 100 | most common in cases where large numbers of peaks are poorly fit. Since |
---|
| 101 | significant sections of the data are not well fit, the refinement results in |
---|
| 102 | an unreasonable background function, because this yields better agreement |
---|
| 103 | with the observed data. |
---|
| 104 | In these cases, |
---|
| 105 | it may be best to fix the background to follow a "reasonable" curve in the |
---|
| 106 | initial stages and then refine the background in the final stages of |
---|
| 107 | refinement, when a good model has been obtained. |
---|
| 108 | <P> |
---|
| 109 | The BKGEDIT program, as shown below, is used to input a set a background |
---|
| 110 | points via the mouse. The points are then used to determine a type 1 |
---|
| 111 | (Chebyschev) background function that fits the input background points. These |
---|
| 112 | terms can then be saved in the experiment file creating a background that |
---|
| 113 | is good enough for the initial stages of refinement and that can be |
---|
| 114 | refined once the model is adequate for the task. |
---|
[751] | 115 | <IMG SRC="note.gif" alt="Note!"> |
---|
[520] | 116 | BKGEDIT can be used to fit GSAS background functions 1-6 (though |
---|
| 117 | for most purposes only type 1 is needed.) |
---|
[406] | 118 | <P> |
---|
| 119 | <IMG SRC="b1.gif" align=TEXTOP alt="BKGEDIT screen image"> |
---|
| 120 | <H4>Steps in fitting a background function</H4> |
---|
| 121 | The BKGEDIT program is started from |
---|
| 122 | via the Powder/bkgedit menu item or by pressing the |
---|
| 123 | "Fit Background Graphically" button on the |
---|
[433] | 124 | <A href="expgui3.html#EditBackground">"Edit Background"</A> |
---|
[406] | 125 | dialog box (invoked from the "Edit Background" button on the |
---|
[433] | 126 | <A href="expgui3.html">Histogram pane</A>.) |
---|
[406] | 127 | toolbar |
---|
| 128 | or |
---|
| 129 | <OL> |
---|
[433] | 130 | <LI><a href="#zoom">Zoom in</a> on the lower intensity section of the |
---|
[406] | 131 | plot, so that the background is clearly discernible. In some cases, the |
---|
| 132 | data will need to be handled in sections. |
---|
| 133 | <LI>Press the "Add" button to add background points. |
---|
| 134 | Note the cursor changes from cross-hairs to an arrow, |
---|
| 135 | when the "Add" button is pressed. |
---|
| 136 | <LI>Move the mouse to the first location |
---|
| 137 | where a background point will be added and click with the left |
---|
| 138 | mouse button. A magenta triangle will appear at the location. |
---|
| 139 | Points can be added in any order. It is best to make sure that the fixed points |
---|
| 140 | are placed over the entire range of the data, e.g. near the maximum and minimum |
---|
| 141 | data points in TOF, 2theta, etc. |
---|
[386] | 142 | <DL><DL> |
---|
[406] | 143 | Note that it is advisable to place many background points in areas where |
---|
[520] | 144 | the background is changing rapidly (where the background is most bumpy). |
---|
[406] | 145 | </DL></DL> |
---|
| 146 | As background points are entered, they are saved in a file named |
---|
[552] | 147 | <I>EXPNAM</I><font face="courier">.bkg</font><I>N</I>, where |
---|
[406] | 148 | <I>EXPNAM</I> is the experiment name and <I>N</I> is the histogram number. |
---|
| 149 | If BKGEDIT is restarted at some later time, these points are reread. |
---|
| 150 | <LI>If any points are placed in incorrect positions, they can be deleted by |
---|
| 151 | pressing the "Delete" button. The mouse cursor changes to a circle. When |
---|
| 152 | the mouse left clicked, the fixed background point closest to the mouse |
---|
| 153 | position (which may be outside the zoom range) is deleted. |
---|
| 154 | <LI>Background points can also be edited by entering numbers into the |
---|
| 155 | "Background points" area. |
---|
| 156 | <LI>After enough background points have been entered, the |
---|
[520] | 157 | "Fit" button turns from gray to black. When pressed, the selected |
---|
| 158 | background function is fitted |
---|
| 159 | and the resulting curve is shown as a blue dashed line. |
---|
[406] | 160 | <DL><DL> |
---|
[520] | 161 | <LI>It is suggested that you start with relatively few |
---|
[406] | 162 | terms and add terms and background points as needed. |
---|
[520] | 163 | Note that the maximum number of increases as |
---|
[406] | 164 | more background points are entered. |
---|
[520] | 165 | <LI>Editing the terms manually is possible. The curve is reevaluated as |
---|
| 166 | changes are made. |
---|
| 167 | <LI>For the type 3 background function (radial distribution function), |
---|
| 168 | the R terms are listed separately from the other |
---|
| 169 | background terms. These R (radii) values must be entered manually and |
---|
| 170 | are not refined. |
---|
[406] | 171 | </DL></DL> |
---|
| 172 | <LI>Once a good background function is determined, it can be saved in the |
---|
| 173 | experiment file by pressing the "Save in EXP file & Exit" button. This will |
---|
[520] | 174 | set the background type, and save the terms. |
---|
[406] | 175 | It will also turn off |
---|
| 176 | the background refinement flag for the appropriate histogram so that the |
---|
| 177 | terms are not refined inadvertently. |
---|
| 178 | </OL> |
---|
| 179 | |
---|
| 180 | <P> |
---|
| 181 | Note that POWPREF must be run at least once before BKGEDIT can be used, |
---|
| 182 | however, use of |
---|
| 183 | GENLES before BKGEDIT is optional. If the data range is changed, for example |
---|
| 184 | by excluding a section of the data at the lower end, or changing tmax (dmin), |
---|
| 185 | the Chebyschev polynomial terms must change to generate the same |
---|
| 186 | background values, so both POWPREF and BKGEDIT should be rerun to |
---|
| 187 | regenerate the Chebyschev terms. |
---|
| 188 | |
---|
| 189 | <H4>Why not use fixed background points?</H4> |
---|
| 190 | I personally feel that |
---|
| 191 | a refined background function is preferrable to use of a fixed model, |
---|
| 192 | if at all possible. |
---|
| 193 | One reason for this is that Rietveld refinements usually achieve better fits |
---|
| 194 | when the background is optimized. A second reason refining the background |
---|
| 195 | provides a |
---|
| 196 | feel for the interaction between background values and displacement |
---|
| 197 | (thermal) parameters. |
---|
| 198 | Usually, background and displacement parameters are fairly independent, but |
---|
| 199 | for some materials, where the high Q (high 2theta) portion of the pattern |
---|
| 200 | has many completely overlapped peaks, it is impossible to uniquely |
---|
| 201 | determine where the |
---|
| 202 | background should be placed, either by refinement or by manual placement. |
---|
| 203 | Under these circumstances, the background should be refined with the |
---|
| 204 | displacement parameters fixed at an appropriate value for the material. The |
---|
| 205 | background should then be fixed for all future refinements |
---|
| 206 | and the displacement parameters can then be refined. <I>Of course this |
---|
| 207 | means you have predjudiced the refinement to result in the expected |
---|
| 208 | average displacement parameter and this </I><B>must</B><I> be noted |
---|
| 209 | any publication. However, if this is necessary, the data simply do not |
---|
| 210 | contain sufficient information to independently determine |
---|
| 211 | background and displacement parameters. Use of fixed background points |
---|
| 212 | would not demonstrate this and would lead the researcher to a false |
---|
| 213 | sense of security (or fear, if the values are unreasonable) |
---|
| 214 | that the displacement parameters actually mean something.</I> |
---|
| 215 | <P> |
---|
| 216 | If you still want to use fixed background points, despite this tirade, |
---|
| 217 | be sure to set the estimated |
---|
| 218 | error on those points to be 0.0. Use of non-zero estimated errors, can |
---|
| 219 | result in artificially lowered R-factors and chi-squared values. |
---|
| 220 | In one test, I was able to lower the R<sub>wp</sub> and |
---|
| 221 | reduced chi<sup>2</sup> values, |
---|
| 222 | from the correct values of 0.042 and 3.0, respectively, to misleading |
---|
| 223 | values of 0.036 and 0.8, |
---|
[520] | 224 | respectively. [As expected, the R(F<sup>2</sup>) stayed constant at 0.045 |
---|
| 225 | with the different fixed background errors; |
---|
| 226 | FYI, refining the background caused R(F<sup>2</sup>) to drop to 0.036, |
---|
| 227 | so I would consider the refined background to be better.] |
---|
[406] | 228 | <P> |
---|
| 229 | If the background is so truly irregular that only use of fixed background |
---|
| 230 | points will do, |
---|
| 231 | BKGEDIT can be used to generate these fixed background points. |
---|
| 232 | The file used by BKGEDIT to save these points, |
---|
[552] | 233 | <I>EXPNAM</I><font face="courier">.bkg</font><I>N</I>, |
---|
[520] | 234 | will define the background points if read directly into EXPEDT |
---|
| 235 | by typing "@R" at the initial prompt in EXPEDT: |
---|
[552] | 236 | <FONT FACE="COURIER"><PRE> |
---|
| 237 | Is this the file you wish to use? (?,D,K,Q,R,Y) ><u>@r</u> |
---|
| 238 | </PRE></FONT> |
---|
[406] | 239 | prompt and then supplying the name of the file, in response to the next prompt: |
---|
[552] | 240 | <FONT FACE="COURIER"><PRE> |
---|
[406] | 241 | Enter the name of your macro file: <u>GARNET.bkg1</u> |
---|
[552] | 242 | </PRE></FONT> |
---|
[520] | 243 | Doing this will cause the background points you entered into BKGEDIT to |
---|
| 244 | be used in GSAS |
---|
| 245 | fixed background points. If you do this you do not want to save the |
---|
| 246 | fitted background function as well, as this would effectively subtract |
---|
| 247 | double the desired background. |
---|
| 248 | Note that GSAS allows simultaneous use of |
---|
| 249 | both fixed and a refined background; |
---|
| 250 | this is seldom done. |
---|
[406] | 251 | |
---|
| 252 | <hr><h2>LIVEPLOT/BKGEDIT Features</h2> |
---|
[520] | 253 | <B>Plot contents:</B> |
---|
| 254 | Reflection markers can be placed using the File/Tickmarks menu item |
---|
[751] | 255 | <IMG SRC="note.gif" alt="Note!">or by pressing the |
---|
[520] | 256 | "1" key for phase 1, "2" for phase 2,... Note that many attributes |
---|
| 257 | for reflection markers can be edited using |
---|
| 258 | Options/<a href="#configTick">Configure Tickmarks</a> |
---|
| 259 | |
---|
| 260 | <P> |
---|
[787] | 261 | <a name="nexthist"></a> |
---|
[751] | 262 | <IMG SRC="note.gif" alt="Note!"> |
---|
[520] | 263 | If more than one histogram is available to plot, it is possible to cycle |
---|
| 264 | between the histograms by pressing the "n" or "N" (for next) key. |
---|
| 265 | <P> |
---|
[406] | 266 | <a name="zoom"></a> |
---|
[520] | 267 | <B>Plot zooming:</B> |
---|
[406] | 268 | When the left (usual) mouse button is pressed, this defines one corner |
---|
| 269 | of a region to be magnified, as is shown to the right. |
---|
| 270 | If the mouse is then moved, the diagonal |
---|
| 271 | corner of this magnification region is defined. When the left mouse button |
---|
| 272 | is pressed a second time, the selected section of the plot is magnified to |
---|
| 273 | fill the entire plot. |
---|
| 274 | <P> |
---|
[580] | 275 | <img SRC="mzoom.gif" align=RIGHT alt="LIVEPLOT manual zoom"> |
---|
[406] | 276 | Zoom settings are saved. |
---|
| 277 | If the right mouse button is pressed, the previous zoom setting is used, |
---|
| 278 | so that the left mouse button is used to "zoom in" and the right mouse |
---|
[751] | 279 | button is used to "zoom out." Note, on the Macintosh, hold down the |
---|
| 280 | Apple button while using the [only] mouse button to simulate a right-click. |
---|
| 281 | |
---|
[406] | 282 | <P> |
---|
[751] | 283 | <IMG SRC="note.gif" alt="Note!"> |
---|
[787] | 284 | <a name="manzoom"> |
---|
| 285 | </a>Zoom settings can also be entered manually by pressing the "Z" key. This |
---|
[482] | 286 | opens a dialog, as is shown to the right, where the x- or y-axis range |
---|
| 287 | can be specified. Any value that is not specified is set to the maximum |
---|
| 288 | or minimum for the entire dataset. It is possible to zoom further in using |
---|
| 289 | the mouse, but to zoom out beyond the manual zoom limits, the "reset" button |
---|
| 290 | on the manual zoom menu must be used. |
---|
| 291 | <P> |
---|
[787] | 292 | <a name="zoomshift"></a> |
---|
[785] | 293 | To shift the zoom region around, |
---|
| 294 | the right and left arrow keys can be used to shift the |
---|
| 295 | region 10 % to the left or right. |
---|
| 296 | Likewise, |
---|
| 297 | the up and down arrow keys can be used to shift the region up or down by 10 %. |
---|
| 298 | Holding down the control key down while pressing these keys increases |
---|
| 299 | the amount of the shift to 100 %. |
---|
| 300 | <P> |
---|
[580] | 301 | <a name="LiveCursor"></a> |
---|
| 302 | <img SRC="cursor.gif" align=RIGHT alt="LIVEPLOT live cursor"> |
---|
[751] | 303 | <IMG SRC="note.gif" alt="Note!"> |
---|
[580] | 304 | <B>Cursor Display:</B> |
---|
| 305 | Pressing the "L" (or "l") key, or using the Option/Show Cursor Position |
---|
| 306 | menu button causes the position of the cursor (mouse position) |
---|
| 307 | in plot to be shown. The coordinates are listing in a small area below |
---|
| 308 | the plot. The position display is updated as the mouse is moved. The |
---|
| 309 | same key, menu button, or the button labeled "Close cursor display" can be |
---|
| 310 | used to remove the display. |
---|
| 311 | <P> |
---|
[482] | 312 | <br clear=all> |
---|
[406] | 313 | <h2>Features in LIVEPLOT only</h2> |
---|
[464] | 314 | <img SRC="lz.gif" BORDER=3 align=RIGHT alt="LIVEPLOT Screen snapshot"> |
---|
| 315 | <a name="Cchi2"></a> |
---|
[406] | 316 | <B>The cumulative chi<sup>2</sup></B> |
---|
| 317 | function was first suggested by |
---|
| 318 | Bill David as a way to see which reflections have the greatest influence on |
---|
| 319 | chi<sup>2</sup> [W.I.F. David, <I>Accuracy in Powder Diffraction-III</I>, 2001]. |
---|
| 320 | It is defined for point j as |
---|
| 321 | <IMG SRC="cchi2.gif" alt="equation for cumulative chi2 function" ALIGN=TOP> |
---|
| 322 | where y<sub>obs,i</sub> and y<sub>calc,i</sub> are the observed and computed |
---|
| 323 | data points and sigma<sub>i</sub> is the expected error. Thus, the statistically |
---|
| 324 | expected value for |
---|
| 325 | [(y<sub>obs,i</sub>-y<sub>calc,i</sub>)/sigma<sub>i</sub>]<sup>2</sup> is 1 |
---|
| 326 | and this function should rise in a smooth line if all points are fitted as |
---|
| 327 | statistically expected. |
---|
[787] | 328 | This can be displayed using the "Cumulative Chi2" item in the Options menu. |
---|
[406] | 329 | <P> |
---|
| 330 | In the plot to the right, the cumulative chi<sup>2</sup> function is shown in |
---|
| 331 | purple. Note that first peak is not well fit, but the low angle "shoulder" is |
---|
| 332 | as important as the peak misfitting, with respect to the chi<sup>2</sup>. |
---|
[787] | 333 | <P> |
---|
| 334 | <a name="OmCoS"></a> |
---|
| 335 | <B>Plotting (Obs-Calc)/Sigma</B> |
---|
| 336 | A more traditional way to see the data points that have the worst agreement |
---|
| 337 | between observation and model is to plot the difference between these values, |
---|
| 338 | but weighted by the reciprocal of the expected uncertainty, <I>e.g.</I> |
---|
| 339 | (y<sub>obs,i</sub> - y<sub>calc,i</sub>)/sigma<sub>i</sub>, as defined above. |
---|
| 340 | The standard plot of (y<sub>obs,i</sub> - y<sub>calc,i</sub>) over-emphasizes |
---|
| 341 | minor discrepancies in strong peaks while being insensitive to very |
---|
| 342 | significant discrepancies in weaker peaks, so the |
---|
| 343 | (y<sub>obs,i</sub> - y<sub>calc,i</sub>)/sigma<sub>i</sub> is the more valuable |
---|
| 344 | plot. |
---|
| 345 | This can be displayed using the "(obs-calc)/sigma" item in the Options menu. |
---|
| 346 | |
---|
| 347 | <P> |
---|
[406] | 348 | <br clear=all> |
---|
[787] | 349 | <a name="hkl"> |
---|
| 350 | </a><img SRC="lind.gif" BORDER=3 align=RIGHT alt="LIVEPLOT Screen snapshot"> |
---|
[406] | 351 | <B>Reflection indices</B> |
---|
| 352 | are be displayed by pressing "H" or "h" while the |
---|
| 353 | mouse is near a reflection (holding the shift key while |
---|
[464] | 354 | pressing the left mouse button also works, but sometimes interferes with the |
---|
| 355 | zoom feature). |
---|
| 356 | Pressing "A" or "a" shows all reflections in the displayed region. |
---|
| 357 | The indices are shown |
---|
[433] | 358 | on the screen for phases with tickmarks (as shown to the right). |
---|
[406] | 359 | Indices are listed in the "Separate window for <I>hkl</I> labels" |
---|
| 360 | (as seen below) for all phases, regardless of the tickmark settings. |
---|
| 361 | Displayed indices will remain on the screen for a preset time and |
---|
[464] | 362 | then will be deleted; alternately, pressing "D" or "d" deletes the hkl labels. |
---|
| 363 | Several aspects of reflection labeling can be customized, |
---|
| 364 | see the <a href="#hklOpts">HKL labeling options</a> for further information. |
---|
| 365 | |
---|
| 366 | <img SRC="lind1.gif" align=LEFT alt="LIVEPLOT Screen snapshot"> |
---|
[520] | 367 | |
---|
| 368 | <br clear=all> |
---|
[406] | 369 | <P> |
---|
[1144] | 370 | <a name="magnification"></a> |
---|
| 371 | <B>Plot Magnification</B> |
---|
| 372 | Sections of the plot can be magnified through use of options in the |
---|
| 373 | Magnification menu or by using control-1 through control-9. |
---|
| 374 | <img SRC="magreg.png" align=RIGHT alt="LIVEPLOT Screen snapshot"> |
---|
| 375 | <UL> |
---|
| 376 | <LI>The Magnification/Add region menu item requests a location in the |
---|
| 377 | pattern (2Theta/TOF/KeV/d-space/Q) and a multiplier. Data where the |
---|
| 378 | scan variable (2Theta...) is of that value or higher, up to the |
---|
| 379 | next region or end of the pattern are multiplied by that factor. The |
---|
| 380 | factor, must be >0. |
---|
| 381 | <LI>Magnification/Edit regions brings up a menu (see below) where the previously |
---|
| 382 | defined regions can be changed. The region boundaries can be moved |
---|
| 383 | and the multiplier values can be changed. If a multiplier is set to |
---|
| 384 | zero (or negative) that region is removed. |
---|
| 385 | <LI>Magnification/Clear deletes all previously defined regions |
---|
| 386 | <LI>Pressing control plus a positive digit (1,2,3,...9) also adds a |
---|
| 387 | magnification region. The digit determines the magnification |
---|
| 388 | multiplier. Data where the |
---|
| 389 | scan variable (2Theta...) from the mouse position up to the |
---|
| 390 | next region or end of the pattern are multiplied by that factor. |
---|
| 391 | <img SRC="editreg.png" align=RIGHT alt="LIVEPLOT menu"> |
---|
| 392 | </UL> |
---|
| 393 | <br clear=all> |
---|
| 394 | <P> |
---|
[656] | 395 | <a name="export"></a> |
---|
| 396 | <B>Export plot options</B> |
---|
| 397 | <UL><LI> |
---|
[1157] | 398 | <IMG SRC="new.gif" alt="New!"> |
---|
| 399 | The LIVEPLOT program can export plots to to a <I>high quality</I> PDF |
---|
| 400 | file for presentations or publications using <A |
---|
| 401 | HREF="http://www.gnuplot.info/">gnuplot</A>. |
---|
| 402 | The PDF will match what is is shown on fairly |
---|
| 403 | closely with respect to colors, <A href="#plotfont">font sizes</a> |
---|
| 404 | and <a href="#zoom">zoom</a>. The new <A href="#magnification">plot magnification</a> to show detail in |
---|
| 405 | the fit and for publication increase the |
---|
| 406 | <A href="#plotfont">plot font</a> so that the figure size can be |
---|
| 407 | reduced to the standard Rietveld postage stamp, required by so many |
---|
| 408 | Journals -- allowing the text to be discerned, even if the problems in the |
---|
| 409 | fit cannot. |
---|
| 410 | <P>Starting August |
---|
| 411 | 2011, windows and Mac versions of gnuplot are included with the GSAS |
---|
| 412 | binaries; gnuplot is easily |
---|
| 413 | installed on Linux with standard tools such as yum (Redhat), |
---|
| 414 | apt-get (ubuntu) or zypper (openSuse). |
---|
| 415 | |
---|
| 416 | <P><LI> The plot can be exported to |
---|
[890] | 417 | <A HREF="http://plasma-gate.weizmann.ac.il/Grace/">Grace</A>, WYSIWYG 2D plotting tool for X-Windows |
---|
[1157] | 418 | that produces publication-quality graphics that appear very similar to |
---|
| 419 | what is seen in LIVEPLOT/BKGEDIT. Further, Grace |
---|
| 420 | can be used to enhance the plot, for example by editing captions, |
---|
| 421 | figure display options and even annotate the plot. |
---|
| 422 | Grace runs well on Linux and Mac computers; Many UNIX users know |
---|
| 423 | this program under a previous name, xmgr. |
---|
| 424 | For Windows, |
---|
| 425 | installation of <A HREF="http://cygwin.com/">Cygwin</A> is required. |
---|
| 426 | <P><LI> |
---|
[656] | 427 | For use in many other graphics programs, LIVEPLOT will produce a |
---|
| 428 | "comma separated variable" data file with the data displayed on the screen. |
---|
| 429 | The user will need to read this in, |
---|
| 430 | set line styles and scaling, etc., but this does provide an option for |
---|
| 431 | generating high-quality graphics for presentations and publications. |
---|
[1157] | 432 | <P><LI>LIVEPLOT will produce PostScript versions of the plot on the screen, |
---|
[656] | 433 | but the quality is rather low (this is a limitation of the BLT graphics |
---|
| 434 | package). |
---|
[1157] | 435 | <P><LI>LIVEPLOT/BKGFIT can also be used to prepare input for FOX (Free |
---|
| 436 | Objects for Xtallography). |
---|
| 437 | |
---|
[656] | 438 | </UL> |
---|
[1180] | 439 | <a name="Topas"></a> |
---|
| 440 | <B>Plotting of Topas refinement results in LIVEPLOT</B> |
---|
| 441 | Upon request, LIVEPLOT has been augmented to read in results from |
---|
| 442 | Topas. Follow the procedure |
---|
| 443 | <A |
---|
| 444 | HREF="http://topas.dur.ac.uk/topaswiki/doku.php?id=outputting_publication_quality_plots_using_expgui">Publication |
---|
| 445 | Quality Plots using Liveplot in EXPGUI</A> from the <A |
---|
| 446 | HREF="http://topas.dur.ac.uk/topaswiki">Durham University Topas Wiki</A> to |
---|
| 447 | generate an output file that LIVEPLOT can read. Then use the "Import |
---|
| 448 | from Topas" menu item in the File menu to open a dialog window where |
---|
| 449 | the file can be imported. It is optimal to use the extension |
---|
| 450 | <tt>.ascii</tt> for the Topas export file. |
---|
| 451 | <P> |
---|
| 452 | Note that in normal use, LIVEPLOT is started from inside EXPGUI with |
---|
| 453 | an open .EXP file. If LIVEPLOT will be used frequently for Topas, it |
---|
| 454 | may be useful to create a shortcut to start LIVEPLOT directly. This |
---|
| 455 | can be done in Windows by following these |
---|
| 456 | <A |
---|
| 457 | HREF="https://subversion.xor.aps.anl.gov/trac/EXPGUI/wiki/InstallWindows#shortcut">instructions |
---|
| 458 | to make a short cut</A>, but reference file <tt>.../expgui/liveplot</tt> |
---|
| 459 | rather than file <tt>.../expgui/expgui</tt>. Similar things can be |
---|
| 460 | done in Linux and on the Mac. |
---|
[406] | 461 | |
---|
[787] | 462 | <hr><h2>LIVEPLOT/BKGEDIT Keyboard Shortcuts</h2> |
---|
| 463 | Frequent users of LIVEPLOT & BKGEDIT will find that many useful actions |
---|
| 464 | can be performed very easily by learning the following keystroke commands. |
---|
| 465 | Note that either uppercase or lowercase letters may be used. |
---|
| 466 | <DL> |
---|
| 467 | <DT><a href="#hkl">H</a> |
---|
| 468 | <DD>Labels reflections near cursor |
---|
| 469 | <DT><a href="#hkl">A</a> |
---|
| 470 | <DD>Labels all reflections |
---|
| 471 | <DT><a href="#hkl">D</a> |
---|
| 472 | <DD>Deletes reflection labels |
---|
| 473 | <DT><a href="#manzoom">Z</a> |
---|
| 474 | <DD>Specify zoom range manually |
---|
| 475 | <DT><a href="#tickmarks">1, 2,...</a> |
---|
| 476 | <DD>Displays reflection positions (tickmarks) for histogram 1, 2 etc. |
---|
| 477 | <DT><a href="#nexthist">N</a> |
---|
| 478 | <DD>Loads next histogram |
---|
| 479 | <DT><a href="#LiveCursor">L</a> |
---|
| 480 | <DD>Turns on display of cursor position |
---|
| 481 | <DT><a href="#zoomshift">arrow keys</A> |
---|
| 482 | <DD>Moves zoom region around in plot |
---|
[1144] | 483 | <DT><a href="#mag">Control+1, 2,...</a> |
---|
| 484 | <DD>Defines a <a href="#magnification">magnification region</A> at the |
---|
| 485 | cursor location. |
---|
[787] | 486 | </DL> |
---|
| 487 | |
---|
[406] | 488 | <hr><h2>LIVEPLOT/BKGEDIT Menu Contents</h2> |
---|
| 489 | A few of these options are omitted from BKGEDIT. |
---|
[464] | 490 | <img SRC="lm1.gif" align=RIGHT alt="LIVEPLOT Menu"> |
---|
| 491 | <H3>File Menu</H3> |
---|
[406] | 492 | <DL><DL> |
---|
[787] | 493 | <a name="tickmarks"></a> |
---|
[386] | 494 | <DT>Tickmarks |
---|
| 495 | <DD>Checkbuttons are provided for each phase to determine if tick marks |
---|
[520] | 496 | will be shown. |
---|
[751] | 497 | <IMG SRC="note.gif" alt="Note!"> |
---|
| 498 | Tickmarks can also be |
---|
[520] | 499 | toggled by pressing the |
---|
| 500 | "1" key for phase 1, "2" for phase 2,... |
---|
| 501 | Also see the Options/<a href="#configTick">Configure Tickmarks</a> |
---|
| 502 | menu item for information |
---|
| 503 | on tickmarks. |
---|
[386] | 504 | <DT>Histogram |
---|
| 505 | <DD>This allows a histogram to be selected to be loaded |
---|
[482] | 506 | <DL><DL> |
---|
[751] | 507 | <IMG SRC="note.gif" alt="Note!"> |
---|
[482] | 508 | It is also possible to advance |
---|
| 509 | between the histograms by pressing the "n" or "N" (for next) key. |
---|
| 510 | </DL></DL> |
---|
[386] | 511 | <DT>Update Plot |
---|
| 512 | <DD>The causes LIVEPLOT to read read the current histogram again from |
---|
| 513 | the datafile |
---|
[520] | 514 | <DT>Export Plot |
---|
| 515 | <DD>This offers options for exporting the plot in multiple formats. |
---|
| 516 | <DL><DL> |
---|
[1157] | 517 | <DT>to PDF |
---|
| 518 | <IMG SRC="new.gif" alt="New!"> |
---|
| 519 | <DD>Creates a <I>high quality</I> PDF file that may be useful for |
---|
| 520 | presentations or publications. Note that you may wish to use |
---|
| 521 | <A href="#magnification">plot magnification</a> to show detail in |
---|
| 522 | the fit and for publication increase the |
---|
| 523 | <A href="#plotfont">plot font</a> so that the figure size can be |
---|
| 524 | reduced. |
---|
| 525 | |
---|
[520] | 526 | <DT>to PostScript |
---|
| 527 | <DD>Creates a <I>low quality</I> PostScript file containing the LIVEPLOT |
---|
[386] | 528 | output. See the Options/"Set PS output" button for where the file is created. |
---|
[520] | 529 | Most unix systems are capable or printing PostScript files. |
---|
| 530 | On Windows, a program such ghostview may be needed to translate the |
---|
| 531 | PostScript to a format that can be viewed or printed. |
---|
[1157] | 532 | |
---|
| 533 | <A name="grace"> |
---|
[520] | 534 | <DT>to Grace |
---|
[751] | 535 | <IMG SRC="note.gif" alt="Note!"> |
---|
[520] | 536 | <DD>Plots can be exported to |
---|
[890] | 537 | <A HREF="http://plasma-gate.weizmann.ac.il/Grace/">Grace</A>, WYSIWYG 2D plotting tool for X-Windows |
---|
[520] | 538 | that produces publication-quality graphics. |
---|
| 539 | After the plot is exported, it can be further |
---|
| 540 | enhanced and annotated in grace. |
---|
[1157] | 541 | |
---|
| 542 | <DT>to .csv file |
---|
| 543 | <DD>Creates a "comma separated variable" file. This contains all the |
---|
| 544 | diffraction data shown in the plot. It can be used to produce a plot |
---|
| 545 | in some other graphics program. |
---|
| 546 | <DT>Fox XML |
---|
| 547 | <DD>The Fox program provides structure solution capabilities. This |
---|
| 548 | option can be used to write data in the XML format that Fox uses. |
---|
[520] | 549 | </DL></DL> |
---|
[386] | 550 | <DT>Quit |
---|
[433] | 551 | <DD>Exits BKGEDIT/LIVEPLOT. |
---|
[386] | 552 | </DL></DL> |
---|
[406] | 553 | <br clear=all> |
---|
[464] | 554 | <img SRC="lm2.gif" align=RIGHT alt="LIVEPLOT Menu"> |
---|
[433] | 555 | <H3>Options Menu</H3> |
---|
[386] | 556 | <DL><DL> |
---|
[520] | 557 | <a name="configTick"></a> |
---|
| 558 | <DT>Configure Tickmarks<DD> |
---|
| 559 | This submenu provides options that controls how tickmarks are displayed. |
---|
[787] | 560 | <P><DL><DL> |
---|
[520] | 561 | <DT>Auto locate<DD> |
---|
| 562 | When this option is selected, tickmarks are placed in different positions |
---|
| 563 | for each phase, automatically, similar to how tickmarks are shown in POWPLOT. |
---|
| 564 | <DT>Manual Placement<DD> |
---|
| 565 | Tickmarks are drawn at specific heights that can be set for each phase |
---|
| 566 | (see below). The default |
---|
[386] | 567 | is for lines to be draw from "-Inf" to "Inf", which creates lines from the |
---|
[520] | 568 | bottom to the top of the plot. |
---|
| 569 | <DT>Label by name |
---|
[751] | 570 | <IMG SRC="note.gif" alt="Note!"> |
---|
[520] | 571 | <DD> |
---|
| 572 | By default, a label "Phase1",... is displayed in the legend when tickmarks |
---|
| 573 | for that phase are displayed. When this button is pressed, the first |
---|
| 574 | 20 characters of each phase name (phase title) are used instead. This |
---|
| 575 | label can be edited, as described in the next paragraph. |
---|
| 576 | <DT>Phase <I>n</I> opts<DD> |
---|
| 577 | The options for each phase allow the line to be changed between |
---|
| 578 | solid and dashed, color of the line can be specified and |
---|
| 579 | the vertical placement of the tickmarks can be specified. The |
---|
| 580 | "Show Reflections" flag, |
---|
| 581 | set in the File/Tickmarks menu, |
---|
| 582 | as well as the label used for the phase can also be changed here. |
---|
| 583 | |
---|
| 584 | </DL></DL> |
---|
[787] | 585 | <P> |
---|
[433] | 586 | <DT>Obs Symbol (Symbol Type) |
---|
[386] | 587 | <DD>This brings up a menu where the symbol type and size for the |
---|
[433] | 588 | observed data points (and for BKGEDIT, the fixed background points) |
---|
| 589 | can be selected. |
---|
[787] | 590 | <P> |
---|
[433] | 591 | <DT>Symbol Color |
---|
| 592 | <DD>The colors for all the displayed lines and symbols can be changed here. |
---|
[787] | 593 | <P> |
---|
[386] | 594 | <DT>X units |
---|
| 595 | <DD>The x units can be selected here. The choices are |
---|
| 596 | "as collected" (2Theta/TOF/KeV), d-space (A) or Q (A<sup>-1</sup>) |
---|
[787] | 597 | <P> |
---|
[386] | 598 | <DT>Y units |
---|
| 599 | <DD>The intensity values can be normalized by the incident spectrum |
---|
[1157] | 600 | (for energy dispersive methods) or |
---|
| 601 | <IMG SRC="new.gif" alt="New!"> can be displayed as a ratio with the |
---|
| 602 | experimental uncertainty [I<sub>obs</sub>/sigma(I<sub>obs</sub>), |
---|
| 603 | I<sub>calc</sub>/sigma(I<sub>obs</sub>) and their difference]. |
---|
[464] | 604 | </DL></DL> |
---|
| 605 | <br clear=all> |
---|
| 606 | <img SRC="lm3.gif" align=RIGHT alt="LIVEPLOT menu"> |
---|
| 607 | <a name="hklOpts"></a> |
---|
| 608 | <DL><DL> |
---|
[386] | 609 | <DT>HKL labeling |
---|
[464] | 610 | <DD>This brings up a menu that selects |
---|
| 611 | <UL><LI>Erase time: |
---|
| 612 | how long in seconds that <I>hkl</I> values are shown |
---|
| 613 | before they are erased (0 means that they are not erased), |
---|
| 614 | <LI>Label size: the size of the |
---|
| 615 | labels in pixels, |
---|
| 616 | <LI>Search Region: only reflections within this number of pixels of the mouse, |
---|
| 617 | when the "h" key is pressed (if any) are labeled, |
---|
| 618 | <LI>Separate window: when this |
---|
| 619 | option is selected, reflection labels are shown in a text window |
---|
| 620 | </UL> |
---|
[386] | 621 | <DT>Subtract background |
---|
| 622 | <DD>The background is always shown, even when subtracted |
---|
| 623 | <DT>Include legend |
---|
| 624 | <DD>The legend is the optional box in the upper left that defines the |
---|
| 625 | plot entries |
---|
[580] | 626 | <DT>Show [Hide] Cursor Position |
---|
| 627 | <DD>This turns <a href="#LiveCursor">Cursor position display</a> on and off. |
---|
[386] | 628 | <DT>Set PS output |
---|
| 629 | <DD>For UNIX this allows the file to be sent directly to a printer |
---|
| 630 | or can be saved in a file. For Windows, a file must be written. |
---|
[433] | 631 | <DT>Set screen font |
---|
| 632 | <DD>This option is used to control the font used for menus, graphics and |
---|
[1157] | 633 | other aspects of windows. This value can be saved as a default value. |
---|
| 634 | <A name="plotfont"> |
---|
| 635 | <DT>Set plot font |
---|
| 636 | <DD>This option is used to change the font used in the plot |
---|
| 637 | window. This has a similar effect to changing the screen font, but |
---|
| 638 | can be changed over a wider range and only affects the |
---|
| 639 | graph. Changing the font size either way will change the font used |
---|
| 640 | in the exported .PDF. |
---|
[386] | 641 | <DT>Raise on update |
---|
| 642 | <DD>This causes the plot to be placed on top of other windows, if partially |
---|
| 643 | obscured, when the plot is updated. At this time, this option does not |
---|
| 644 | work in Windows-NT and -2000. |
---|
| 645 | <DT>Cumulative Chi2 |
---|
[464] | 646 | <DD>The causes the Cumulative chi<sup>2</sup> function to be displayed |
---|
| 647 | (as <a href="#Cchi2">presented above</a>). |
---|
[787] | 648 | <DT>(obs-calc)/sigma |
---|
| 649 | <DD>The causes the (y<sub>obs</sub>-y<sub>calc</sub>)/sigma |
---|
| 650 | values to be displayed |
---|
| 651 | (as <a href="#OmCoS">presented above</a>). |
---|
| 652 | |
---|
[386] | 653 | <DT>Save Options |
---|
[710] | 654 | <DD>Causes many of the options set in this menu to be saved in the |
---|
| 655 | <FONT FACE="COURIER">.gsas_config</FONT> |
---|
| 656 | (or <FONT FACE="COURIER">c:\gsas.config</FONT>) file. |
---|
[386] | 657 | </DL></DL> |
---|
[406] | 658 | <br clear=all> |
---|
[386] | 659 | |
---|
| 660 | <P> |
---|
[406] | 661 | <hr><H2>Customization of LIVEPLOT & BKGEDIT</H2><A NAME="customize"></A> |
---|
[710] | 662 | The <FONT FACE="COURIER">localconfig</FONT> and |
---|
| 663 | <FONT FACE="COURIER">.gsas_config</FONT> |
---|
| 664 | (or <FONT FACE="COURIER">c:\gsas.config</FONT>) |
---|
| 665 | files are read, if present. |
---|
[406] | 666 | The following variables control how LIVEPLOT, and in most cases BKGEDIT, |
---|
| 667 | function and can be |
---|
| 668 | customized by changing their values in the |
---|
[710] | 669 | <FONT FACE="COURIER">localconfig</FONT> and |
---|
| 670 | <FONT FACE="COURIER">.gsas_config</FONT> |
---|
| 671 | (or <FONT FACE="COURIER">c:\gsas.config</FONT>) |
---|
| 672 | files. |
---|
[386] | 673 | <DL><DL> |
---|
[552] | 674 | <DT><FONT FACE="COURIER">peakinfo(flag<i>n</i>)</FONT><DD> |
---|
[386] | 675 | These variables define if peak positions will be shown |
---|
| 676 | for reflections in phase "<i>n</i>". Reflections will be shown if |
---|
| 677 | the value is non-zero. |
---|
| 678 | |
---|
[552] | 679 | <DT><FONT FACE="COURIER">peakinfo(color<i>n</i>)</FONT><DD> |
---|
[386] | 680 | These variables define the default colors for |
---|
| 681 | reflections in phase "<i>n</i>" |
---|
| 682 | |
---|
[552] | 683 | <DT><FONT FACE="COURIER">peakinfo(dashes<i>n</i>)</FONT><DD> |
---|
[386] | 684 | These variables define if peaks will be dashed for |
---|
| 685 | reflections in phase "<i>n</i>" (UNIX only). Lines will be dashed if |
---|
| 686 | the value is non-zero. |
---|
| 687 | |
---|
[552] | 688 | <DT><FONT FACE="COURIER">peakinfo(min<i>n</i>) and peakinfo(max<i>n</i>)</FONT><DD> |
---|
[386] | 689 | These variables dictate the placement vertical position for reflection |
---|
| 690 | markers, when manually placed (see expgui(autotick), below). To draw |
---|
| 691 | to the edge of the screen, use -Inf and Inf. |
---|
| 692 | </DL></DL> |
---|
| 693 | |
---|
[710] | 694 | The following variables are written to |
---|
| 695 | <font face="courier">.gsas_config</font> |
---|
| 696 | (or <FONT FACE="COURIER">c:\gsas.config</FONT>) |
---|
| 697 | when |
---|
[386] | 698 | "Save Options" is used. These variables are all set from the GUI and therefore |
---|
| 699 | do not need to be edited manually. |
---|
| 700 | |
---|
| 701 | <DL><DL> |
---|
[552] | 702 | <DT><FONT FACE="COURIER">graph(printout)</FONT><DD> |
---|
[386] | 703 | This is set to 1 if PostScript files |
---|
| 704 | will be printed and 0 if they will be written to disk (for Windows all |
---|
| 705 | files should be written to disk). |
---|
| 706 | |
---|
[552] | 707 | <DT><FONT FACE="COURIER">graph(outname)</FONT><DD> |
---|
[386] | 708 | This is the default for the file name used |
---|
| 709 | when PostScript files will be written to disk. |
---|
| 710 | |
---|
[552] | 711 | <DT><FONT FACE="COURIER">graph(outcmd)</FONT><DD> |
---|
[386] | 712 | This is the default for the command used |
---|
| 713 | to print PostScript files (Unix only). |
---|
| 714 | |
---|
[552] | 715 | <DT><FONT FACE="COURIER">graph(legend)</FONT><DD> |
---|
[433] | 716 | Sets the default value for display of the legend in LIVEPLOT and WIDPLT. |
---|
[386] | 717 | |
---|
[552] | 718 | <DT><FONT FACE="COURIER">graph(autoraise)</FONT><DD> |
---|
[386] | 719 | This option shows up in the options menu item as "Raise on update." |
---|
[406] | 720 | When set to non-zero, the LIVEPLOT window is raised |
---|
[386] | 721 | (placed on top of any other overlapping) windows |
---|
| 722 | each time it is updated. |
---|
| 723 | This option does not seem to work in Windows-NT, but this may depend on |
---|
| 724 | the version of Tcl/Tk. |
---|
| 725 | |
---|
[552] | 726 | <DT><FONT FACE="COURIER">peakinfo(obssym)</FONT><DD> |
---|
[386] | 727 | Symbol for observed data points. Valid choices are square, circle, diamond, |
---|
| 728 | plus, cross, splus and scross. |
---|
| 729 | |
---|
[552] | 730 | <DT><FONT FACE="COURIER">peakinfo(obssize)</FONT><DD> |
---|
[386] | 731 | Size for the symbol for observed data points. A value of 1 corresponds to about 1/8 inch |
---|
| 732 | (about 3 mm). |
---|
| 733 | |
---|
[552] | 734 | <DT><FONT FACE="COURIER">expgui(pixelregion)</FONT><DD> |
---|
[386] | 735 | When hkl values are loaded (using tcldump) and reflections are labeled, reflections |
---|
| 736 | can be labeled using a Shift-Left-Mouse click. All labeled reflections within expgui(pixelregion) |
---|
| 737 | pixels of the mouse position are assumed to be overlapped and are labeled. |
---|
| 738 | |
---|
[552] | 739 | <DT><FONT FACE="COURIER">expgui(fadetime)</FONT><DD> |
---|
[386] | 740 | The time in seconds before reflection labels are removed. A value of zero means that reflections |
---|
| 741 | must be deleted manually (Shift-Right-Mouse). |
---|
[751] | 742 | (Mac: Shift+Apple+click) |
---|
[552] | 743 | <DT><FONT FACE="COURIER">expgui(lblfontsize)</FONT><DD> |
---|
[386] | 744 | A size for reflections labels in pixels. |
---|
| 745 | |
---|
[552] | 746 | <DT><FONT FACE="COURIER">expgui(hklbox)</FONT><DD> |
---|
[386] | 747 | If this variable is non-zero, reflection indices are shown in a box. |
---|
| 748 | |
---|
[552] | 749 | <DT><FONT FACE="COURIER">expgui(autotick)</FONT><DD> |
---|
[386] | 750 | If this variable is non-zero, reflection markers positions are |
---|
| 751 | set automatically. |
---|
| 752 | </DL></DL> |
---|
| 753 | <P> |
---|
[751] | 754 | <hr><H2>Interfacing External Programs</H2> |
---|
| 755 | <B>Combining LIVEPLOT with CMPR & LOGIC</B> |
---|
| 756 | If you have the |
---|
[1150] | 757 | <A HREF="https://subversion.xor.aps.anl.gov/trac/CMPR">CMPR</A> |
---|
| 758 | program installed on your computer, you can use superimpose on the |
---|
[751] | 759 | GSAS results the peaks for an arbitrary unit cell. |
---|
[386] | 760 | <P> |
---|
[1150] | 761 | When the CMPR program is installed in the same location |
---|
[751] | 762 | as the GSAS package (<i>e.g.</i> |
---|
| 763 | <font face="courier">/home/gsas</font> & |
---|
| 764 | <font face="courier">/home/cmpr</font> |
---|
| 765 | or <font face="courier">C:\DIFRC\GSAS</font> & |
---|
| 766 | <font face="courier">C:\DIFRC\CMPR</font>) or if |
---|
| 767 | the CMPR/LOGIC programs are loaded into standard locations |
---|
| 768 | (<font face="courier">/usr/local/cmpr</font> or |
---|
| 769 | <font face="courier">~/cmpr</font> for Unix and Mac OSX or |
---|
| 770 | <font face="courier">c:\cmpr</font> or |
---|
| 771 | <font face="courier">c:\Program files\cmpr</font> for Windows), |
---|
| 772 | the LIVEPLOT program will locate both programs and add an extra menu labeled |
---|
| 773 | "Peak Gen" to the menu bar. If the CMPR program is not located automatically, |
---|
| 774 | you may customize this location by specifying a value for |
---|
[753] | 775 | Tcl/Tk variable cmprdir by including a line such as this: |
---|
[751] | 776 | <PRE> |
---|
| 777 | set cmprdir C:/ncnrpkg/cmpr |
---|
| 778 | </PRE> |
---|
| 779 | in the <FONT FACE="COURIER">localconfig</FONT>, |
---|
| 780 | <FONT FACE="COURIER">.gsas_config</FONT> |
---|
| 781 | or <FONT FACE="COURIER">c:\gsas.config</FONT> files |
---|
| 782 | [note that forward slashes ("/") should be used here, even for windows.] |
---|
[386] | 783 | |
---|
| 784 | <P> |
---|
[751] | 785 | The "Peak Gen" menu will have either or both of two entries |
---|
| 786 | "Display a cell" and "Plot ICDD Entry", depending on what |
---|
| 787 | software is located. The |
---|
| 788 | "Display a cell" option produces a window similar to the |
---|
[1150] | 789 | <A href="https://subversion.xor.aps.anl.gov/CMPR/trunk/doc/cmprdoc.html#editcell"> |
---|
[751] | 790 | Edit Cell feature in CMPR</A> |
---|
| 791 | where allowed reflection positions are displayed for a set of unit cell |
---|
| 792 | parameters and optionally a space group or extinction conditions. |
---|
| 793 | <P> |
---|
| 794 | Note that these routines display peak positions in units of 2Theta, Q or |
---|
| 795 | d-space. If you are using TOF or EDS data, you must select Q or d-space |
---|
| 796 | display in LIVEPLOT. If you are using 2Theta, you must supply the correct |
---|
| 797 | wavelength. |
---|
| 798 | <P> |
---|
| 799 | Note that a version of both EXPGUI and CMPR/LOGIC from November 2003 or later |
---|
| 800 | must be used for these features to work. |
---|
[386] | 801 | |
---|
| 802 | </UL> |
---|
| 803 | <hr> |
---|
| 804 | <TABLE BORDER BGCOLOR="#FFFF40" ALIGN=RIGHT> |
---|
[518] | 805 | <TR><TH><A Href="expgui.html">EXPGUI top</A> |
---|
| 806 | </TH><TH><A Href="excledt.html">Next page<BR>(EXCLEDT)</A> |
---|
[439] | 807 | </TH><TH><A Href="expguic.html">Previous page</A> |
---|
[518] | 808 | </TH></TR></TABLE> |
---|
[386] | 809 | |
---|
[518] | 810 | </blockquote> |
---|
[386] | 811 | </body> |
---|
| 812 | </html> |
---|