Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

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

 

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

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
-
Supported
Yes.
Included Files
Single script file.
Source Code
see attached script.