Skip to content

Commit 7a0e936

Browse files
update help files
1 parent 7415b2c commit 7a0e936

File tree

4 files changed

+92
-16
lines changed

4 files changed

+92
-16
lines changed

GSASII/help/images/magbuttons.png

9.13 KB
Loading

GSASII/help/powder.html

Lines changed: 89 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,30 @@
905905
</span>
906906
</a>
907907

908+
<nav class="md-nav" aria-label="Plot scaling">
909+
<ul class="md-nav__list">
910+
911+
<li class="md-nav__item">
912+
<a href="#histogram-selection" class="md-nav__link">
913+
<span class="md-ellipsis">
914+
Histogram selection
915+
</span>
916+
</a>
917+
918+
</li>
919+
920+
<li class="md-nav__item">
921+
<a href="#histogram-defaults" class="md-nav__link">
922+
<span class="md-ellipsis">
923+
Histogram defaults
924+
</span>
925+
</a>
926+
927+
</li>
928+
929+
</ul>
930+
</nav>
931+
908932
</li>
909933

910934
<li class="md-nav__item">
@@ -924,6 +948,15 @@
924948
</span>
925949
</a>
926950

951+
</li>
952+
953+
<li class="md-nav__item">
954+
<a href="#for-specific-datatree-items" class="md-nav__link">
955+
<span class="md-ellipsis">
956+
For specific datatree items
957+
</span>
958+
</a>
959+
927960
</li>
928961

929962
</ul>
@@ -1439,6 +1472,30 @@
14391472
</span>
14401473
</a>
14411474

1475+
<nav class="md-nav" aria-label="Plot scaling">
1476+
<ul class="md-nav__list">
1477+
1478+
<li class="md-nav__item">
1479+
<a href="#histogram-selection" class="md-nav__link">
1480+
<span class="md-ellipsis">
1481+
Histogram selection
1482+
</span>
1483+
</a>
1484+
1485+
</li>
1486+
1487+
<li class="md-nav__item">
1488+
<a href="#histogram-defaults" class="md-nav__link">
1489+
<span class="md-ellipsis">
1490+
Histogram defaults
1491+
</span>
1492+
</a>
1493+
1494+
</li>
1495+
1496+
</ul>
1497+
</nav>
1498+
14421499
</li>
14431500

14441501
<li class="md-nav__item">
@@ -1458,6 +1515,15 @@
14581515
</span>
14591516
</a>
14601517

1518+
</li>
1519+
1520+
<li class="md-nav__item">
1521+
<a href="#for-specific-datatree-items" class="md-nav__link">
1522+
<span class="md-ellipsis">
1523+
For specific datatree items
1524+
</span>
1525+
</a>
1526+
14611527
</li>
14621528

