c# - ILNumerics plot with 3 coordinates -
i have 3 arrays of rx, ry, rz of type float. i'm trying plot surface next code:
ilarray<float> y = ry ilarray<float> x = rx ilarray<float> z = rz ilarray<float> z = ilmath.zeros<float>(x.s[0], x.s[1], 3); z[":;:;1"] = x; z[":;:;2"] = y; z[":;:;0"] = z; var scene = new ilscene { new ilplotcube(twodmode: false) { new ilsurface(z) { wireframe = { color = color.fromargb(50, color.lightgray) }, colormap = colormaps.jet, } } }; panel.scene = scene; but draw nothing. sample points:
z: 1 0,1111111 0,01111111 0,001010101 8,417508e-05 6,475007e-06 0,1111111 0,01388889 0,001984127 x: 3 4 5 6 7 8 2 1 0 y: 4 4 4 4 4 4 4 4 4 i'm trying draw surface http://cs618230.vk.me/v618230086/7b18/q2aqp0umpug.jpg
x, y , z must matrices. start regular grid , alter until end want go. y looks suspicious...
see: http://ilnumerics.net/surface-plots.html
c# plot 3d ilnumerics geometry-surface
No comments:
Post a Comment