diff --git a/src/tests/common-files/gnuplot_i.h b/src/tests/common-files/gnuplot_i.h index 183e51101..b2c3356cd 100644 --- a/src/tests/common-files/gnuplot_i.h +++ b/src/tests/common-files/gnuplot_i.h @@ -1049,8 +1049,12 @@ Gnuplot& Gnuplot::set_smooth(const std::string &stylestr) // Gnuplot& Gnuplot::showonscreen() { + std::string persist(" persist"); +#ifdef __APPLE__ + persist = ""; +#endif cmd("set output"); - cmd("set terminal " + Gnuplot::terminal_std + " persist"); + cmd("set terminal " + Gnuplot::terminal_std + persist); return *this; }