如何控制ILPlotCube中的原点位置?

How to control the position of the origin in ILPlotCube?

当我使用 ILPlotCube 绘制数据时,显示的 (0,0) 原点与 x 轴和 y 轴有一些偏移量 (margin/gap)。我怎样才能删除这个偏移量?

您可以使用 ILLimits.Set

例如:

 var start = -2;
 var sz = 6;

 ILArray<float> x = Enumerable.Range(start, sz).ToArray();
 var pc = new ILPlotCube(twoDMode: true)
 {
     new ILLinePlot(x)
 };

 pc.Limits.Set(new Vector3(0, start + sz - 1, 0), new Vector3(sz - 1, start, 0));

已添加 (01/12/2016)

我的理解是:要去掉红圈里的space? Get rid of red circle 还稍微更改了代码。