How to reverse the axis in ILNumerics

2019-03-01 01:10发布

I want to reverse the Y axis in ILLinePlot from top to bottom (from descending become ascending). My result is like this: enter image description here 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? enter image description here

1条回答
Evening l夕情丶
2楼-- · 2019-03-01 01:59

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)
}); 

ILNumerics line plot with reversed Y axis

You may want to further configure the plots axes.

查看更多
登录 后发表回答