
Ich verlasse mich auf das Paket tikzscale, um alle meine pgfplots bequem auf die richtige Größe zu skalieren. Allerdings bin ich kürzlich auf das Problem gestoßen, dass dies mit der Bibliothek fillbetween nicht zu funktionieren scheint. Gibt es einen Workaround für dieses Problem, vorzugsweise unter Verwendung von tikzscale?
Siehe auch:Skalierungsproblem mit fillbetween in pgfplots
MWE zeigt das Problem:
Diese Darstellung lässt sich problemlos kompilieren.
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=0,
xmax=3500,
ymin=0,
ymax=2000000000]%,
\addplot [name path=lower,color=red,dotted]
table[row sep=crcr]{
200 1e7\\
1000 1e8\\
3000 1e8\\
};
\addplot [name path=upper,color=red,dotted]
table[row sep=crcr]{
200 1e8\\
1000 2e8\\
3000 1e9\\
};
\addplot+[red, opacity=0.4]
fill between[of=upper and lower];
\end{axis}
\end{tikzpicture}
\end{document}
Wenn ich jedoch tikzscale verwende, die tikzpicture-Umgebung unverändert in die Datei einfüge figure1.tikz
und diesen Code verwende, passieren seltsame Dinge:
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage{tikzscale}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{fillbetween}
\begin{document}
\includegraphics[width=10cm]{figure1.tikz}
\end{document}
Anstatt innerhalb der Grenzen zu bleiben, ignoriert der ausgefüllte Bereich einfach bestimmte Punkte.
Antwort1
Ich konnte dieses Problem lösen, indem ich die aktuelle Version von tikz/pgf auf meinem lokalen texmf installierte.