15,467
社区成员
发帖
与我相关
我的任务
分享
void Gnuplot::init()
{
m_sGNUPlotFileName = "pgnuplot.exe";
if (!this->get_program_path(m_sGNUPlotFileName))
{
this->valid = false;
throw GnuplotException("Can't find gnuplot in your PATH");
}
this->gnucmd = _popen(m_sGNUPlotFileName.c_str(),"w");
if (!this->gnucmd)
{
this->valid = false;
throw GnuplotException("Couldn't open connection to gnuplot");
}
this->nplots = 0;
this->valid = true;
}