From eda9cadbed8b97bb7593d6139aba1230767b88e6 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Fri, 9 Jun 2023 16:31:04 +0200 Subject: [PATCH] The 'plot' command is not available in batch mode. Issue a warning and ignore it. --- src/frontend/com_plot.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/frontend/com_plot.c b/src/frontend/com_plot.c index 6758dbd04..b151849bb 100644 --- a/src/frontend/com_plot.c +++ b/src/frontend/com_plot.c @@ -7,11 +7,17 @@ #include "com_plot.h" +extern bool ft_batchmode; /* plot name ... [xl[imit]] xlo xhi] [yl[imit ylo yhi] [vs xname] */ void com_plot(wordlist *wl) { + if (ft_batchmode) { + fprintf(stderr, "\nWarning: command 'plot' is not available during batch simulation, ignored!\n"); + fprintf(stderr, " You may use Gnuplot instead.\n\n"); + return; + } plotit(wl, NULL, NULL); }