I am trying to do ListContourPlot a list of three-dimensional data. The notebook file and the dependent file are attached here.
I think the portion marked in the red-colored box is noise generated from the Mathematica module. Is there any way to remove these gittery plots from the original plot?
I don’t know that they qualify as jittery, exactly. Try ListPlot3D[Map[Reverse, allres]] to see what I mean. They really show a precipitous change I would describe as a fold, with some jaggedness on one side.
Some trial and error indicates that smoothing the middle coordinates can make a difference to the outcome. I show this below. I use a (fairly long) triangle-type filter to convolve those values.
Still a bit of weirdness at the lower right but much of the jaggedness is gone. One can experiment with the kernel size to get a trade-off between smoothness and fidelity to the original.
Hi all, I basically think that ListContourPlot[], ListPlot3D[] and friends should simply not accept ambiguous data - like it is the case with Interpolation[]. Here comes immediately the warning “There are duplicated abscissa points in …”. Here is an example:
(* two sets of test data: *)
ds = Flatten[Table[{x, y, Sin[x + y^2]}, {x, -Pi, Pi, .1}, {y, -Pi, Pi, .1}], 1];
dc = Flatten[Table[{x, y, Cos[x^2 + y]}, {x, -Pi, Pi, .1}, {y, -Pi, Pi, .1}], 1];
(* creating a single ambiguous set: *)
da = Sort[Join[dc, ds]];
ListContourPlot[da]