tikz 图片中节点内的箭头

tikz 图片中节点内的箭头

嗨,你们这些出色的 Tikzers!我是新来的,在图表方面遇到了问题。我想制作类似下图的东西。粗略手绘所需结果的 Paint 图表

我复制并粘贴了一些代码并摆弄了一下,这就是我目前得到的结果。

第一个结果

我的问题是:如何在“l”当前所在的位置添加一些小箭头。我在下面提供了一个最小的工作示例:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage{tikz}

\usetikzlibrary{arrows, positioning, shapes.geometric}

\begin{document}

\begin{center}
\begin{tikzpicture}
\tikzstyle{every node}=[inner sep=1.7pt,anchor=center]
\tikzstyle{to_1}=[shorten >=5pt]
\tikzstyle{to_1i}=[shorten >=6pt]
\tikzstyle{to_2}=[shorten >=7pt]
\tikzstyle{to_3}=[shorten >=8pt]
\tikzstyle{from_1}=[shorten <=5pt]
\tikzstyle{from_1i}=[shorten <=6pt]
\tikzstyle{from_2}=[shorten <=8pt]
\begin{scope}
\draw [ultra thick] circle(1cm);
\draw [ultra thick] (0:4)--(180:4) (90:4)--(270:4);
\foreach \a
in {45,135,225,315}{
    \node at (90-\a:0.5cm) {\l};
        }

   \draw [very thick] circle(2cm);
   \foreach \A in {90,0,270,180}{
    \foreach \a in {30,60,90}{
                \draw [very thick] (\A+\a:1) -- (\A+\a:4);
            \node at (\A-\a+11.25:1.5) {\l};
       }
} \draw circle(4cm) (0:4)--(180:4) (90:4)--(270:4);

\end{scope}
\end{tikzpicture}
\end{document}

任何帮助都非常感谢!我对这些真的还很陌生 :-)

答案1

像这样?

在此处输入图片描述

\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{positioning, shapes.arrows}

\begin{document}
    \begin{tikzpicture}[
SA/.style = {shape=single arrow, draw,
             minimum height=5mm, minimum width=5mm,
             single arrow head extend=1.5mm,
             shape border rotate=#1,
             sloped
             }
                        ]
\foreach \a in {1,...,11}{\draw (0,0) -- (\a*360/12:4);}
\foreach \a in {1,...,3 }{\draw (0,0) -- (\a*90:4);}

\draw [ultra thick,fill=white] circle(1cm);
\draw [ultra thick] circle(2cm);
\draw circle (4cm);

\foreach \a/\r in {0/0, 90/0, 180/180, 270/0}
    {\path (0,0) -- node[SA={\r}] {} (\a:1cm);}
    \end{tikzpicture}
\end{document}

相关内容