em_map_utils.demos.demo_map_rotate¶
demo_map_rotate.py
- Author:
Ardan Patwardhan
- Affiliation:
EMBL-EBI, Wellcome Genome Campus, CB10 1SD, UK
- Date:
31/07/2025
- Description:
Rotate a simple map and show the orthogonal surface views.
Attributes¶
Functions¶
|
Rotate a cuboid (or an optionally specified map) and show the |
Module Contents¶
- em_map_utils.demos.demo_map_rotate.plot_rotated_map(in_file, lengths, box_size, rotation, translation, cubify, out_file)¶
Rotate a cuboid (or an optionally specified map) and show the orthogonal surface views.
- Parameters:
in_file – Optional input file - if none is provided a cuboid is used as the input.
lengths – Lengths of the cuboid.
box_size – Size of the 3D volume box.
rotation – Euler angle of rotation in an intrinsic frame following Z-Y’-Z” convention.
translation – An initial translation vector.
cubify – If a map is not cubic, pad it to the largest dimension.
out_file – Optional file to save the figure to.
- Returns:
No return value.
- em_map_utils.demos.demo_map_rotate.parser¶