]> rtime.felk.cvut.cz Git - hubacji1/bcar.git/commitdiff
Plot to out.pdf
authorJiri Vlasak <hubacji1@fel.cvut.cz>
Fri, 25 Mar 2022 09:27:14 +0000 (10:27 +0100)
committerJiri Vlasak <jiri.vlasak.2@cvut.cz>
Mon, 30 May 2022 14:08:42 +0000 (16:08 +0200)
src/gen_for_gnuplot.cc

index c15a4aace257989a8d97ee97a9a11af1bd215b47..4607e0fc50f52f8b97999355ce94bb85b903281b 100644 (file)
@@ -91,6 +91,8 @@ gen_pl_script(std::vector<M>& 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<M>& ms, std::string with_slot)
                f << " '" << (m.fn + m.fc) << "'" << " w l,";
        }
        f << endl;
-       f << "pause -1" << endl;
+       //f << "pause -1" << endl;
        f.close();
 }