Changeset 108
- Timestamp:
- Jun 28, 2006, 11:17:12 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Gnuplot.cc
r107 r108 79 79 int Gnuplot::command(const std::string& cmdstr) 80 80 { 81 std::cout << cmdstr << std::endl;82 81 int r = fputs(cmdstr.c_str(),pipe_); 83 82 if (!r && *(cmdstr.rbegin())!='\n') -
trunk/test/gnuplot_pipe.cc
r107 r108 24 24 #include "Gnuplot.h" 25 25 26 #include <iostream>27 26 #include <vector> 28 27 … … 40 39 41 40 svnstat::Gnuplot gnuplot1; 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;41 if (gnuplot1.command("set output 'test1.png'; set term png ; set title 'sine'")) 42 ok = false; 43 if (gnuplot1.command("plot sin(x) title 'sine of x' with lines")) 44 ok = false; 46 45 47 46 svnstat::Gnuplot gnuplot2; 48 //if (gnuplot2.command("set output 'test2.png'; set term png")) 49 //gnuplot2.plot(x); 47 if (gnuplot2.command("set output 'test2.png'; set term png")) 48 ok = false; 49 gnuplot2.plot(x); 50 50 51 51 svnstat::Gnuplot gnuplot3;
Note: See TracChangeset
for help on using the changeset viewer.