magneticScattering.structures.create_mesh#
- create_mesh(*args)#
Creates a mesh centered around zero with the dimensions provided.
- Parameters:
args ([list[int]]) – Integer dimensions.
- Returns:
List of mesh grids with the provided dimensions.
Example#
To create a list of numpy arrays of a fleshed out meshgrid with dimensions (11, 8) with the x dimension ranging from -5 to 5 and y from -3.5 to 3.5, both in steps on 1.
>>> [x, y] = create_mesh(11, 8)