ctioga2 does not handle gracefully infinite numbers
polymorphic plotting program
Brought to you by:
fourmond
Been trying to plot third column of the attached file outprepended.csv with the attached scipt.
Result is empty axes and following error messages
[ERROR] Impossible to draw axis left: malloc: possible integer overflow while processing line 5 in file 'arcangel.ct2'
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
[ERROR] Impossible to draw axis bottom: Sorry: must start path with moveto before call lineto while processing line 5 in file 'arcangel.ct2'
[ERROR] Impossible to draw axis right: malloc: possible integer overflow while processing line 5 in file 'arcangel.ct2'
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_moveto, element suppressed
/usr/lib/ruby/vendor_ruby/ctioga2/graphics/styles/axes.rb:129: warning: Illegal coordinates in function c_lineto, element suppressed
Thanks for your report. For the record, your problems come from the fact that you have a line:
ctioga gets confused, because it does not handle infinites gracefully. And, honestly, I don't know what it should do. Probably, I'll try to make it ignore such data points and spit out a warning. In any case, you can get rid of that by using
Attached is the result. You may want to consider adding also
margin 0.03to make sure you see the dots on the side of the graph. And, really, you should consider using the latest version, a lot of bugs have been fixed since0.8(but not this one !).Enjoy
Thanks for prompt reply and for pointing out the issue with input data. I second the ignoring Inf's, but believe that just a more informative error message will suffice:)
Yep, I can do the latter relatively easily, but the former may have to wait a little longer ;-)...
A more informative message is now available in commit [929a70]
Related
Commit: [929a70]