When I execute the following,
ListContourPlot[{{0, 0, 0, 0}, {0, 1, 1, 0}, {0, 1, 1, 0}, {0, 0, 0,
0}}]
the output is not symmetric in two directions, which can be seen from the following:
How can I resolve this issue?
You can add an explicit InterpolationOrder
directive. The default is no interpolation (i.e. InterpolationOrder -> None
).
With:
list = {{0, 0, 0, 0}, {0, 1, 1, 0}, {0, 1, 1, 0}, {0, 0, 0, 0}};
In your case:
ListContourPlot[list, InterpolationOrder -> #] & /@ Range[1, 3]
ListContourPlot[{{0, 0, 0, 0}, {0, 1, 1, 0}, {0, 1, 1, 0}, {0, 0, 0, 0}}, InterpolationOrder -> n]
, wheren
takes on different values. Tryn=3
. $\endgroup$