Skip to content

Commit 8e58bd3

Browse files
committed
more help documentation
1 parent f7eeb3b commit 8e58bd3

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

MDhelp/docs/images/magbuttons.png

9.13 KB
Loading

MDhelp/docs/powder.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Each powder diffraction dataset has a [main (parent) entry](./powderparent.md)
1616
* [Unit Cells List](./powdercells.md)
1717
* [Reflection Lists](./powderrefs.md)
1818

19-
Clicking on the parent or on the subdata tree items, as well as [main (parent) entry for the histogram](./powderparent.md) 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:
19+
Clicking on the parent or on the subdata tree items, as well as [main (parent) entry for the histogram](./powderparent.md) 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:
2020

2121
* By selecting the Limits entry, range of data used, as well as possible excluded regions, can be set.
2222
* 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 \(2\theta\), 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.
@@ -33,34 +33,47 @@ Clicking on the parent or on the subdata tree items, as well as [main (parent) e
3333

3434
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:
3535

36-
* ![](./images/zoom.png) Clicking on the "Zoom" button allows you to trace out a box to use as new limits for the plot.
37-
* ![](./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).
36+
* ![](./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.
37+
Note that when this mode is selected, other actions with the mouse (such as dragging plot elements, peak picking, etc.) cannot be performed.
38+
* ![](./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).
39+
Note that when this mode is selected, other actions with the mouse cannot be performed.
3840
* ![](./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.
3941
* Pressing the "s" key with the graphics window active causes the plot to enter "sqrt" plotting mode, where intensity values are shown as $\sqrt I$. This also causes the tickmarks and difference plot positions to be repositioned to their initial locations. Pressing the key again exits "sqrt" plotting mode.
4042
Pressing this key twice is a convenient way to reset the plotting scaling and tickmark positioning.
4143
* ![](./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.
4244
* 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.
43-
* 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.
45+
* 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.
46+
* ![](./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).
47+
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.
4448

45-
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.
49+
#### Histogram selection
4650

47-
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 & 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.
51+
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.
52+
When moving from x-ray to neutron data, for example, the scaling etc. is reset.
53+
54+
#### Histogram defaults
55+
56+
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 & 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.
4857

4958
<a name="PWDR_plot_actions"></a>
5059
<a name="PWDR_dragticks"></a>
5160
### Plot Actions
5261

5362
Here is a list of things that one can do with the plot of diffraction patterns from the
54-
PWDR entry and some of its subtree entries.
63+
PWDR entry and some of its subdata tree entries.
5564

5665
#### For all plots
5766

5867
* **Move mouse**: As the mouse cursor is moved across the plot, the plot status line will show the cursor position as \(2\theta\) (or TOF), d-spacing, Q and the intensity.
59-
* **Press keyboard keys** - See below. The "s" and "w" modes are commonly used.
60-
* **Drag tick marks** - 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.
61-
* **Drag the difference curve** - 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.
62-
* **Display/edit histogram information** - 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.
68+
* **Press keyboard keys** - [See below](#PWDR_keylist). The "s" and "w" modes are commonly used.
6369
* **Create a Publication-ready plot** - Press the green "P" button to generate a customizable version of the displayed plot that can be exported at high resolution, [as discussed below](#PWDR_publication).
70+
71+
#### For specific datatree items
72+
73+
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.
74+
75+
* **Drag tickmarks** - 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.
76+
* **Drag the difference curve** - 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.
6477
* **Highlight reflection positions** - 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.
6578
* **Label reflection positions** - 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.
6679

@@ -74,14 +87,14 @@ The following key press characters have defined actions. These actions can also
7487
* **a: add magnification region** - 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.
7588
* **b: subtract background** - Subtracts the fitted background from the powder pattern. Pressing this again turns the mode off.
7689
* **c: contour on/off** - 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.
77-
* **f: toggle full length reflection tick marks** - 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.
90+
* **f: toggle full length reflection tickmarks** - 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.
7891
* **g: grid lines** - Toggle drawing vertical and horizontal grid lines at all axis label positions. Applies to all plot modes.
7992
* **m: toggle single/multiple plot** - 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 & curve for obs/calc; others as obs lines only.
8093
* **n: log(I) on/off** - changes the y-axis to be the log10 of the intensity; difference curve is not shown for log(I) on.
8194
* **o: remove obs...** - toggle removal of the labels for obs, calc, etc (only phase names for tickmarks remain).
8295
* **p: plot partials** - plots the partial contributions from each phase, if they have been computed (using Calculate/Compute partials) in addition to the
8396
* **q: toggle Q plot** - changes the x-axis to Q (in Å$^{-1}$). This will put multiple powder patterns taken at different wavelengths/types on the same x-axis scale.
84-
* **s: Sqrt(I) on/off** - changes the y-axis to be the square-root of the intensity. The tick mark and the difference curve location is reset.
97+
* **s: Sqrt(I) on/off** - changes the y-axis to be the square-root of the intensity. The tickmark and the difference curve location is reset.
8598
* **t: toggle d-space plot** - 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.
8699
* **T: toggle plot title** - Removes or returns the plot title
87100
* **v: Save CSV output** - exports the contents of the plot as a .csv file for use in plotting and spreadsheet programs.

MDhelp/docs/powderindexppeaks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This window shows the list of peaks that will be used for indexing (see [Unit Ce
2121

2222
The plot is the largely the same as for the parent PWDR Powder Histograms tree entry
2323
[with the same plot actions](./powder.md#PWDR_plot_actions) and [same key press commands](./powder.md#PWDR_keylist).
24-
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.
24+
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.
2525

2626
<H3 style="color:blue;font-size:1.1em">What can I do with the plot?</H3>
2727

MDhelp/docs/powderparent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ where the sum is over the points (N) in the profile delimited by the Limits (see
2424

2525
The powder patterns that are part of your project are shown in the graphics window.
2626
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.
27-
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.
27+
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.
2828

2929
<H3 style="color:blue;font-size:1.1em">What can I do with the plot?</H3>
3030

3131
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
32-
most subtree entries. See the [overview](./powder.md) section for the [plot actions](./powder.md#PWDR_plot_actions) and [key press commands](./powder.md#PWDR_keylist).
32+
most subdata tree entries. See the [overview](./powder.md) section for the [plot actions](./powder.md#PWDR_plot_actions) and [key press commands](./powder.md#PWDR_keylist).

0 commit comments

Comments
 (0)