Rotating Movie¶
Export a 360-degree rotating movie of the supercell.
MP4 (recommended)¶
Requires ffmpeg on the system path.
cell.plot_structure(
output='structure.mp4',
fps=60,
duration=6.0,
)
GIF fallback¶
Pure Python, no ffmpeg needed.
cell.plot_structure(
output='structure.gif',
fps=30,
duration=4.0,
)
Full options¶
cell.plot_structure(
output='structure.mp4',
width=1024,
height=1024,
fps=60,
duration=6.0,
elevation=15.0,
atom_size=10.0,
colormap='Reds',
background='white',
)
Parameter |
Default |
Description |
|---|---|---|
|
required |
Path to |
|
1024, 1024 |
Pixel dimensions. |
|
60 |
Frames per second. |
|
6.0 |
Seconds (one full 360 rotation). |
|
15.0 |
Camera elevation in degrees. |
|
10.0 |
Marker size for atoms. |
|
|
Matplotlib colormap for depth-coloured bonds. |
|
|
Figure background colour. |