Changeset 145 for trunk/test/gnuplot_pipe.cc
- Timestamp:
- Aug 9, 2006, 11:36:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/gnuplot_pipe.cc
r119 r145 30 30 using namespace theplu; 31 31 32 bool ok = true;32 bool ok = false; // false indicates success, i.e., no errors detected. 33 33 34 34 std::vector<double> x,y; … … 39 39 40 40 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");41 ok|=gnuplot1.command("set output 'test1.png'; set term png ; set title 'sine'"); 42 ok|=gnuplot1.command("plot sin(x) title 'sine of x' with lines"); 43 43 44 44 svnstat::Gnuplot gnuplot2; 45 gnuplot2.command("set output 'test2.png'; set term png");46 gnuplot2.plot(x);45 ok|=gnuplot2.command("set output 'test2.png'; set term png"); 46 ok|=gnuplot2.plot(x); 47 47 48 48 svnstat::Gnuplot gnuplot3; 49 gnuplot3.command("set output 'test3.png'; set term png");49 ok|=gnuplot3.command("set output 'test3.png'; set term png"); 50 50 gnuplot3.linetitle("parabola"); 51 gnuplot3.plot(x,y);52 gnuplot3.command("set output 'test4.png'");53 gnuplot3.command("set title 'ddddd'");51 ok|=gnuplot3.plot(x,y); 52 ok|=gnuplot3.command("set output 'test4.png'"); 53 ok|=gnuplot3.command("set title 'ddddd'"); 54 54 //gnuplot3.linestyle("linespoints"); 55 55 gnuplot3.linetitle("bajs"); 56 gnuplot3.plot(x);56 ok|=gnuplot3.plot(x); 57 57 58 58 /* … … 67 67 */ 68 68 69 return (ok ? 0 : -1);69 return ok; 70 70 }
Note: See TracChangeset
for help on using the changeset viewer.