From e006b66f510cb61e2ed64395a2bf91456ebd4bcf Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 21 Oct 2017 16:33:26 +0200 Subject: [PATCH] Fix postscript generation --- src/tests/common-files/gnuplot_i.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/common-files/gnuplot_i.h b/src/tests/common-files/gnuplot_i.h index a3bdd1c92..9427bcaac 100644 --- a/src/tests/common-files/gnuplot_i.h +++ b/src/tests/common-files/gnuplot_i.h @@ -1065,7 +1065,9 @@ Gnuplot& Gnuplot::savetops(const std::string &filename) cmd("set terminal postscript color"); std::ostringstream cmdstr; - cmdstr << "set output \"" << filename << ".ps\""; + cmdstr << "set term postscript\n"; + cmdstr << "set output \"" << filename << ".ps\"\n"; + cmdstr << "replot"; cmd(cmdstr.str()); return *this;