summaryrefslogtreecommitdiff
path: root/plot.py
diff options
context:
space:
mode:
authorDennis Kobert <dennis@kobert.dev>2019-11-30 19:24:20 +0100
committerDennis Kobert <dennis@kobert.dev>2019-11-30 19:24:20 +0100
commit94935f80fac8d1275142d73b1a6b6d6492cc8207 (patch)
tree837c34f9db9426e74daefa8ba7e11b96ba527484 /plot.py
parente1172e94602f4cf003392409d9543d17c31881dc (diff)
Animate tow level systems
Diffstat (limited to 'plot.py')
-rw-r--r--plot.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/plot.py b/plot.py
new file mode 100644
index 0000000..6d8e449
--- /dev/null
+++ b/plot.py
@@ -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])
+
+