I want to obtain a density plot of a function fun[x, y]
that is slow to evaluate. It takes many hours to get a density plot. As a simple example, we define the following function:
fun[x_, y_] := (Pause[0.0001]; Sin[x y]^2)
We want to obtain the following density plot:
DensityPlot[fun[x, y], {x, -2, 2}, {y, -2, 2}]
Since this function has symmetries $x\to -x$ and $y\to -y$, the information in the first quadrant is sufficient.
DensityPlot[fun[x, y], {x, 0, 2}, {y, 0, 2}]
In my computer, it takes 2.78 seconds to get the first plot, while 1.56 seconds to get the second one. When we use the second plot to save some time, how to obtain the first plot by using the result of the second plot?