简体   繁体   English

带3个坐标的ILNumerics图

[英]ILNumerics plot with 3 coordinates

I have 3 arrays of Rx, Ry, Rz of type float. 我有3个类型为float的Rx,Ry,Rz数组。 I'm trying to plot a surface with following 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 it 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 to draw a surface like that http://cs618230.vk.me/v618230086/7b18/Q2aQP0uMPUg.jpg 我正在尝试绘制这样的表面http://cs618230.vk.me/v618230086/7b18/Q2aQP0uMPUg.jpg

X, Y and Z must be matrices . X,Y和Z必须为矩阵 Start with some regular grid and change it until you end up where you want to go. 从一些常规的网格开始,并对其进行更改,直到最终到达所需的位置。 Your y looks really suspicious... 您看起来真可疑...

See: http://ilnumerics.net/surface-plots.html 请参阅: http//ilnumerics.net/surface-plots.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM