First off, thanks for this module!
I use Gnuplot::Builder in analysis pipelines, and need to know if there was an error from gnuplot to abort the analysis.
However, it doesn't seem like there's a way to reliably determine if the gnuplot process exited with an error. The return values of the plot() and plot_with() routines are a mix of stdout and stderr, and some gnuplot commands will write to stdout, so a non-empty return from those routines doesn't provide a deterministic means of detecting an error.
It would be great if the exit value of the actual gnuplot process was available. However, it looks like that Gnuplot::Builder::Process::_wait_to_finish doesn't actually wait for the process to end, so it can't retrieve the exit value.
First off, thanks for this module!
I use
Gnuplot::Builderin analysis pipelines, and need to know if there was an error fromgnuplotto abort the analysis.However, it doesn't seem like there's a way to reliably determine if the
gnuplotprocess exited with an error. The return values of theplot()andplot_with()routines are a mix of stdout and stderr, and some gnuplot commands will write to stdout, so a non-empty return from those routines doesn't provide a deterministic means of detecting an error.It would be great if the exit value of the actual
gnuplotprocess was available. However, it looks like thatGnuplot::Builder::Process::_wait_to_finishdoesn't actually wait for the process to end, so it can't retrieve the exit value.