summaryrefslogtreecommitdiff
path: root/plot.py
diff options
context:
space:
mode:
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])
+
+