ILNumerics Ultimate VS

SplinePlotResolution Property

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Get or sets the resolution of SplinePlot

[ILNumerics Drawing2 Toolbox]

Namespace:  ILNumerics.Drawing.Plotting
Assembly:  ILNumerics.Toolboxes.Drawing2 (in ILNumerics.Toolboxes.Drawing2.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public Nullable<int> Resolution { get; set; }

Property Value

Type: NullableInt32
Exceptions

ExceptionCondition
ArgumentExceptionIf resolution value is less or equals 0.
Remarks

Resolution indicates the number of additional query points that are created between two original points. If the resolution is null, it will be calculated automatically. However, this optional parameter is only available for 1D and 2D data.

Exception handling please see SplinePlot constructor.

[ILNumerics Drawing2 Toolbox]

Examples

Creates and plots a smooth SplinePlot through 10 random data points. Use this example in a Windows Forms Application project.

Setting up the new resolution value updates recently created SplinePlot

 private void ilPanel1_Load(object sender, EventArgs e) {
    // define a function in 3D space
    Array<float> Points = tosingle(rand(3, 10));         

    // setup the plot cube ...
     var pc = ilPanel1.Scene.Add(new PlotCube(twoDMode: false));

    // plot smooth Spline plot with resolution 2
     var mySplinePlot = pc.Add(new SplinePlot(Points, lineColor: Color.Red, markerStyle: MarkerStyle.Dot, resolution:2));

     // change spline resolution
     mySplinePlot.Resolution = 4;

}
See Also

Reference