domitry/nyaplot

Empty plots occur when adding other gems

jenningsanderson opened this issue · 2 comments

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!

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

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'