如何在ILNumerics中反转轴 [英] How to reverse the axis in ILNumerics

查看:229
本文介绍了如何在ILNumerics中反转轴的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在ILLinePlot中从上到下颠倒Y轴(从下降变为升序)。我的结果是这样的:

这里是代码:

  scene.Add(new ILPlotCube {
new ILLinePlot(ILMath.tosingle(ZDistance [1,0; ]),
markerStyle:MarkerStyle.Dot)
});

如何反转Y轴变成这个数字?

解决方案

将X轴上的情节立方体旋转180°:

  ilPanel1.Scene.Add (新的ILPlotCube {
Children = {
新的ILLinePlot(ILSpecialData.sincos1Df(200,1)[:0]。)
},
Rotation = Matrix4。旋转(新的Vector3(1,0,0),ILMath.pif)
});



您可能需要进一步配置绘图轴。

I want to reverse the Y axis in ILLinePlot from top to bottom (from descending become ascending). My result is like this: here is the code:

            scene.Add(new ILPlotCube {
              new ILLinePlot(ILMath.tosingle(ZDistance["1,0;:"]),
                             markerStyle: MarkerStyle.Dot)
            });

How to reverse the Y axis become like this figure?

解决方案

Turn the plot cube around the X axis by 180°:

ilPanel1.Scene.Add(new ILPlotCube {
    Children = {
        new ILLinePlot(ILSpecialData.sincos1Df(200,1)[":;0"].T)
    },
    Rotation = Matrix4.Rotation(new Vector3(1,0,0), ILMath.pif)
}); 

You may want to further configure the plots axes.

这篇关于如何在ILNumerics中反转轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