nyaplot
nyaplot copied to clipboard
3D plots not working in v0.1.6
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.
Have been getting the exact same error. Any solutions so far?
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 .