我正忙着创建学习曲线,但是我无法将我的图(蓝色)和基线(黑色)归零。我使用具有固定刻度点的对数 x 轴。当我使用时xmin > 0
,我的整个图会向右移动。有人有想法吗?
我使用的代码:
\begin{semilogxaxis}[
title={Learning curve},
xlabel={Training examples},
ylabel={F-score},
xmin=0, xmax=7600,
ymin=0.0, ymax=0.7,
xtick={0,500,1000,2000,4000,7600},
ytick={0,0.1,0.2,0.3,0.4,0.5,0.6,0.7},
log ticks with fixed point,
x tick label style={/pgf/number format/1000 sep=\,},
legend pos=south east,
ymajorgrids=true,
grid style=dashed,
]
\addplot[
color=blue,
mark=square,
thick,
]
coordinates {
(0,0)(500,0.45)(1000,0.47)(2000,0.49)(4000,0.52)(7600,0.63)
};
\addplot[
mark=none,
thin,
]
coordinates {
(0,0.42)(500,0.42)(1000,0.42)(2000,0.42)(4000,0.42)(7600,0.42)
};
\end{semilogxaxis}