nyaplot icon indicating copy to clipboard operation
nyaplot copied to clipboard

3D plots not working in v0.1.6

Open v0dro opened this issue 9 years ago • 2 comments

My code:

require 'nyaplot'
require 'nyaplot3d'
x=[];y=[];z=[]
-10.step(10, 0.5) do |i|
  -10.step(10, 0.5) do |j|
    x.push(i)
    y.push(j)
    z.push(Math.sin(Math.sqrt(i*i+j*j))/Math.sqrt(i*i+j*j))
  end
end
z.map!{|val| next (val.nan? ? 0 : val)} #(0,0) wil

plot = Nyaplot::Plot3D.new
plot.add(:surface, x, y, z)
plot.show

Error:

Javascript error adding output!
TypeError: Cannot read property 'pane' of undefined
See your browser Javascript console for more details.

v0dro avatar Jun 03 '16 11:06 v0dro

Have been getting the exact same error. Any solutions so far?

HeisenbergK avatar Jun 20 '18 08:06 HeisenbergK

Repo has been moved here https://github.com/sciruby/nyaplot

On Wed, Jun 20, 2018, 2:06 PM John Andrew Kypriotakis < [email protected]> wrote:

Have been getting the exact same error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/domitry/nyaplot/issues/75#issuecomment-398670188, or mute the thread https://github.com/notifications/unsubscribe-auth/AHUmVJNfOJocLROvbDfd26IfZvDocGiCks5t-gmbgaJpZM4Itde4 .

lokeshh avatar Jun 20 '18 13:06 lokeshh