繁体   English   中英

带3个坐标的ILNumerics图

[英]ILNumerics plot with 3 coordinates

我有3个类型为float的Rx,Ry,Rz数组。 我正在尝试使用以下代码绘制表面:

        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;

但是它什么也没画。 采样点:

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

我正在尝试绘制这样的表面http://cs618230.vk.me/v618230086/7b18/Q2aQP0uMPUg.jpg

X,Y和Z必须为矩阵 从一些常规的网格开始,并对其进行更改,直到最终到达所需的位置。 您看起来真可疑...

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

暂无
暂无

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

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