三维坐标轴到底是怎么设置的?

发布于 2024-05-21 16:39:20

`documentclass[tikz]{standalone}
tikzset{xyz/.style={x={(-135:0.5)},y={(1cm,0)},z={(0,1cm)}}}
tikzstyle{every node}=[font=small]
begin{document}

\begin{tikzpicture}[xyz,line width=0.7pt,line join =round,scale=2]
    \coordinate(A)at(0,0,0);
    \coordinate(B)at(0,1,0);
    \coordinate(C)at(-1,1,0);
    \coordinate(D)at(-1,0,0);
    \coordinate(P)at(0,0,1);
    \draw(P)--(A)--(B)--(C)--(P)--(B);
    \draw[dashed,line width=0.4pt](P)--(D)--(A) (D)--(C);
    \node[shift={(90:5pt)}] at (P){$P$};
    \node[shift={(-135:5pt)}] at (A){$A$};
    \node[shift={(-45:5pt)}] at (B){$B$};
    \node[shift={(0:5pt)}] at (C){$C$};
    \node[shift={(180:6pt)}] at (D){$D$};
\end{tikzpicture}

end{document}

`网络上搜到的,知道tikzset命令是调三维视图的,但不理解这些参数的含义。所以这些参数的具体含义是什么呀?谢谢

查看更多

关注者
0
被浏览
304
1 个回答
寒江钓徒
寒江钓徒 2024-05-21
这家伙很懒,什么也没写!

明白了,代码中的x轴正向为-135°,且缩放0.5;y轴正向为水平向右;z轴正向为向上。

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览