How to reverse the axis in ILNumerics

后端 未结 1 478
星月不相逢
星月不相逢 2021-01-25 16:32

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

1条回答
  •  情歌与酒
    2021-01-25 17:07

    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.

    0 讨论(0)
提交回复
热议问题