Tikz:x轴上的对数刻度和次刻度

时间:2019-01-20 15:32:55

标签: latex

我有一个表示y = f(x)的图形,我想使用tikz将其绘制为对数刻度的[10,300]范围内的x值。如果我设置xmax = 1e3,则刻度线和次刻度线是预期的。但是,当我设置xmax = 300时,较小的滴答声消失了。在下面的两张图片中,我展示了这种行为:

\begin{axis}[
legend cell align={left},
legend entries={{Test},{Test Clip},{Train},{Train Clip}},
legend style={at={(0.03,0.97)}, anchor=north west, draw=white!80.0!black},
tick align=outside,
tick pos=left,
x grid style={white!69.01960784313725!black},
xlabel={$\dim(z)$},
xminorticks=true,
xmode=log,
xmin=10, xmax=1e3,
y grid style={white!69.01960784313725!black},
ylabel={PSNR},
ymin=15.8800682154579, ymax=26.0503182019626
]

enter image description here

\begin{axis}[
legend cell align={left},
legend entries={{Test},{Test Clip},{Train},{Train Clip}},
legend style={at={(0.03,0.97)}, anchor=north west, draw=white!80.0!black},
tick align=outside,
tick pos=left,
x grid style={white!69.01960784313725!black},
xlabel={$\dim(z)$},
xminorticks=true,
xmode=log,
xmin=10, xmax=300,
y grid style={white!69.01960784313725!black},
ylabel={PSNR},
ymin=15.8800682154579, ymax=26.0503182019626
]

enter image description here 如您所见,我唯一更改的是参数xmax。

提前谢谢

0 个答案:

没有答案
相关问题