How to reverse the axis in ILNumerics

南楼画角 提交于 2019-12-02 14:26:22

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/24502759/how-to-reverse-the-axis-in-ilnumerics

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!