绘制线粒体

绘制线粒体

有人能给我一个代码来绘制像下图这样的线粒体,或者类似的东西吗?饼图不是必需的。我是 tikz 的初学者,我尝试了一些方法,并在谷歌上搜索了很多,但都没有成功。非常感谢您的帮助。

线粒体

答案1

一个非常简单的线粒体(添加更多中间控制点):

在此处输入图片描述

代码:

\documentclass{article}
\usepackage{tikz}

\definecolor{mypurple}{RGB}{153,51,51}
\definecolor{mybrown}{RGB}{228,154,74}

\begin{document}

\begin{tikzpicture}
\filldraw[mypurple!80,draw=mypurple!70!black,line width=3pt]
  (0,0) to[out=210,in=90] 
  (-2,-5) to[out=270,in=170] 
  (2,-10) to[out=-10,in=300] 
  (4,-3) to[out=120,in=30] 
  (0,0);
\filldraw[mybrown!70,draw=mybrown!60!black,line width=1pt]
  ([shift={(0pt,-10pt)}]0,0) to[out=210,in=90]
  ([shift={(10pt,30pt)}]-2,-5) .. controls ++(5cm,10pt) and ++(5cm,20pt) ..
  ([shift={(10pt,0pt)}]-2,-5) to[out=270,in=130] 
  ([shift={(0pt,10pt)}]-0.8,-8) .. controls ++(3cm,20pt) .. 
  ([shift={(0pt,-10pt)}]-0.3,-8) to[out=300,in=270,looseness=1.45]
  (4.25,-7) .. controls ++(-2cm,10pt) and ++(-50pt,0pt) ..
  ([shift={(0pt,15pt)}]4.25,-7)
  to[out=80,in=300] 
  ([shift={(-10pt,10pt)}]3.8,-3)  .. controls ++(-4cm,10pt) and ++(-50pt,0pt) ..
  ([shift={(-10pt,30pt)}]3.3,-3) to[out=120,in=30] 
  ([shift={(0pt,-10pt)}]0,0);
\end{tikzpicture}

\end{document}

相关内容