为了更好地查看某些细节,我希望能够放大图形窗口的大小:如果我增加域(以及最大 y 的值),大小保持不变,曲线更加紧凑。但我找不到允许这样做的设置。
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\usepackage{siunitx}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel = {temps $t$ } ,
ylabel = {nombre de noyaux $N$},
axis line style={->},
xmin = 0, xmax = 2000,
ymin = 0, ymax =20,
xtick=\empty,
extra x ticks={346.5,693,1039.5}, extra x tick labels={$t_{1/2}$, $2t_{1/2}$, $3t_{1/2}$},
ytick={16}, yticklabels={$N_0$},
extra y ticks = {2,4,8}, extra y tick labels={$\frac{N_0}{8}$,$\frac{N_0}{4}$,$\frac{N_0}{2}$}]
% Tracé point à point
\addplot [smooth, thick, red] expression[domain=0:2000] {16*exp(-x/500))};
\end{axis}
\end{tikzpicture}
\end{document}