Interpolation issues with Mesh and Contour graphs. When

Interpolation issues with Mesh and Contour graphs.
When SigmaPlot graphs a mesh or contour graph, if the X and Y data forms a regular matrix, the
graphs are usually as expected. When the X and Y values are not so spaced, SigmaPlot interpolates
values, and can give unexpected results. This article covers other options for generating data for
these graphs.
The regular matrix mentioned looks like this… or this:
XY Values
7
7
6
6
5
5
4
4
Y Data
Y Data
XY Values
3
3
2
2
1
1
0
0
0
1
2
3
4
5
0
1
2
3
X Data
4
5
6
7
X Data
The spacing is not important, but the values must be the same, and all present. When this is so, we
get a graph as below:
3D Graph 2
10
6
4
2,0
5
4
1,5
3
Y Da
2
ta
Da
2,5
0
ta
4,0
3,5
3,0
2
X
0
2
4
6
8
10
Z Data
8
1
1,0
If there is any dither in the X or Y values, SigmaPlot will interpolate, defaulting to 24 intervals in X
and Y:
3D Graph 3
10
4
2,5
0
2,0
5
4
1,5
3
Y Data
ta
4,0
3,5
3,0
2
Da
0
2
4
6
8
10
6
X
Z Data
8
2
1
1,0
In this example, two of the Y values deviated by 0,01. The interpolation pushs the highest point on
the graph above any measured values. This can be extreme when there is much deviation in all of
the data.
To get a result closest to the top graph in this article, we can use the Smooth 3D Data tool in the
Analysis ribbon, Smoothers.
We select the Source Data
Save the predicted values
And can graph the results. Important here is that after clicking Finish, the Options are selected:
Below is a graph with the default intervals, but with Nearest neighbors selected:
Nearest Neighbor smoothing
10
8
Z Data
6
4
2,5
0
4
X
2,0
5
ta
4,0
3,5
3,0
2
Da
0
2
4
6
8
10
1,5
3
2
Y D ata
1
1,0
If the interval is set to closely match the original data, we get even closer to the top graph:
Nearest Neighbors, match intervals
10
Z Data
8
6
4
2,0
5
4
1,5
3
Y Data
2
1
1,0
Da
2,5
0
ta
4,0
3,5
3,0
2
X
0
2
4
6
8
10