I have a data set on the form of 3 spatial coordinates x,y,z
and an amplitude. Here is a small crop of the data, :
{{0, 0, 0, 1.00448}, {0, 4, 0, 2.98714}, {0, 4, 0.010101,
2.98712}, {0.010101, 4, 0.010101, 2.9871}, {0, 4, 0.020202,
2.98713}, {0.010101, 4, 0.030303, 2.98709}, {0, 4, 0.030303,
2.9871}, {0.010101, 0, 0.050505, 1.00449}, {0, 0, 0.050505,
1.0045}, {0.010101, 4, 0.050505, 2.9871}}
What I would like is a 2D-contour plot on the form x, y, amplitude
, where the contour interface is represented by the values of amplitude
within, say, 2.0 +/- 0.05. This is all I want, a black-colored contour on a white background.
First, what I do is to extract the data points that satisfy data[[:,3]]
within 0 +/- 0.05, which I do using Select
: Select[data, -0.05 < #[[3]] < +0.05 &];
Then I extract the points that satisfy that amplitude
is within 2.0 +/- 0.05. This is easy, same procedure.
However, when I plot it using ListContourPlot
, not only is the domain reduced, but the interface is still multicolored.
Is there a way to obtain a simple contour plot?
f[x,y,z]
, then you want a contour plot off[x,y,2.0+delta]
wheredelta
is summed from plus/minus 0.05. Is that correct? $\endgroup$