我如何使用乳胶绘制这个笛卡尔框架?

我如何使用乳胶绘制这个笛卡尔框架?

我想用 Latex 绘制这个框架

我怎样才能使用乳胶绘制它?谢谢 :)

答案1

我会使用正交投影。如今的标准工具是asymptotetikz-3dplotperspective

\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{perspective}
\begin{document}
\begin{tikzpicture}[>=stealth,semithick,line cap=round,
    3d view={110}{15},%<- install 3d view and set view angles
    declare function={Mx=4;My=3;Mz=4;}%<- define the components of M
    ]
 \draw (0,0,0) -- (5,0,0) ;
 \draw (0,0,0) -- (0,5,0) ;
 \draw (0,0,0) -- (0,0,5) ;
 \draw[red,->] (0,0,0) -- (Mx,My,Mz)coordinate(M) node[pos=1.1]{$M$};
 \draw[green!70!black,->] (0,0,0) -- (Mx,My,0)coordinate(M') node[pos=1.2]{$M'$};
 \draw[dashed] (Mx,0,0) node[above left,red]{$x$} -- (Mx,My,0)
  -- (0,My,0) node[above,red]{$y$}
  (M') -- (M) -- (0,0,Mz) node[left,red]{$z$};
 \draw[->,cyan] (0,0,0) -- (1,0,0) node[above left] {$\vec i$}; 
 \draw[->,cyan] (0,0,0) -- (0,1,0) node[above] {$\vec j$}; 
 \draw[->,cyan] (0,0,0) -- (0,0,1) node[left] {$\vec k$}; 
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容