I am trying to fill the space between two inward offsets of a polygone. Thanks to this fantastic answer I could figure out how to create the inward shapes. However, I cannot find a way to fill the area between both paths using the even odd rule.
Here's a MWE:
\documentclass[border=2mm]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{nfold}
\makeatletter
\tikzset{offset/.code=\tikz@addmode{\pgfgetpath\tikz@temp\pgfsetpath\pgfutil@empty\pgfoffsetpath\tikz@temp{#1}}}
\makeatother
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ymode=log,
xmin=0, xmax=200,
ymin=1, ymax=10000,
grid=both]
\begin{scope}[even odd rule]
\fill
[postaction={offset=-1pt, draw=red}]
[postaction={offset=-3pt, draw=blue}]
(axis cs: 52,10000) .. controls (axis cs: 198,207) .. (axis cs: 199,5) --
(axis cs: 159,5) .. controls (axis cs: 159,166) .. (axis cs: 50,5371) -- cycle;
\end{scope}
\end{axis}
\end{tikzpicture}
\end{document}

even odd ruleis used on one path(with self intersections or voids). I do not know the exact meaning of "fill the area between both paths"!? – hpekristiansen Oct 25 '23 at 20:36