viz3dvideo package
Subpackages
Submodules
viz3dvideo.about module
About module for viz3dvideo.
This module stores metadata about the viz3dvideo package, such as version, author information, and license details. It is primarily used internally and by packaging tools (e.g., setup.py, pip) to provide package information.
- viz3dvideo.about.__version__
Current version of the package.
- Type:
str
- viz3dvideo.about.__author__
Author(s) of the package.
- Type:
str
- viz3dvideo.about.__email__
Contact email for support or inquiries.
- Type:
str
- viz3dvideo.about.__url_source__
Source code page.
- Type:
str
viz3dvideo.program module
- viz3dvideo.program.main()
Entry point for the
viz3dvideo-infoconsole script. This shows the current version of the module.
Module contents
viz3dvideo: Visualization of 3D graphs as videos.
This package provides utilities to generate videos of 3D data visualizations using Matplotlib and MoviePy.
Subpackages
viz3dvideo.surfCreate and animate 3D surface plots, either rotating around the object or following a custom camera path.
viz3dvideo.scatterCreate and animate 3D scatter plots with rotation or along a camera path.
viz3dvideo.overlayOverlay images (e.g., logos) onto existing videos.
viz3dvideo.audioAdd audio tracks to videos, with control over start time and synchronization.
Examples
Typical usage:
from viz3dvideo import scatter, surf, overlay, audio
# Animate a rotating 3D scatter
scatter.animate_rotate(X, Y, Z, W, output_path="scatter.mp4")
# Animate a surface along a camera path
surf.animate_path(X, Y, Z, camera_points=[(30, 0), (45, 90)], output_path="surface.mp4")
# Overlay a logo on a video
overlay.image_on_video("surface.mp4", "logo.png", position=(50, 50))
# Add background music
audio.add_to_video("surface.mp4", "music.mp3", start_time=5)