Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Plot.new in 0.2.0.rc1 #74

Open
v0dro opened this issue Jun 3, 2016 · 0 comments
Open

Error in Plot.new in 0.2.0.rc1 #74

v0dro opened this issue Jun 3, 2016 · 0 comments

Comments

@v0dro
Copy link

v0dro commented Jun 3, 2016

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>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant