The 'plot' command is not available in batch mode.
Issue a warning and ignore it.
This commit is contained in:
parent
0e6b785728
commit
eda9cadbed
|
|
@ -7,11 +7,17 @@
|
||||||
|
|
||||||
#include "com_plot.h"
|
#include "com_plot.h"
|
||||||
|
|
||||||
|
extern bool ft_batchmode;
|
||||||
|
|
||||||
/* plot name ... [xl[imit]] xlo xhi] [yl[imit ylo yhi] [vs xname] */
|
/* plot name ... [xl[imit]] xlo xhi] [yl[imit ylo yhi] [vs xname] */
|
||||||
void
|
void
|
||||||
com_plot(wordlist *wl)
|
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);
|
plotit(wl, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue