tikzscale を pgfplots fillbetween ライブラリと一緒に使用する方法

tikzscale を pgfplots fillbetween ライブラリと一緒に使用する方法

私は、すべての pgfplots を適切なサイズに簡単にスケーリングするために 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-environment をファイルに変更なしで配置しfigure1.tikz、このコードを使用すると、奇妙なことが起こります。

\documentclass{standalone}

\usepackage{pgfplots}
\usepackage{tikzscale}
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{fillbetween}

\begin{document}
\includegraphics[width=10cm]{figure1.tikz}

\end{document}

塗りつぶされた領域は境界内に留まるのではなく、特定のポイントを無視します。

間違ったプロット

答え1

現在のバージョンの tikz/pgf をローカルの texmf にインストールすることで、この問題を解決できました。

関連情報