I am plotting the same function using ListDensityPlot
and DensityPlot
but the output is different!
There are some points where the function is complex or pure imaginary where DensityPlot
show this region as White. However, ListDensityPlot
show coloring in the same region.
mod = ParallelTable[
With[{κ = 0.23}, {ky, ϵ,
Sqrt[-ky^2 + ϵ^2 + κ^2 -
Sqrt[ϵ^2 - 4 ky^2 κ^2 +
4 ϵ^2 κ^2]]}], {ky, -0.35, 0.35,
0.001}, {ϵ, 0, 0.2, 0.001}];
ListDensityPlot[Flatten[mod, 1]]
With[{κ = 0.23},
DensityPlot[
Sqrt[-ky^2 + ϵ^2 + κ^2 -
Sqrt[ϵ^2 - 4 ky^2 κ^2 +
4 ϵ^2 κ^2]], {ky, -0.35, 0.35}, {ϵ,
0, .2}, PlotRange -> Full, Exclusions -> None, PlotPoints -> 50]]
DensityPlot
. In particular, in the blue region in the first plot, the values of the function are actually complex. I don't know whyListDensityPlot
is plotting anything in that region. $\endgroup$