nyaplot icon indicating copy to clipboard operation
nyaplot copied to clipboard

Empty plots occur when adding other gems

Open jenningsanderson opened this issue 10 years ago • 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!

jenningsanderson avatar Jul 16 '15 23:07 jenningsanderson

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

jenningsanderson avatar Jul 16 '15 23:07 jenningsanderson

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'

yohm avatar Oct 01 '16 04:10 yohm