I have a simple question I have no answer to - how do I create an Epilog
in (for example) a DensityPlot
that consists of a Disk[]
with a hole with the inner radius being r1
and the outer radius being r2
? Imagine something like this:
Graphics[{{Gray, Disk[{0, 0}, 1]}, {White, Disk[{0, 0}, 0.5]}}]
However, this would hide the density plot in the "hole" (it would stay white). How to create such object as an epilog to a density plot, stream plot etc?
I had two ideas: first, if there is something like GraphicsDifference, that would be it: bigger Disk minus the smaller one creates the object I'm after. However, I found no such function.
Second: create a circle using a really thick line so that the inner boundary corresponds to r1
and the outer to r2
. However this would not scale nicely (i.e. using ImageSize -> ...
during export would not preserve these radii).
Thanks.
Annulus
was introduced in 10.2 $\endgroup$