# Does List DensityPlot with RegionFunction use the convex Hull? [duplicate]

As it says, I am using ListDensityPlot (in 10.4), where the data is only defined on a dumbbell shaped region.

ListDensityPlot does the following:

which clearly works on the convex hull. To test, I added a regionFunction to the Plot, and draw the outline in red. So how do I only draw on the inside of the dumbbell?

## marked as duplicate by Jason B., bbgodfrey, MarcoB, Sascha, corey979Jan 20 '17 at 8:26

• Use RegionFunction with whatever generated your first plot to restrict the plot to your domain of interest. But then, where is the code for generating your region? – J. M. will be back soon Dec 20 '16 at 12:50
• insidedumb[i_, j_, r_, o_, d_] := (i - r - o)^2 + j^2 <= r^2 \[Or] (i + r + o)^2 + j^2 <= r^2 \[Or] (-o <= i <= o \[And] -d <= j <= d) – Niels Walet Dec 20 '16 at 13:36
• Also, I did add this as a RegionFunction option to my LstDensityPlot. No effect! – Niels Walet Dec 20 '16 at 13:39
• You need to provide a minimal working example. That is; the code that defines your dumbbell region, a set of data, and the ListDensityPlot code that creates the plot. – Edmund Dec 20 '16 at 13:46
• Unless code is given to show how it's different, then I would mark this as a duplicate of this post. The answer posted there should work perfectly for this example as well. – Jason B. Dec 20 '16 at 15:34

A solution is to overlay the plot with the negation of the function that tests whether points are inside RegionPlot[\[Not] in[i, j], {i, -xm, xm}, {j, -ym, ym}, ColorFunction -> Function[{x, y, z}, White], BoundaryStyle->None].
That works, by just using Show.