Changeset 520
- Timestamp:
- Dec 4, 2009 5:07:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/liveplot.html
- Property rcs:date changed from 2001/12/19 18:55:42 to 2002/01/22 21:02:55
- Property rcs:lines changed from +26 -24 to +115 -38
- Property rcs:rev changed from 1.7 to 1.8
r518 r520 79 79 <H3>BKGEDIT</H3> 80 80 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!"> 81 For most refinements, it is possible to simply select a background 81 BKGEDIT is used to fit a background function to a set of points 82 selected by the user. 83 For most refinements, this is not needed, 84 as it is possible to simply select a background 82 85 function (I find that the type 1 function, 83 shifted Chebyschev polynomials, work well)86 shifted Chebyschev polynomials, works well) 84 87 and then refine, adding terms until a good fit is obtained. 85 88 On occasion, poor initial fits are obtained in this manner. This is … … 99 102 is good enough for the initial stages of refinement and that can be 100 103 refined once the model is adequate for the task. 104 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!"> 105 BKGEDIT can be used to fit GSAS background functions 1-6 (though 106 for most purposes only type 1 is needed.) 101 107 <P> 102 108 <IMG SRC="b1.gif" align=TEXTOP alt="BKGEDIT screen image"> … … 125 131 <DL><DL> 126 132 Note that it is advisable to place many background points in areas where 127 the background varies greatly.133 the background is changing rapidly (where the background is most bumpy). 128 134 </DL></DL> 129 135 As background points are entered, they are saved in a file named … … 138 144 "Background points" area. 139 145 <LI>After enough background points have been entered, the 140 "Start Fit" button turns from gray to black. When pressed, the Chebyschev 141 polynomial is fitted and the resulting curve is shown as a blue dashed line. 142 <DL><DL> 143 It is suggested that you start with relatively few 146 "Fit" button turns from gray to black. When pressed, the selected 147 background function is fitted 148 and the resulting curve is shown as a blue dashed line. 149 <DL><DL> 150 <LI>It is suggested that you start with relatively few 144 151 terms and add terms and background points as needed. 145 Note that the maximum number of Chebyschev termsincreases as152 Note that the maximum number of increases as 146 153 more background points are entered. 147 </DL></DL> 148 The "Improve Fit" button is black when the fit did not 149 converge or the number of terms has been changed. "Improve Fit" causes the 150 fit to be refined starting from the previous values. 151 <LI>Editing the Chebyschev terms is possible. The curve is reevaluated as 154 <LI>Editing the terms manually is possible. The curve is reevaluated as 152 155 changes are made. 156 <LI>For the type 3 background function (radial distribution function), 157 the R terms are listed separately from the other 158 background terms. These R (radii) values must be entered manually and 159 are not refined. 160 </DL></DL> 153 161 <LI>Once a good background function is determined, it can be saved in the 154 162 experiment file by pressing the "Save in EXP file & Exit" button. This will 155 set the background type to 1, and save the Chebyschevterms.163 set the background type, and save the terms. 156 164 It will also turn off 157 165 the background refinement flag for the appropriate histogram so that the … … 203 211 from the correct values of 0.042 and 3.0, respectively, to misleading 204 212 values of 0.036 and 0.8, 205 respectively. [As expected, the R(F<sup>2</sup>) stayed constant at 0.045; 206 FYI, refining the background caused R(F<sup>2</sup>) to drop to 0.036.] 213 respectively. [As expected, the R(F<sup>2</sup>) stayed constant at 0.045 214 with the different fixed background errors; 215 FYI, refining the background caused R(F<sup>2</sup>) to drop to 0.036, 216 so I would consider the refined background to be better.] 207 217 <P> 208 218 If the background is so truly irregular that only use of fixed background … … 211 221 The file used by BKGEDIT to save these points, 212 222 <I>EXPNAM</I><tt>.bkg</tt><I>N</I>, 213 can be read into EXPEDT by typing "@R" at the initial prompt 214 in EXPEDT:223 will define the background points if read directly into EXPEDT 224 by typing "@R" at the initial prompt in EXPEDT: 215 225 <PRE> 216 226 Is this the file you wish to use? (<?>,D,K,Q,R,Y) ><u>@r</u> … … 220 230 Enter the name of your macro file: <u>GARNET.bkg1</u> 221 231 </PRE> 222 And this will enter the background points entered into BKGEDIT as GSAS 223 fixed background points. If you do this you do not want to fit and enter 224 Note that you are allowed to use both fixed and a refined background together, 225 though this is seldom done. 232 Doing this will cause the background points you entered into BKGEDIT to 233 be used in GSAS 234 fixed background points. If you do this you do not want to save the 235 fitted background function as well, as this would effectively subtract 236 double the desired background. 237 Note that GSAS allows simultaneous use of 238 both fixed and a refined background; 239 this is seldom done. 226 240 227 241 <hr><h2>LIVEPLOT/BKGEDIT Features</h2> 242 <B>Plot contents:</B> 243 Reflection markers can be placed using the File/Tickmarks menu item 244 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!">or by pressing the 245 "1" key for phase 1, "2" for phase 2,... Note that many attributes 246 for reflection markers can be edited using 247 Options/<a href="#configTick">Configure Tickmarks</a> 248 249 <P> 250 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!"> 251 If more than one histogram is available to plot, it is possible to cycle 252 between the histograms by pressing the "n" or "N" (for next) key. 253 <P> 228 254 <a name="zoom"></a> 229 <B>Plot zooming </B>255 <B>Plot zooming:</B> 230 256 When the left (usual) mouse button is pressed, this defines one corner 231 257 of a region to be magnified, as is shown to the right. … … 248 274 the mouse, but to zoom out beyond the manual zoom limits, the "reset" button 249 275 on the manual zoom menu must be used. 250 <P>251 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!">252 If more than one histogram is available to plot, it is possible to cycle253 between the histograms by pressing the "n" or "N" (for next) key.254 276 <P> 255 277 <br clear=all> … … 292 314 293 315 <img SRC="lind1.gif" align=LEFT alt="LIVEPLOT Screen snapshot"> 294 <P> 316 295 317 <br clear=all> 318 <P> 319 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36> 320 <B>Export plot to Grace</B> 321 The plot can be exported to 322 <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://plasma-gate.weizmann.ac.il/Grace/">Grace</A>, WYSIWYG 2D plotting tool for X-Windows 323 that produces publication-quality graphics. Many UNIX users know 324 this program under a previous name, xmgr. 325 The export is implemented 326 by producing an ASCII file with instructions that 327 creates a plot with similar formatting to what appears on the 328 screen in LIVEPLOT/BKGEDIT. However, the output quality from 329 Grace is much higher quality. Further, Grace 330 can be used to enhanced and annotate the plot further. 296 331 297 332 <hr><h2>LIVEPLOT/BKGEDIT Menu Contents</h2> … … 302 337 <DT>Tickmarks 303 338 <DD>Checkbuttons are provided for each phase to determine if tick marks 304 are shown. See the Options/"Configure Tickmarks"menu item for information 305 on tickmarks 339 will be shown. 340 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!">Tickmarks can also be 341 toggled by pressing the 342 "1" key for phase 1, "2" for phase 2,... 343 Also see the Options/<a href="#configTick">Configure Tickmarks</a> 344 menu item for information 345 on tickmarks. 306 346 <DT>Histogram 307 347 <DD>This allows a histogram to be selected to be loaded … … 314 354 <DD>The causes LIVEPLOT to read read the current histogram again from 315 355 the datafile 316 <DT>Make PostScript 317 <DD>Creates a low quality PostScript file containing the LIVEPLOT 356 <DT>Export Plot 357 <DD>This offers options for exporting the plot in multiple formats. 358 I am hoping to add more export formats eventually. 359 <DL><DL> 360 <DT>to PostScript 361 <DD>Creates a <I>low quality</I> PostScript file containing the LIVEPLOT 318 362 output. See the Options/"Set PS output" button for where the file is created. 363 Most unix systems are capable or printing PostScript files. 364 On Windows, a program such ghostview may be needed to translate the 365 PostScript to a format that can be viewed or printed. 366 <A name="grace"> 367 <DT>to Grace 368 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36> 369 <DD>Plots can be exported to 370 <A HREF="http://www.nist.gov/cgi-bin/exit_nist.cgi?url=http://plasma-gate.weizmann.ac.il/Grace/">Grace</A>, WYSIWYG 2D plotting tool for X-Windows 371 that produces publication-quality graphics. 372 After the plot is exported, it can be further 373 enhanced and annotated in grace. 374 </DL></DL> 319 375 <DT>Quit 320 376 <DD>Exits BKGEDIT/LIVEPLOT. … … 324 380 <H3>Options Menu</H3> 325 381 <DL><DL> 326 <DT>Configure Tickmarks 327 <DD>Tickmarks can be placed automatically, similar to their 328 placement in POWPLOT or can be drawn one height to another. The default 382 <a name="configTick"></a> 383 <DT>Configure Tickmarks<DD> 384 This submenu provides options that controls how tickmarks are displayed. 385 <DL><DL> 386 <DT>Auto locate<DD> 387 When this option is selected, tickmarks are placed in different positions 388 for each phase, automatically, similar to how tickmarks are shown in POWPLOT. 389 <DT>Manual Placement<DD> 390 Tickmarks are drawn at specific heights that can be set for each phase 391 (see below). The default 329 392 is for lines to be draw from "-Inf" to "Inf", which creates lines from the 330 bottom to the top of the plot. The options for each phase allow the line to be changed between solid and dashed, color of the line can be specified and 331 the vertical placement of the tickmarks can be specified. The "show" flag, 332 set in the File/Tickmarks menu can also be changed here. 393 bottom to the top of the plot. 394 <DT>Label by name 395 <IMG SRC="new.gif" HEIGHT=13 WIDTH=36 alt="New!"> 396 <DD> 397 By default, a label "Phase1",... is displayed in the legend when tickmarks 398 for that phase are displayed. When this button is pressed, the first 399 20 characters of each phase name (phase title) are used instead. This 400 label can be edited, as described in the next paragraph. 401 <DT>Phase <I>n</I> opts<DD> 402 The options for each phase allow the line to be changed between 403 solid and dashed, color of the line can be specified and 404 the vertical placement of the tickmarks can be specified. The 405 "Show Reflections" flag, 406 set in the File/Tickmarks menu, 407 as well as the label used for the phase can also be changed here. 408 409 </DL></DL> 333 410 <DT>Obs Symbol (Symbol Type) 334 411 <DD>This brings up a menu where the symbol type and size for the
Note: See TracChangeset
for help on using the changeset viewer.