empty#
- classmethod CrystalMap.empty(shape: None | int | tuple = None, step_sizes: None | int | tuple = None) CrystalMap [source]#
Return a crystal map of a given 2D shape and step sizes with identity rotations.
- Parameters:
- shape
Map shape. Default is a 2D map of shape (5, 10), i.e. with five rows and ten columns.
- step_sizes
Map step sizes. If not given, it is set to 1 px in each map direction given by
shape
.
- Returns:
xmap
Crystal map.
Examples using CrystalMap.empty
#
Create empty crystal map
Select and modify data