empty#

classmethod CrystalMap.empty(shape: Union[None, int, tuple] = None, step_sizes: Union[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

>>> from orix.crystal_map import CrystalMap
>>> xmap = CrystalMap.empty((5, 10))
>>> xmap
Phase  Orientations  Name  Space group  Point group  Proper point group     Color
    0   50 (100.0%)  None         None         None                None  tab:blue
Properties:
Scan unit: px
>>> xmap.plot("x")  # Increasing towards the right
../../_images/orix-crystal_map-CrystalMap-empty-1.png

Examples using CrystalMap.empty#