![如何将 Inkscape 中制作的图表转换为 Latex(pgf、tikz 等)?](https://linux22.com/image/377246/%E5%A6%82%E4%BD%95%E5%B0%86%20Inkscape%20%E4%B8%AD%E5%88%B6%E4%BD%9C%E7%9A%84%E5%9B%BE%E8%A1%A8%E8%BD%AC%E6%8D%A2%E4%B8%BA%20Latex%EF%BC%88pgf%E3%80%81tikz%20%E7%AD%89%EF%BC%89%EF%BC%9F.png)
答案1
只是为了好玩,因为使用 inkscape 库不是那么容易3d
。
\documentclass[border=3.14mm, tikz]{standalone}
\usetikzlibrary{3d,intersections}
\begin{document}
\begin{tikzpicture}[y={({(cos(30)/sqrt(2))*1cm},{(sin(30)/sqrt(2))*1cm})},x={(1cm,0cm)}, z={(0cm,1cm)},font=\sffamily]
\begin{scope}[canvas is xy plane at z=0]
\draw[fill=gray!20] (-4,-4) -- (4,-4) -- (4,4) -- (-4,4) -- cycle;
\end{scope}
\draw[-latex] (-3.5,0,0) -- (3.5,0,0) node[below]{Re};
\draw[-latex] (0,-3.5,0) -- (0,3.5,0) node[right]{Im};
\draw[-latex] (0,0,0) -- (0,0,4.5) node[right]{$w$};
\draw[name path global=line,gray!50](0,0,4) -- (3,1,0) node[above right,black]{$z$};
\begin{scope}[canvas is xz plane at y=0]
\shade[ball color=gray,opacity=0.5,name path global=circle] (0,2) circle(2);
\end{scope}
\draw[name intersections={of=circle and line},shorten >=-2pt,line
width=1.2\pgflinewidth] (3,1,0) --
(intersection-2) node[above right]{$z$};
\end{tikzpicture}
\end{document}