Extracting a spectrum
Python - Gatan
Access a single spectrum from a 3D STEM SI in DigitalMicrograph. This script assumes a 3D image is frontmost on the workspace.
Create and show RGB image
Python - Gatan
This script creates 3 images in Python and utilizes a DM-script to create and show a color-overlay image. It is an example of how Hybrid scripts can be used to access functionality not (yet) available in the Python language directly. The script shows how image-labels can be used to address images across the two scripts.
Output DigitalMicrograph Python help
Python - Gatan
Output Python commands of DigitalMicrograph. Output command-specific help.
Output version info
Python - Gatan
Output basic information of the used Python environment.
Simple dialogs
Python - Gatan
The input command presents a simple dialog and returns the entered string. Some other simple prompted dialogs are provided by the plugin.
Text output examples
Python - Gatan
Basic text output examples in DigitalMicrograph. By default, the output stream is sent to the Results window.
Camera acquisition
Python - Gatan
Example script showing different types of camera acquisition.
DigiScan acquisition
Python - Gatan
Example script starting a simple DigiScan acquisition via a parameter set. For more details on DigiScan access via scripting also refer to the DM-scripting documentation.
Adding annotations to an image display
Python - Gatan
Example of adding annotation components to an ImageDisplay. The script uses the front-most displayed image. If none is found, it creates and displays one.