如何使用 Tikz 创建此图表?

如何使用 Tikz 创建此图表?

我对使用 Tikz 相当熟悉。我以前用它制作过简单的徽标。现在,我想创建这个图表,它有点复杂:

在此处输入图片描述

有谁能给出建议,知道什么才是最好的解决方法?

我知道在我的输出中使用图像文件 (\includegraphics) 非常容易。但是,如果可能的话,我想在 Tikz 中实现它,以实现无限的可扩展性。

顺便说一下,蓝色是#080f6a。

答案1

我尝试使用Tikz编辑,一个非常有用的复制图形的工具。

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\definecolor{figBlue}{HTML}{080f6a}
\begin{document}
\begin{tikzpicture}[scale=0.4]
%frame
\filldraw [draw=figBlue,line width=9pt,fill=white](-12.5,-9.9) .. controls (-1.1,-14.3) 
and (0,-14.3) .. (0,-15.3) [rounded corners] .. controls (0,-14.3)
and (1.1,-14.3) .. (12.5,-9.9)[sharp corners]-- (12.5,15.2) -- (-12.5,15.2)[rounded corners]  -- cycle;
\path[tips,-{Computer Modern Rightarrow[figBlue,length=6ex,line width=1.5ex,sharp]}](0,0) to (0,-16.4);
%blue background circle
\fill[figBlue]  (0,1.7) circle (9.6);
%sun
\fill[white]  (0,7.4) circle (1.2);
%moon
\fill[white] (3.3,7.4) circle (1.3);
\fill [figBlue](3.7,8) circle (1.3);
%tail
\draw[white,line width=4.4pt,line cap=round]
(5.3,2.5)                  .. controls (5.6,2.7)
and (5.9,3)   .. (6,3.4)   .. controls (6,3.9)
and (5.8,4.1) .. (5.4,4.3) .. controls (5.1,4.4)
and (4.6,4.4) .. (4.1,4.3) .. controls (3.6,4.2)
and (3,4)     .. (2.5,3.9) .. controls (1.9,3.8)
and (1.4,3.8) .. (0.9,3.8) .. controls (0.6,3.8)
and (0.4,3.9) .. (0.1,4);
%body
\fill[white,thick] 
    (-5,-4.7) --  (-4.6,-4.3)
--  (-3.4,-0.1) .. controls (-3,2)
and (-3.9,3.6) .. (-4.3,4.8) .. controls (-4.4,5.4)
and (-4.9,5.2) .. (-5.1,5.1) .. controls (-5.2,5.1)
and (-5.3,5.1) .. (-5.4,5.2) .. controls (-5.4,5.3)
and (-5.3,5.3) .. (-5.2,5.4) .. controls (-5.2,5.4)
and (-5.1,5.5) .. (-5.2,5.5) .. controls (-5.3,5.5)
and (-5.6,5.6) .. (-5.7,5.6) .. controls (-5.8,5.7)
and (-5.6,5.8) .. (-5.5,5.9) .. controls (-5.4,6)
and (-4.7,6.2) .. (-4.5,6.3) .. controls (-4.4,6.5)
and (-4.6,6.6) .. (-4.7,6.8) .. controls (-4.7,7.3)
and (-4.3,7.7) .. (-4.2,7.9) .. controls (-4.2,7.5)
and (-4.3,7.1) .. (-4.2,6.6) .. controls (-4.1,6.5)
and (-3.9,6.5) .. (-3.7,6.5) .. controls (-3.4,7)
and (-3.6,7.4) .. (-3.6,7.6) .. controls (-3.6,7.8)
and (-3.5,7.9) .. (-3.3,7.6) .. controls (-3.2,7.4)
and (-3,7.1) ..   (-3.1,6.6) .. controls (-3.3,6.4)
and (-3,6.7) ..   (-3.4,6.3) .. controls (-3.5,6.2)
and (-3.4,6) ..   (-3.1,4.9) .. controls (-3,4.5)
and (-2.6,2.9) .. (-1.9,2.5) .. controls (-1.3,2.2)
and (-0.7,2.4) .. (0.5,2.6)  .. controls (1.4,2.8)
and (2.8,3) ..    (3.6,3)    .. controls (4.2,3)
and (5.3,3) ..    (5.5,2.3)  .. controls (5.7,1.6)
and (5.5,1.3) ..  (5,0.8)    .. controls (4.8,0.7)
and (4.8,0.5) ..  (4.8,0.2)
-- (5.3,-4.1) --  (5.4,-4.4)
-- (4.7,-4.4) --  (5,-4.1)
-- (4.2,-0.3) --  (2.9,-4.1)
-- (2.9,-4.4) --  (2.2,-4.4)
-- (2.5,-4.1) --  (3.5,-0.4) .. controls (3.6,-0.1)
and (3.6,0.1) ..  (3.6,0.5)  .. controls (3.6,1.3)
and (2.5,0.9) ..  (2,0.8)    .. controls (1,0.5)
and (-0.2,-0.1) ..(-2,0.2)
-- (-1.2,-4.7) -- (-1.5,-4.7)
-- (-1.9,-4.7) -- (-1.6,-4.4)
-- (-2.7,-0.2) -- (-4.3,-4.3)
-- (-4.3,-4.7) -- cycle;
\end{tikzpicture}   
\end{document}

使用 TikZ 和 TikzEdt 创建的徽标

我该怎么做?我使用 TikzEdt 导入了图形\node {\includegraphics{figure}};,然后使用 TikzEdt 的工具复制了图形。显然你应该知道 pgf/TiZ 用于调整图形以获得最终结果。例如,在此图中,我在框架底部添加了一个箭头提示。

相关内容