The following code (from the Mathematica documentation) produces a simple density graph:
DensityPlot[Sin[x]Sin[y],{x,-4,4},{y,-3,3}]
If I add PlotRange
to the code, the top and bottom white margins (but not the left and right ones) disappear:
DensityPlot[Sin[x]Sin[y],{x,-4,4},{y,-3,3},PlotRange->{-16,16}]
Why does this happen, and how can I avoid it while still using PlotRange
(or some other way of limiting my density graph's value range)?
Thanks in advance.