From 161c06292e96c8c2218c30311f178e89768efaac Mon Sep 17 00:00:00 2001 From: Andrew Zhen Ning Yong Date: Mon, 14 Oct 2019 09:22:46 +0100 Subject: [PATCH] Suppresses plot when save option is swithced on --- utils/plot.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/utils/plot.cpp b/utils/plot.cpp index 6afc53a..0238741 100644 --- a/utils/plot.cpp +++ b/utils/plot.cpp @@ -123,8 +123,13 @@ int main(int argc, char *argv[]) p.save(save + "/" + title); } - cout << "Displaying plot..." << endl; - p.display(); + else + { + cout << "Displaying plot..." << endl; + p.display(); + } + + // output ////////////////////////////////////////////////////////////////// if (!outFileName.empty())