From 3fd5c32bbe8c2e19eebe64b8f1e9c5173e553911 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Fri, 25 Mar 2022 10:27:14 +0100 Subject: [PATCH] Plot to out.pdf --- src/gen_for_gnuplot.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gen_for_gnuplot.cc b/src/gen_for_gnuplot.cc index c15a4aa..4607e0f 100644 --- a/src/gen_for_gnuplot.cc +++ b/src/gen_for_gnuplot.cc @@ -91,6 +91,8 @@ gen_pl_script(std::vector& ms, std::string with_slot) ofstream f; f.open("plot.pl"); f << "#!/usr/bin/gnuplot" << endl; + f << "set terminal pdf size 16,9 enhance color" << endl; + f << "set output 'out.pdf'" << endl; f << "unset key" << endl; f << "set size ratio -1" << endl; if (with_slot.compare("") != 0) { @@ -102,7 +104,7 @@ gen_pl_script(std::vector& ms, std::string with_slot) f << " '" << (m.fn + m.fc) << "'" << " w l,"; } f << endl; - f << "pause -1" << endl; + //f << "pause -1" << endl; f.close(); } -- 2.39.2