2014-07-01 38 views
1

我想從ILLinePlot的上下顛倒Y軸(從下降變爲上升)。我的結果是這樣的: enter image description here 這裏是代碼:如何在ILNumerics中反轉軸

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

如何扭轉Y軸變成這個數字? enter image description here

回答

0

旋轉180度繞X軸情節立方體:

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

您可能需要進一步配置地塊軸。

+0

是的,它的工作原理。但是我在Y軸上丟失了我的標籤。你知道如何解決這個問題嗎? – ehmind