因此,我与 LaTeX 斗争了一段时间,但还没有得到关于如何处理这个问题的确切答案。
我有一个图,我的轴是这样的。我显然想让每个数字之间的间距均匀。
\begin{tikzpicture}
\begin{axis}[width=0.8\textwidth,
height = \axisdefaultheight,
title={Bubble Sort and Insertion Sort Algorithm Performance},
xlabel={Number of Elements[in thousand]},
ylabel={Time [in minutes]},
xmin=5, xmax = 500,
ymin = 0, ymax = 30,
xtick = {5, 10, 25, 50, 75, 100, 150, 200, 250, 500},
ytick = {0, 2, 4, 6, 8, 10, 15, 20, 25, 30},
legend pos = north west,
grid style = dashed
]
有人能告诉我如何做到这一点吗?谢谢!