domitry / nyaplot

interactive plots generator for Ruby
MIT License
219 stars 27 forks source link

Empty plots occur when adding other gems #52

Open jenningsanderson opened 9 years ago

jenningsanderson commented 9 years ago

I have a very strange issue with empty plots occuring depending on what other dependencies I load into my iRuby notebook session.

If I run this:

In [1]: require 'nyaplot'
Out[1]: true

In [2]: p = Nyaplot::Plot.new
        p.add(:bar, ['a','b','c'], [1,2,3])
        p.show

It works great: image

However, if i then require 'mongoid', and try to run that line again, I get an empty plot: image

Any help is appreciated! Thanks!

jenningsanderson commented 9 years ago

Furthermore, I do occasionally get an error in the console:

Uncaught Error: Mismatched anonymous define() module: [object Object]
http://requirejs.org/docs/errors.html#mismatch
yohm commented 8 years ago

I found the same problem with v0.1.6. Since #62 fixed this issue, a tentative fix until the next release is to specify the master branch of this repository.

gem "nyaplot", github: 'domitry/nyaplot', ref: 'master'