Ignore:
Timestamp:
Jun 28, 2006, 11:12:38 AM (17 years ago)
Author:
Peter Johansson
Message:

Gnuplot functions returning int and utilizing that in the test. However the warning sent from Gnuplot ref #37 is not caught since there is no problem with the pipe there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/gnuplot_pipe.cc

    r84 r107  
    2424#include "Gnuplot.h"
    2525
     26#include <iostream>
    2627#include <vector>
    2728
     
    3940
    4041  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;
    4346
    4447  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);
    4750
    4851  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;
    5054  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;
    5459  gnuplot3.linestyle("linespoints");
    5560  gnuplot3.linetitle("");
    56   gnuplot3.replot(x);
     61  if (gnuplot3.replot(x))
     62    ok=false;
    5763
    5864  /*
Note: See TracChangeset for help on using the changeset viewer.