Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3D plots not working in v0.1.6 #75

Open
v0dro opened this issue Jun 3, 2016 · 2 comments
Open

3D plots not working in v0.1.6 #75

v0dro opened this issue Jun 3, 2016 · 2 comments

Comments

@v0dro
Copy link

v0dro commented Jun 3, 2016

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.
@HeisenbergK
Copy link

HeisenbergK commented Jun 20, 2018

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

@lokeshh
Copy link

lokeshh commented Jun 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants