Grid: Gaps at Zero


https://www.nevron.com/Forum/Topic9530.aspx
Print Topic | Close Window

By Mark Malburg - 8 Years Ago
Check out this image:
www.digitalmetrology.com/Transfer/WeirdGap.jpg

This is a SurfaceGrid with custom X,Z values.  Can I get the "Primary X" and "Depth" axes to plot their zero value in the corner (against the "walls") instead of having the "Weird Gap" in the picture?

Here's how I generate custom values for those axes:

----------  BEGIN CODE ---------------
// fill the X values
surface.XValuesMode = GridSurfaceValuesMode.CustomValues;
surface.ZValuesMode = GridSurfaceValuesMode.CustomValues;

for (int i = 0; i < surface.Data.GridSizeX; i++)
{
surface.XValues.Add(i * dPlotSpacingAlongYUM / 1000.0);
}

for (int i = 0; i < surface.Data.GridSizeZ; i++)
{
surface.ZValues.Add(i * dPlotSpacingAlongXUM / 1000.0);
}

----------  END CODE ---------------

Thanks!


By Nevron Support - 8 Years Ago
Hi Mark,

The following code snippet shows how to get rid of the automatic ordinal scale content inflate:

NStandardScaleConfigurator scaleX = (chart.Axis(StandardAxis.PrimaryX).ScaleConfigurator as NStandardScaleConfigurator);
scaleX.InflateContentRange = false;

NStandardScaleConfigurator scaleDepth = (chart.Axis(StandardAxis.Depth).ScaleConfigurator as NStandardScaleConfigurator);
scaleDepth.InflateContentRange = false;

Hope this helps - let us know if you meet any problems.
By Mark Malburg - 8 Years Ago
Perfect.  Thanks!