rdp / ruby_gnuplot

The ruby gnuplot gem [gnuplot] [rgnuplot] (official releases of the gnuplot gem are from rdp branch)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capture gnuplot warnings

maasha opened this issue · comments

Is there a mechanism to capture gnuplot warnings such as:

Warning: empty y range [0:0], adjusting to [-1:1]

so that these can be handled in Ruby instead of being output to stderr?

do they go to stderr today?

On Thu, Sep 18, 2014 at 5:33 AM, maasha notifications@github.com wrote:

Is there a mechanism to capture gnuplot warnings such as:

Warning: empty y range [0:0], adjusting to [-1:1]

so that these can be handled in Ruby instead of being output to stderr?


Reply to this email directly or view it on GitHub
#35.

So if I run a Ruby app using ruby_gnuplot that warning is printed to the console if I have missing data. I believe it is a warning printed to stderr from gnuplot itself. Such errors can be captured in a IO using popen3 AFAIK.

nope no mechanism today, pull requests welcome as always :)