Menu

#2 ctioga2 does not handle gracefully infinite numbers

0.14
open
None
2016-01-17
2016-01-14
No

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
2 Attachments

Discussion

  • Vincent Fourmond

    Thanks for your report. For the record, your problems come from the fact that you have a line:

    30 43 Inf Inf Inf 12 0 11
    

    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

    plot outprepended.csv@1:4 /where 'y.finite?'
    

    Attached is the result. You may want to consider adding also margin 0.03 to 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 since 0.8 (but not this one !).

    Enjoy

     
  • Vincent Fourmond

    • summary: bug in ctioga2 v0.8 - no output --> ctioga2 does not handle gracefully infinite numbers
    • Milestone: 0.13 --> 0.14
     
  • Hennadii Madan

    Hennadii Madan - 2016-01-15

    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:)

     
  • Vincent Fourmond

    Yep, I can do the latter relatively easily, but the former may have to wait a little longer ;-)...

     
  • Vincent Fourmond

    A more informative message is now available in commit [929a70]

     

    Related

    Commit: [929a70]


Log in to post a comment.

MongoDB Logo MongoDB