问题
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