diff options
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]) + + |