kplot 1.1.43__tar.gz → 1.1.45__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.43 → kplot-1.1.45}/PKG-INFO +1 -1
- {kplot-1.1.43 → kplot-1.1.45}/pyproject.toml +1 -1
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/movie.py +1 -1
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/plot.py +1 -1
- {kplot-1.1.43 → kplot-1.1.45}/README.md +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/__init__.py +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/axes.py +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/cmaps.py +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/image.py +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/styles/example.mpl +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/styles/publication.mpl +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/threeD/__init__.py +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/threeD/slider_images.py +0 -0
- {kplot-1.1.43 → kplot-1.1.45}/src/kplot/utils.py +0 -0
|
@@ -26,7 +26,7 @@ def ffmpeg(
|
|
|
26
26
|
file_path: str = destination + '/' + file_name
|
|
27
27
|
if not file_path.endswith('.mp4'): file_path += ".mp4"
|
|
28
28
|
if verbose: print(purple("FFMPeg running..."))
|
|
29
|
-
system(f"ffmpeg -loglevel {log} -framerate {fps} -pattern_type glob -i '{source+'/*.png'}' -c:v {vcodec} -pix_fmt {pix_fmt} -y {file_path}")
|
|
29
|
+
system(f"source ~/.bashrc;ffmpeg -loglevel {log} -framerate {fps} -pattern_type glob -i '{source+'/*.png'}' -c:v {vcodec} -pix_fmt {pix_fmt} -y {file_path}")
|
|
30
30
|
def func_video(
|
|
31
31
|
video_name: str, fig: Figure, updater: Callable, N: int,
|
|
32
32
|
frames: str = f"./.temp", destination: str = "./",
|
|
@@ -15,7 +15,7 @@ from matplotlib.collections import LineCollection
|
|
|
15
15
|
# >-|===|> Functions <|===|-<
|
|
16
16
|
# !==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==!==
|
|
17
17
|
def line2segments(
|
|
18
|
-
x:
|
|
18
|
+
x: Array, y: Array
|
|
19
19
|
) -> ndarray:
|
|
20
20
|
"""convert an x, y line into individual [(x1, y1), ..., (xn, yn)] segments with a midpoint. Stolen from stack exchange"""
|
|
21
21
|
# Compute the midpoints of the line segments. Include the first and last points
|
|
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
|