Changeset 107 for trunk/test/gnuplot_pipe.cc
- Timestamp:
- Jun 28, 2006, 11:12:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/gnuplot_pipe.cc
r84 r107 24 24 #include "Gnuplot.h" 25 25 26 #include <iostream> 26 27 #include <vector> 27 28 … … 39 40 40 41 svnstat::Gnuplot gnuplot1; 41 gnuplot1.command("set output 'test1.png'; set term png ; set title 'sine'"); 42 gnuplot1.command("plot sin(x) title 'sine of x' with lines"); 42 //if (gnuplot1.command("set output 'test1.png'; set term png ; set title 'sine'")) 43 //ok = false; 44 //if (gnuplot1.command("plot sin(x) title 'sine of x' with lines")) 45 //ok = false; 43 46 44 47 svnstat::Gnuplot gnuplot2; 45 gnuplot2.command("set output 'test2.png'; set term png");46 gnuplot2.plot(x);48 //if (gnuplot2.command("set output 'test2.png'; set term png")) 49 //gnuplot2.plot(x); 47 50 48 51 svnstat::Gnuplot gnuplot3; 49 gnuplot3.command("set output 'test3.png'; set term png"); 52 if (gnuplot3.command("set output 'test3.png'; set term png")) 53 ok=false; 50 54 gnuplot3.linetitle("parabola"); 51 gnuplot3.plot(x,y); 52 53 gnuplot3.command("set output 'test4.png'; set title 'composite'"); 55 if (gnuplot3.plot(x,y)) 56 ok=false; 57 if (gnuplot3.command("set output 'test4.png'; set title 'composite'")) 58 ok=false; 54 59 gnuplot3.linestyle("linespoints"); 55 60 gnuplot3.linetitle(""); 56 gnuplot3.replot(x); 61 if (gnuplot3.replot(x)) 62 ok=false; 57 63 58 64 /*
Note: See TracChangeset
for help on using the changeset viewer.