15,473
社区成员




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;
}