Scripting Resources for DigitalMicrograph™


Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio | Private | Search


Scale Bar Control
Allows the size, colour and font of the foremost image's scale bar to be changed and propagated to all other open images.
version:20170916, v3.0
D. R. G. Mitchell
Vincent Hou for assistance with the componentset/getcolor() commands.

Typcally, scale bars in DigitalMicrograph are too small for images which will end up displayed in half column width (just over 8cm in journals). 36-48pt font size is probably about right, even though it may look a bit big when the image is displayed larger than half column width.

Updated in this version to include the option to add field of view size markers - either width or width and height.

System Requirements
Should work in versions of GMS.
Known Issues
Included Files
Single script file.
Source Code
see attached script.