kplot 1.1.42__tar.gz → 1.1.43__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kplot-1.1.42 → kplot-1.1.43}/PKG-INFO +1 -1
- {kplot-1.1.42 → kplot-1.1.43}/pyproject.toml +1 -1
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/movie.py +8 -2
- {kplot-1.1.42 → kplot-1.1.43}/README.md +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/__init__.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/axes.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/cmaps.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/image.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/plot.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/styles/example.mpl +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/styles/publication.mpl +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/threeD/__init__.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/threeD/slider_images.py +0 -0
- {kplot-1.1.42 → kplot-1.1.43}/src/kplot/utils.py +0 -0
|
@@ -30,7 +30,9 @@ def ffmpeg(
|
|
|
30
30
|
def func_video(
|
|
31
31
|
video_name: str, fig: Figure, updater: Callable, N: int,
|
|
32
32
|
frames: str = f"./.temp", destination: str = "./",
|
|
33
|
-
dpi: int = 100, fps: int = 30, verbose=True,
|
|
33
|
+
dpi: int = 100, fps: int = 30, verbose=True,
|
|
34
|
+
vcodec='libx264', pix_fmt='yuv420p',
|
|
35
|
+
**updater_kwargs
|
|
34
36
|
) -> None:
|
|
35
37
|
ensure_path(f"{frames}/{video_name}")
|
|
36
38
|
if len(glob(f"{frames}/*.png"))>0: system(f"rm {frames}/*.png")
|
|
@@ -45,7 +47,11 @@ def func_video(
|
|
|
45
47
|
updater(i, **updater_kwargs)
|
|
46
48
|
fig.savefig(f"{frames}/{video_name}/{str(i).zfill(ndigits)}.png", dpi=dpi)
|
|
47
49
|
# make the video
|
|
48
|
-
ffmpeg(
|
|
50
|
+
ffmpeg(
|
|
51
|
+
video_name,
|
|
52
|
+
source=f"{frames}/{video_name}/", destination=destination,
|
|
53
|
+
fps=fps, vcodec=vcodec, pix_fmt=pix_fmt
|
|
54
|
+
)
|
|
49
55
|
system(f'rm -r {frames}')
|
|
50
56
|
def line_video(
|
|
51
57
|
xs, ys,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|