gnuplot4.6 should be installed. PDF files will be generated
Windows, Linux, OS X
C++14
gnuplot 4.6 and above in $PATH
graph::Plot curvePlot;
vector x{1, 2, 3, 4, 5}; vector y {25, 15, 5, -5, -15}; plot(x, y, LineStyle, "--" );
label("x"); ylabel("y"); // enhanced texts
legend({"({/Symbol m}, {/Symbol s}) = (1, 1)", "({/Symbol m}, {/Symbol s}) = (2, 2)"}); grid(true); plot(x, y, "Color", "r", "LineWidth", 10, x, y2, "Color", "b", "LineWidth", 1);