Closed baarkerlounger closed 5 years ago
Full stacktrace for reference:
/home/jesus/.gem/ruby/2.4.1/gems/nyaplot-0.1.6/lib/nyaplot/data.rb:105:in `column': undefined method `to_sym' for nil:NilClass (NoMethodError)
from /home/jesus/.gem/ruby/2.4.1/gems/nyaplot-0.1.6/lib/nyaplot/diagram.rb:69:in `process_data'
from /home/jesus/.gem/ruby/2.4.1/gems/nyaplot-0.1.6/lib/nyaplot/diagram.rb:16:in `initialize'
from /home/jesus/.gem/ruby/2.4.1/gems/nyaplot-0.1.6/lib/nyaplot/plot.rb:75:in `new'
from /home/jesus/.gem/ruby/2.4.1/gems/nyaplot-0.1.6/lib/nyaplot/plot.rb:75:in `add_with_df'
from /home/jesus/.gem/ruby/2.4.1/gems/daru-0.1.6/lib/daru/plotting/nyaplot/dataframe.rb:174:in `block in add_multiple_diagrams'
from /home/jesus/.gem/ruby/2.4.1/gems/daru-0.1.6/lib/daru/plotting/nyaplot/dataframe.rb:173:in `map'
from /home/jesus/.gem/ruby/2.4.1/gems/daru-0.1.6/lib/daru/plotting/nyaplot/dataframe.rb:173:in `add_multiple_diagrams'
from /home/jesus/.gem/ruby/2.4.1/gems/daru-0.1.6/lib/daru/plotting/nyaplot/dataframe.rb:143:in `plot_regular_diagrams'
from /home/jesus/.gem/ruby/2.4.1/gems/daru-0.1.6/lib/daru/plotting/nyaplot/dataframe.rb:47:in `plot_without_category'
from /home/jesus/.gem/ruby/2.4.1/gems/daru-0.1.6/lib/daru/plotting/nyaplot/dataframe.rb:32:in `plot'
from test.rb:7:in `<main>'
The nil
value is coming from opts[:x]
being nil
since it's not set when calling the plot
method.
Shouldn't this be closed?
Throws
NoMethodError: undefined method
to_sym' for nil:NilClass`I would expect it to behave like
Daru::Vector
and take the index as default axis.