diff options
author | Dennis Kobert <dennis@kobert.dev> | 2019-11-30 19:24:20 +0100 |
---|---|---|
committer | Dennis Kobert <dennis@kobert.dev> | 2019-11-30 19:24:20 +0100 |
commit | 94935f80fac8d1275142d73b1a6b6d6492cc8207 (patch) | |
tree | 837c34f9db9426e74daefa8ba7e11b96ba527484 /plot.py | |
parent | e1172e94602f4cf003392409d9543d17c31881dc (diff) |
Animate tow level systems
Diffstat (limited to 'plot.py')
-rw-r--r-- | plot.py | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +import os +import subprocess + + +def plot(start, end, states = 1, script = "anim3d.plt"): + path = 'gnuplot/' + if os.name == 'nt': + path.replace('/','\\') + subprocess.run(["gnuplot", + "-e", f"states={states};", + "-e", f"start={start};" , + "-e", f"end={end};", + "-c", path + script]) + + |