
나는 모든 pgfplot을 적절한 크기로 편리하게 조정하기 위해 tikzscale 패키지를 사용합니다. 그러나 최근에 이것이 fillbetween 라이브러리에서 작동하지 않는 것 같은 문제에 부딪혔습니다. 이 문제에 대한 해결 방법이 있습니까? 가급적이면 여전히 tikzscale을 사용하고 있습니까?
또한보십시오:pgfplots에서 fillbetween의 크기 조정 문제
문제를 보여주는 MWE:
이 플롯은 잘 컴파일됩니다.
\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}
그러나 tikzscale을 사용하고 파일을 변경하지 않고 tikzpicture 환경을 배치하고 figure1.tikz
이 코드를 사용하면 이상한 일이 발생합니다.
\documentclass{standalone}
\usepackage{pgfplots}
\usepackage{tikzscale}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{fillbetween}
\begin{document}
\includegraphics[width=10cm]{figure1.tikz}
\end{document}
채워진 영역은 경계 내에 머물지 않고 특정 점을 무시합니다.
답변1
내 로컬 texmf에 tikz/pgf의 현재 버전을 설치하여 이 문제를 해결할 수 있었습니다.