00001 // -*- C++ -*- 00002 #ifdef GNUPLOT_ONLY_INCLUDES 00003 00004 #include <unistd.h> 00005 00006 #else 00007 00008 static FILE* OpenGnuplot(){ 00009 return popen("gnuplot -geometry 400x300 -noraise >/dev/null 2>/dev/null","w"); 00010 } 00011 static void CloseGnuplot(FILE* pipe){ 00012 pclose(pipe); 00013 } 00014 00015 #endif