Profile Picture

Grid: Gaps at Zero

Posted By Mark Malburg 8 Years Ago
Author
Message
Mark Malburg
Problem Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 11, Visits: 63
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!




Nevron Support
Posted 8 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,000
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.


Best Regards,
Nevron Support Team



Mark Malburg
Posted 8 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 11, Visits: 63
Perfect.  Thanks!



Similar Topics


Reading This Topic