Text output examples
Python - Gatan
Basic text output examples in DigitalMicrograph. By default, the output stream is sent to the Results window.
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.
Output version info
Python - Gatan
Output basic information of the used Python environment.
Output DM Python help
Python - Gatan
Output Python commands of DigitalMicrograph. Output command-specific help.
Microscope access
Python - Gatan
Example script basic microscope access. For further info please also refer to the DM-scripting documentation on microscope access.
LiveView radial FFT profile
Python - Gatan
Compute radial-max profiles over time from the FFT of the LiveView image in Gatan Microscopy Suite.
LiveView linear profile
Python - Gatan
Compute ROI-based profiles over time from the LiveView image in Gatan Microscopy Suite.
Live thresholding with plots
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a binary display. The live image is thresholded, and several morphological operations are applied to create a binary display. Then the largest contiguous bright region is found and circled. A plot of the position of the center of mass of that bright region is also updated live.
Live simple copy
Python - Gatan
Code to process the live-view image in DigitalMicrograph, producing a copy. This script provides a minimal template for processing data in the live view.