From 3e01fa49dd6188a02b352c4d5bf400e22519c703 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 25 Feb 2022 18:34:45 -0500 Subject: [PATCH] emulate using '-i' command line flag --- tools/python/logplot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/logplot.py b/tools/python/logplot.py index 632a6a7cbd..560d8442d9 100755 --- a/tools/python/logplot.py +++ b/tools/python/logplot.py @@ -8,7 +8,7 @@ # once plot appears, you are in Python interpreter, type C-D to exit # Author: Steve Plimpton (Sandia), sjplimp at sandia.gov -import sys,os +import sys,os,code path = os.environ["LAMMPS_PYTHON_TOOLS"] sys.path.append(path) from log import log @@ -25,3 +25,4 @@ lg = log(logfile) x,y = lg.get(xlabel,ylabel) g = gnu() g.plot(x,y) +code.interact()