如何消除此凯莱图上的箭头

如何消除此凯莱图上的箭头

我正在尝试绘制下一个图表,但不使用箭头:

\documentclass[11pt]{article}

\usepackage{tikz}
\usetikzlibrary{lindenmayersystems,arrows.meta}

\newcount\quadrant
\pgfdeclarelindenmayersystem{cayley}{
  \rule{A -> B [ R [A] [+A] [-A] ]}
  \symbol{R}{ \pgflsystemstep=0.5\pgflsystemstep } 
  \symbol{-}{
\pgfmathsetcount\quadrant{Mod(\quadrant+1,4)}
\tikzset{rotate=90}}
  \symbol{+}{
    \pgfmathsetcount\quadrant{Mod(\quadrant-1,4)}
    \tikzset{rotate=-90}
      }
\symbol{B}{
        \draw [dot-cayley] (0,0) -- (\pgflsystemstep,0) 
       node [font=\footnotesize, midway, 
         anchor={270-mod(\the\quadrant,2)*90}, inner sep=.5ex] 
       {\ifcase\quadrant$  $\or$ $\or$ $\or$ $\fi};
\tikzset{xshift=\pgflsystemstep}} }
\tikzset{
  dot/.tip={Circle[sep=-1.5pt,length=3pt]}, cayley/.tip={Stealth[]dot[]}    }

\begin{document}
\begin{tikzpicture}
\draw l-system [l-system={cayley, axiom=[A] [+A] [-A] [++A], step=2cm, order=3}];
\end{tikzpicture}
\end{document}

结果是:

在此处输入图片描述

但我想要没有箭头的。我不知道该怎么做,我是新手。请帮忙。

答案1

像这样?

只需删除Stealth[]此处:

\tikzset{
  dot/.tip={Circle[sep=-1.5pt,length=3pt]}, cayley/.tip={Stealth[]dot[]}    }

完整代码:

\documentclass[11pt]{article}

\usepackage{tikz}
\usetikzlibrary{lindenmayersystems,arrows.meta}

\newcount\quadrant
\pgfdeclarelindenmayersystem{cayley}{
  \rule{A -> B [ R [A] [+A] [-A] ]}
  \symbol{R}{ \pgflsystemstep=0.5\pgflsystemstep } 
  \symbol{-}{
\pgfmathsetcount\quadrant{Mod(\quadrant+1,4)}
\tikzset{rotate=90}}
  \symbol{+}{
    \pgfmathsetcount\quadrant{Mod(\quadrant-1,4)}
    \tikzset{rotate=-90}
      }
\symbol{B}{
        \draw [dot-cayley] (0,0) -- (\pgflsystemstep,0) 
       node [font=\footnotesize, midway, 
         anchor={270-mod(\the\quadrant,2)*90}, inner sep=.5ex] 
       {\ifcase\quadrant$  $\or$ $\or$ $\or$ $\fi};
\tikzset{xshift=\pgflsystemstep}} }
\tikzset{
  dot/.tip={Circle[sep=-1.5pt,length=3pt]}, cayley/.tip={dot[]}    }

\begin{document}
\begin{tikzpicture}
\draw l-system [l-system={cayley, axiom=[A] [+A] [-A] [++A], step=2cm, order=3}];
\end{tikzpicture}
\end{document}

截屏

相关内容