14631529
</ul>
@@ -1581,7 +1647,7 @@ <h1 id="overview-on-pwdr-powder-diffraction-data-tree-entries">Overview on <stro
15811647
<li><a href="powdercells.html">Unit Cells List</a></li>
15821648
<li><a href="powderrefs.html">Reflection Lists</a></li>
15831649
</ul>
1584-
<p>Clicking on the parent or on the subdata tree items, as well as <a href="powderparent.html">main (parent) entry for the histogram</a> allows access to different parameters associated with the dataset and offers different menu commands. With the exception of the Instrument Parameters subtree item, which produces a different type of plot, showing peak widths, each PWDR subtree item produces similar plots of the powder diffraction histogram, with different variations:</p>
1650+
<p>Clicking on the parent or on the subdata tree items, as well as <a href="powderparent.html">main (parent) entry for the histogram</a> allows access to different parameters associated with the dataset and offers different menu commands. With the exception of the Instrument Parameters subdata tree item, which produces a different type of plot, showing peak widths, each PWDR subdata tree item produces similar plots of the powder diffraction histogram, with different variations:</p>
15851651
<ul>
15861652
<li>By selecting the Limits entry, range of data used, as well as possible excluded regions, can be set.</li>
15871653
<li>Selecting Reflection Lists allows display of reflection indices (hkl values) for a selected phase. Letting the mouse rest unmoved at the position of a reflection in <span class="arithmatex">\(2\theta\)</span>, TOF, Q, etc. (the vertical position does not matter) will cause these to be displayed. After a short delay a "tool tip" will appear with indices for any reflections close to the lateral mouse position.</li>
@@ -1599,30 +1665,40 @@ <H3 style="color:blue;font-size:1.1em">What are the general options for the plot
15991665
<h3 id="plot-scaling">Plot scaling</h3>
16001666
<p>When the histogram is displayed by clicking on a data tree entry, the axes are initially scaled to fit the selected histogram. The plot can be rescaled a number of ways:</p>
16011667
<ul>
1602-
<li><img alt="" src="images/zoom.png" /> Clicking on the "Zoom" button allows you to trace out a box to use as new limits for the plot.</li>
1603-
<li><img alt="" src="images/pan.png" /> Clicking on "Pan" button allows the limits to be repositioned, by dragging with the left mouse button, or the increase or decrease the scaling by dragging either vertically or horizontally with the right button (control+left also works on Macs). </li>
1668+
<li><img alt="" src="images/zoom.png" /> Clicking on the "Zoom" button allows you to trace out a box to use as new limits for the plot. Use a left-mouse drag to draw a box to enclose the region to be displayed.
1669+
Note that when this mode is selected, other actions with the mouse (such as dragging plot elements, peak picking, etc.) cannot be performed. </li>
1670+
<li><img alt="" src="images/pan.png" /> Clicking on "Pan" button allows the limits to be repositioned: by dragging with the left mouse button, or increase or decrease the scaling: by dragging with the right button either vertically or horizontally (control+left also works on Macs).
1671+
Note that when this mode is selected, other actions with the mouse cannot be performed. </li>
16041672
<li><img alt="" src="images/homestack.png" /> The "Home" button resets the scale to allow the data to fit into the plot. Note that a stack of scaling values are stored. Clicking left arrow provides access to a previous scaling values and then the right button returns to later values. </li>
16051673
<li>Pressing the "s" key with the graphics window active causes the plot to enter "sqrt" plotting mode, where intensity values are shown as <span class="arithmatex">\(\sqrt I\)</span>. This also causes the tickmarks and difference plot positions to be repositioned to their initial locations. Pressing the key again exits "sqrt" plotting mode.
16061674
Pressing this key twice is a convenient way to reset the plotting scaling and tickmark positioning. </li>
16071675
<li><img alt="" src="images/KeyPress.png" /> An alternative to remembering what key to press is to use the "K" button which provides a menu of all defined key strokes and allows the action to be selected from that menu, so "sqrt" plotting mode can also be selected using this button. </li>
16081676
<li>When the main data tree item is selected, tickmarks and the difference plot location can be selected by dragging the plot item (using the left mouse button) to the desired location. </li>
1609-
<li>To specify exact values for plot limits, one can use the Commands/Set plot limits... menu command associated with main data tree item. One can select which limits are to b specified in the window that is opened, so it is possible to scale only the "x" axis. </li>
1677+
<li>To specify exact values for plot limits, one can use the Commands/"Set plot limits..." menu command (with the main PWDR data tree item only.) One can select which limits are to b specified in the window that is opened, so it is possible to scale only the "x" axis. </li>
1678+
<li><img alt="" src="images/magbuttons.png" /> The eight yellow "V" buttons can be used to reposition or rescale the plot axes. The four to the left reposition the plot limits but do not change the range. The "V" points in the direction the data move relative to the axes. The next two change the x-axis scaling and the final two change the y-axis scaling. The first of each pair zooms in (decreasing the plot range).
1679+
The advantage of using these buttons over the "Zoom" and "Pan" buttons is that these controls will not interfere with other mouse actions, while "Zoom" and "Pan" mode need to be toggled off before other mouse actions are possible. </li>
16101680
</ul>
1611-
<p>Note that plot scaling and difference/tickmark positioning is usually retained when selecting other histograms from the data tree, but only when the histogram type is the same. When moving from x-ray to neutron data, it is assumed that the scaling should be reset. </p>
1612-
<p>It is also possible to define default scaling/appearance settings for a histogram. Use the commands above to define the scaling, as well as position difference &amp; tickmark items (and then press the "!" key (or access from the "K" button. The current display settings for the histogram are saved and these settings will be used when the histogram is redisplayed by clicking on a data tree entry. This is of particular value when working with several histograms having different Q and/or intensity ranges. </p>
1681+
<h4 id="histogram-selection">Histogram selection</h4>
1682+
<p>Once a first histogram has been selected, the plot scaling and difference/tickmark positioning is usually retained unchanged when selecting other histograms from the data tree, but only when the histogram type is the same. This allows one to zoom in on a region of a pattern and then look at that region in a series of histograms. If this is not the desired behavior, use the "!" key command to set default settings for histograms.
1683+
When moving from x-ray to neutron data, for example, the scaling etc. is reset. </p>
1684+
<h4 id="histogram-defaults">Histogram defaults</h4>
1685+
<p>It is also possible to define default scaling/appearance settings for a histogram. Use the commands above to define the scaling, as well as position difference &amp; tickmark items (and then press the "!" key (or access from the "K" button). The current display settings for the histogram are saved and these settings will be used when the histogram is redisplayed by clicking on a data tree entry. This is of particular value when working with several histograms having different Q and/or intensity ranges. Note that the default settings for a histogram are saved in the project (.gpx) file. </p>
16131686
<p><a name="PWDR_plot_actions"></a>
16141687
<a name="PWDR_dragticks"></a></p>
16151688
<h3 id="plot-actions">Plot Actions</h3>
16161689
<p>Here is a list of things that one can do with the plot of diffraction patterns from the
1617-
PWDR entry and some of its subtree entries.</p>
1690+
PWDR entry and some of its subdata tree entries.</p>
16181691
<h4 id="for-all-plots">For all plots</h4>
16191692
<ul>
16201693
<li><strong>Move mouse</strong>: As the mouse cursor is moved across the plot, the plot status line will show the cursor position as <span class="arithmatex">\(2\theta\)</span> (or TOF), d-spacing, Q and the intensity.</li>
1621-
<li><strong>Press keyboard keys</strong> - See below. The "s" and "w" modes are commonly used.</li>
1622-
<li><strong>Drag tick marks</strong> - Select any tick mark and while holding the left mouse button down, move them to where you want them to be displayed (press the s key for Sqrt(I) mode to reset to the defaults). With multiple phases, selecting the 2nd phase, etc. changes the vertical spacing between phases. Tick marks can be dragged only when the main PWDR or Reflection Lists tree items are selected.</li>
1623-
<li><strong>Drag the difference curve</strong> - When the "normal" obs-calc plot is shown (as opposed to the "w" mode plot where (obs-calc)/sigma is displayed, select any point in the difference curve and while holding the left mouse button down move the curve to where you want it to be displayed (press the s key for Sqrt(I) mode to reset it to the default). The difference curve can be dragged only when the main PWDR or Reflection Lists tree items are selected.</li>
1624-
<li><strong>Display/edit histogram information</strong> - By selecting different tree items within the current histogram, it is possible to display and, in some cases, edit information associated with the histogram. See above.</li>
1694+
<li><strong>Press keyboard keys</strong> - <a href="#PWDR_keylist">See below</a>. The "s" and "w" modes are commonly used.</li>
16251695
<li><strong>Create a Publication-ready plot</strong> - Press the green "P" button to generate a customizable version of the displayed plot that can be exported at high resolution, <a href="#PWDR_publication">as discussed below</a>.</li>
1696+
</ul>
1697+
<h4 id="for-specific-datatree-items">For specific datatree items</h4>
1698+
<p>Display/edit histogram information: Each PWDR subdata tree entry offers access to different sections of the histogram data and settings. In the Data Window one can see this information, plot it and in many cases, edit information associated with the histogram. </p>
1699+
<ul>
1700+
<li><strong>Drag tickmarks</strong> - Select any tickmark and while holding the left mouse button down, move them to where you want them to be displayed (press the s key for Sqrt(I) mode to reset to the defaults). With multiple phases, selecting the 2nd phase, etc. changes the vertical spacing between phases. tickmarks can be dragged only when the main PWDR or Reflection Lists tree items are selected.</li>
1701+
<li><strong>Drag the difference curve</strong> - When the "normal" obs-calc plot is shown (as opposed to the "w" mode plot where (obs-calc)/sigma is displayed, select any point in the difference curve and while holding the left mouse button down move the curve to where you want it to be displayed (press the s key for Sqrt(I) mode to reset it to the default). The difference curve can be dragged only when the main PWDR or Reflection Lists tree items are selected.</li>
16261702
<li><strong>Highlight reflection positions</strong> - By selecting the "Reflection Lists" tree item and a phase, if the mouse is moved to the region of a reflection in that phase, a "tool tip" (temporarily displayed text) with the indices for nearby reflections is displayed.</li>
16271703
<li><strong>Label reflection positions</strong> - Right-clicking on a reflection tickmark (in the PWDR and "Reflection Lists" plots) will cause an hkl label with the indices for nearby reflection(s) to be displayed. Once a reflection label is shown, it can be dragged to a new position vertically with the left mouse button. Right-clicking on the label will delete it. All hkl labels can be deleted with a menu command. The hkl labels, including their positions, are saved in the GSAS-II project (.gpx) file.</li>
16281704
</ul>
@@ -1634,14 +1710,14 @@ <h4 id="for-line-plots">For line plots</h4>
16341710
<li><strong>a: add magnification region</strong> - Adds a magnification region to the plot and sets the magnification amount to x2. This can be edited (or deleted) in the table that is shown when the main PWDR tree entry is selected.</li>
16351711
<li><strong>b: subtract background</strong> - Subtracts the fitted background from the powder pattern. Pressing this again turns the mode off.</li>
16361712
<li><strong>c: contour on/off</strong> - if multiple powder profiles, then a contour plot is shown of the observed intensities. Data sets of differing length are padded/trimmed to match the 1st pattern.</li>
1637-
<li><strong>f: toggle full length reflection tick marks</strong> - Reflection positions are indicated when the main PDWR tree entry is selected, or when the "Reflection Lists" entry is selected by display of vertical lines. These lines can be shown as tickmarks, short lines or a thin vertical line the full length of the plot. The 'f' key toggles between the two modes.</li>
1713+
<li><strong>f: toggle full length reflection tickmarks</strong> - Reflection positions are indicated when the main PDWR tree entry is selected, or when the "Reflection Lists" entry is selected by display of vertical lines. These lines can be shown as tickmarks, short lines or a thin vertical line the full length of the plot. The 'f' key toggles between the two modes.</li>
16381714
<li><strong>g: grid lines</strong> - Toggle drawing vertical and horizontal grid lines at all axis label positions. Applies to all plot modes.</li>
16391715
<li><strong>m: toggle single/multiple plot</strong> - In single mode, this will show only the one selected from the data tree. In multiple “waterfall” mode all are superimposed; offset options (below) can be used to shift them. The selected one is displayed as points &amp; curve for obs/calc; others as obs lines only.</li>
16401716
<li><strong>n: log(I) on/off</strong> - changes the y-axis to be the log10 of the intensity; difference curve is not shown for log(I) on.</li>
16411717
<li><strong>o: remove obs...</strong> - toggle removal of the labels for obs, calc, etc (only phase names for tickmarks remain).</li>
16421718
<li><strong>p: plot partials</strong> - plots the partial contributions from each phase, if they have been computed (using Calculate/Compute partials) in addition to the </li>
16431719
<li><strong>q: toggle Q plot</strong> - changes the x-axis to Q (in Å<span class="arithmatex">\(^{-1}\)</span>). This will put multiple powder patterns taken at different wavelengths/types on the same x-axis scale.</li>
1644-
<li><strong>s: Sqrt(I) on/off</strong> - changes the y-axis to be the square-root of the intensity. The tick mark and the difference curve location is reset.</li>
1720+
<li><strong>s: Sqrt(I) on/off</strong> - changes the y-axis to be the square-root of the intensity. The tickmark and the difference curve location is reset.</li>
16451721
<li><strong>t: toggle d-space plot</strong> - changes the x-axis to d-space (in Å). This will put multiple powder patterns taken at different wavelengths/types on the same x-axis scale.</li>
16461722
<li><strong>T: toggle plot title</strong> - Removes or returns the plot title</li>
16471723
<li><strong>v: Save CSV output</strong> - exports the contents of the plot as a .csv file for use in plotting and spreadsheet programs.</li>

GSASII/help/powderindexppeaks.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ <H3 style="color:blue;font-size:1.1em">What is plotted here?</H3>
13711371

13721372
<p>The plot is the largely the same as for the parent PWDR Powder Histograms tree entry
13731373
<a href="powder.html#PWDR_plot_actions">with the same plot actions</a> and <a href="powder.html#PWDR_keylist">same key press commands</a>.
1374-
Specific to this plot are the peak positions that are shown as vertical solid blue lines. To show that a peak is selected, it is highlighted in yellow and, if "use" is selected, the blue line is made wider. The upper and lower data limits are shown as red and green dashed vertical lines, respectively. Tick marks aer not shown. Limits cannot be dragged from this data tree item. </p>
1374+
Specific to this plot are the peak positions that are shown as vertical solid blue lines. To show that a peak is selected, it is highlighted in yellow and, if "use" is selected, the blue line is made wider. The upper and lower data limits are shown as red and green dashed vertical lines, respectively. Tickmarks are not shown. Limits cannot be dragged from this data tree item. </p>
13751375
<H3 style="color:blue;font-size:1.1em">What can I do with the plot?</H3>
13761376

13771377
<ul>

GSASII/help/powderparent.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,11 +1369,11 @@ <H3 style="color:blue;font-size:1.1em">What is plotted here?</H3>
13691369

13701370
<p>The powder patterns that are part of your project are shown in the graphics window.
13711371
They can be displayed as a stack of powder patterns, just a single pattern, or as a contour image of the peak intensities, or be plotted individually.
1372-
What can be done here will depend on how many patterns are shown as well as what mode is selected. Note that the tick marks and difference curve positions can be customized, as discussed below.</p>
1372+
What can be done here will depend on how many patterns are shown as well as what mode is selected. Note that the tickmarks and difference curve positions can be customized, as discussed below.</p>
13731373
<H3 style="color:blue;font-size:1.1em">What can I do with the plot?</H3>
13741374

13751375
<p>There are a huge number of options that can be used with the plot to change different aspects of how pattern(s) are plotted. The controls are largely the same for graphics associated with the main PWDR Powder Histograms tree entry and
1376-
most subtree entries. See the <a href="powder.html">overview</a> section for the <a href="powder.html#PWDR_plot_actions">plot actions</a> and <a href="powder.html#PWDR_keylist">key press commands</a>. </p>
1376+
most subdata tree entries. See the <a href="powder.html">overview</a> section for the <a href="powder.html#PWDR_plot_actions">plot actions</a> and <a href="powder.html#PWDR_keylist">key press commands</a>. </p>
13771377

13781378

13791379

0 commit comments

Comments
 (0)