summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatrixaeria <upezu@student.kit.edu>2019-12-12 21:56:58 +0100
committernatrixaeria <upezu@student.kit.edu>2019-12-12 21:56:58 +0100
commit5af75f14af3758a37edaee08f1a49a12f89b48e0 (patch)
treedf45771cc5a53a6f267d16445fbf4905afaf034c
parent5fa0d5d889dff17a8e011971d80de7661ae130eb (diff)
Adapt plot.py to pep8
-rw-r--r--plot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plot.py b/plot.py
index 6d8e449..83438e5 100644
--- a/plot.py
+++ b/plot.py
@@ -2,10 +2,10 @@ import os
import subprocess
-def plot(start, end, states = 1, script = "anim3d.plt"):
+def plot(start, end, states=1, script="anim3d.plt"):
path = 'gnuplot/'
if os.name == 'nt':
- path.replace('/','\\')
+ path = path.replace('/','\\')
subprocess.run(["gnuplot",
"-e", f"states={states};",
"-e", f"start={start};" ,