Skip to content

Error in Plot.new in 0.2.0.rc1 #74

@v0dro

Description

@v0dro

Here's my code:

p=Nyaplot::Plot.new

Error:

NoMethodError: undefined method `reduce' for nil:NilClass
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/sheet.rb:28:in `range'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/sheet.rb:43:in `xscale'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/stage2d.rb:47:in `resolve_dependency'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:18:in `block in generate_gen_list'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:16:in `each'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:16:in `reduce'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:16:in `generate_gen_list'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:30:in `to_json'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:38:in `generate_body'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/nyaplot-0.2.0.rc1/lib/nyaplot/plot.rb:62:in `to_iruby'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:274:in `block in <module:Registry>'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:105:in `call'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:105:in `render'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:61:in `block in render'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:60:in `each'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:60:in `render'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/display.rb:23:in `display'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/kernel.rb:96:in `execute_request'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/kernel.rb:47:in `dispatch'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/kernel.rb:37:in `run'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/command.rb:70:in `run_kernel'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/lib/iruby/command.rb:34:in `run'
/home/sameer/.rvm/gems/ruby-2.2.1/gems/iruby-0.2.8/bin/iruby:5:in `<top (required)>'
/home/sameer/.rvm/gems/ruby-2.2.1/bin/iruby:23:in `load'
/home/sameer/.rvm/gems/ruby-2.2.1/bin/iruby:23:in `<main>'
/home/sameer/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/home/sameer/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions