This commit is contained in:
张壹 2025-01-23 12:14:15 +08:00
parent 22f8a6aaa2
commit 2c8bedd847

View File

@ -34,6 +34,7 @@ int main(int argc, char *argv[])
//gt.send("plot [-pi/2:pi] cos(x),-(sin(x) > sin(x+1) ? sin(x) : sin(x+1))");
//buffer test (bessel animation)
/*
gt.to_buffer();
gt.send("set terminal gif animate delay 10 size 600,400");
gt.send("set output 'bessel.gif'");
@ -66,5 +67,17 @@ int main(int argc, char *argv[])
gt.save_buffer("bessel");
gt.send_buffer();
*/
//data test
gt.to_buffer();
gt.send("$Data << EOD");
gt.send("0 0 0");
gt.send("1 1 0.5");
gt.send("2 4 2");
gt.send("3 9 3");
gt.send("EOD");
gt.send("plot $Data using 1:2 with lines title 'y1', '' using 1:3 with lines title 'y2'");
gt.send_buffer();
return 0;
}