I cannot understand why figure (a) does not display the filled region, while (b) does.
PGF reports the following warning:
Package pgf Warning: fill between skipped: the first input path is empty. on input line 20.
Here is my code:
\documentclass{article}
\usepackage[labelformat=simple]{subcaption}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.14}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[t]{0.5\textwidth}
\begin{tikzpicture}
\begin{axis}[try min ticks=6]
\addplot[blue, name path=A] table{tab1.dat};
\addplot[red, dashed, name path=B] table{tab2.dat};
\addplot[orange] fill between[of=A and B, soft clip={domain=0:10}];
\end{axis}
\end{tikzpicture}
\caption{}
\end{subfigure}%
~~%
\begin{subfigure}[t]{0.5\textwidth}
\begin{tikzpicture}[yscale=1.0, xscale=1.0]
\begin{axis}[try min ticks=6]
\addplot[blue, name path=A] table{tab3.dat};
\addplot[red,dashed, name path=B] table{tab2.dat};
\addplot[orange] fill between[of=A and B, soft clip={domain=0:10}];
\end{axis}
\end{tikzpicture}
\caption{}
\end{subfigure}
\end{figure}
\end{document}
The tables can be downloaded at tab1 tab2 tab3
Can anyone please help me?
tab3.dat
etc. is missing -- apart from that, nice MWE :)