It happens that the current version of ruby_gnuplot plots NaN data values as equal to the labels, as in
Gnuplot.opendo |gp|
Gnuplot::Plot.newgpdo |plot|
ary=[[0,1,2,3],[Float::NAN] * 4]plot.data << Gnuplot::DataSet.new(ary){ |set| set.with="linespoints"}endendThis is misleading. It caused me a long debugging session. The gem should warn and not display the NaN values in the chart at all. There should be a special setting on how to handle Float::NAN and Float::INFINITY values, and only when the user sets this setting explicitly should the warning go away. Btw. congrats to writing a great gem.
boris
It happens that the current version of ruby_gnuplot plots NaN data values as equal to the labels, as in
This is misleading. It caused me a long debugging session. The gem should warn and not display the NaN values in the chart at all. There should be a special setting on how to handle Float::NAN and Float::INFINITY values, and only when the user sets this setting explicitly should the warning go away. Btw. congrats to writing a great gem.
boris