我发现了一个有趣的潜在故障,在中tikzpicture
任意放置会导致在轴上看到的是科学计数法还是十进制计数法。有人能解释一下吗? scaled ticks = false, tick label style ={/pgf/number format/fixed}
\begin{axis}[]
下面的代码(唯一的区别是上面的相对位置)和相应的输出:
\documentclass[]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={my title},
xlabel={$x$},
ylabel={$f(x)$}],
scaled ticks = false,
tick label style={/pgf/number format/fixed}
]
\addplot[black, thick, mark=o, only marks]
coordinates {
(0.134,0.0989)
(0.102,0.0834)
(0.087,0.06)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
scaled ticks = false,
tick label style={/pgf/number format/fixed},
title={my title},
xlabel={$x$},
ylabel={$f(x)$}]
]
\addplot[black, thick, mark=o, only marks]
coordinates {
(0.134,0.0989)
(0.102,0.0834)
(0.087,0.06)
};
\end{axis}
\end{tikzpicture}
\end{document}