3d 图中 1 到 4 轴的比例,pgfplots

3d 图中 1 到 4 轴的比例,pgfplots

我在域中有一个 3d 图

xmin=0,
xmax=256,
ymin=0,
ymax=1024

我希望y轴比轴长 4 x,因此它看起来更像下面这样(使用 Wolfram Mathematica 制作):

正确比例

我现在有的是这样的:

阴谋

找不到关于如何在 3D 图中缩放轴的答案。希望这不是重复的。

我所做的最远的事情就是设置scale only axis=true

谢谢!

生成代码:

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
    scale only axis=true,
    view={150}{20},
xmin=0,xmax=256,ymin=0,ymax=1024,zmin=0,zmax=130,
]
% Curves
\addplot3+[black, no markers,samples=200, samples y=0,domain=0:1024,variable=\t]
({60}, {\t}, {426803/(6400 + (-512 + \t)^2))});
\addplot3+[black, no markers,samples=200, samples y=0,domain=0:1024,variable=\t]
({100}, {\t}, {810283/(6400 + (-512 + \t)^2))});
\addplot3+[black, no markers,samples=200, samples y=0,domain=0:1024,variable=\t]
({120}, {\t}, {687097/(6400 + (-512 + \t)^2))});
\addplot3+[black, no markers,samples=200, samples y=0,domain=0:1024,variable=\t]
({140}, {\t}, {743646/(6400 + (-512 + \t)^2))});
\addplot3+[black, no markers,samples=200, samples y=0,domain=0:1024,variable=\t]
({180}, {\t}, {607385/(6400 + (-512 + \t)^2))});

% Arrows
\draw[<->] (60, 432, 33.344) -- (60, 592, 33.344);
\draw[<->] (100, 432, 63.3033) -- (100, 592, 63.3033);
\draw[<->] (120, 432, 53.6795) -- (120, 592, 53.6795);
\draw[<->] (140, 432, 58.0974) -- (140, 592, 58.0974);
\draw[<->] (180, 432, 47.452) -- node [midway, below] {$\Delta \lambda$}(180, 592, 47.452);

\end{axis}
\end{tikzpicture}
\end{document}

相关内容