Cleanup of plots
This commit is contained in:
parent
d17d25b8e2
commit
87e2918ffd
7 changed files with 8 additions and 208 deletions
|
@ -6,7 +6,6 @@ import pathlib
|
|||
import matplotlib.animation as animation
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
parser = argparse.ArgumentParser(description="Animate swash output")
|
||||
parser.add_argument("-v", "--verbose", action="count", default=0)
|
||||
|
@ -21,10 +20,7 @@ config.read("config.ini")
|
|||
|
||||
inp = pathlib.Path(config.get("post", "inp"))
|
||||
root = pathlib.Path(config.get("swash", "out"))
|
||||
|
||||
bathy = pd.read_hdf(
|
||||
pathlib.Path(config.get("data", "out")).joinpath("bathy.h5"), "bathy"
|
||||
)
|
||||
out = pathlib.Path(config.get("plot", "out"))
|
||||
|
||||
|
||||
def data(var):
|
||||
|
@ -89,4 +85,4 @@ ani = animation.FuncAnimation(
|
|||
fig, animate, frames=wl[:, 0].size, interval=20, blit=True
|
||||
)
|
||||
|
||||
plt.show(block=True)
|
||||
ani.save(out.joinpath("layers.mp4", codec="h265"))
|
||||
|
|
Reference in a new issue