TikZ: 다른 명령에 대한 옵션으로 정의된 화살촉 색상

TikZ: 다른 명령에 대한 옵션으로 정의된 화살촉 색상

나는 다음과 같은 문제에 직면했을 때 PGF 매뉴얼을 공부하고 있었습니다.

아래 코드를 참고하여 latex화살촉을 지정했습니다.~ 후에요소 \filldraw와 화살촉은 해당 요소의 테두리와 동일한 색상으로 그려집니다. 그러나 비표준 화살촉을 지정하면~ 전에또는 출력이 올바르게 표시된 \filldraw후 표준 화살촉을 사용하는 경우 . \filldraw또한 요소 latex의 유형 화살촉이 \foreach빨간색으로 올바르게 표시됩니다.

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=3]
  \draw [help lines,step=0.5cm] (-1.4,-1.4) grid (1.4,1.4);
  \draw (0,0) circle (1cm);
  \draw [-latex] (0,-1.5) -- (0,1.5);
  \filldraw [fill=green!20,draw=green] (0,0) -- (0.3,0) arc [start angle=0,end angle=30,radius=0.3cm] -- cycle;
  \draw [-latex] (-1.5,0) -- (1.5,0);
  \draw [->,rotate=45,dashed] (-1.5,0) -- (1.5,0);% <-- standard arrowheads are not affected
  \foreach \x in {0,30,...,330}%<-- just to highlight the problem
    \node [draw,thick,red,circle,minimum size=.8cm,
           pin={[pin edge={latex-,red,thick,shorten <=1pt}]\x:$$}] at (1.5,0) {};%<-- these arrows are not affected
\end{tikzpicture}\\
My PGF version is \pgfversion.
\end{document}

여기에 이미지 설명을 입력하세요

여기서 무슨 일이 일어나고 있는 걸까요? 제가 기본적인 실수를 하고 있는 걸까요?

답변1

나는 @percusse의 의견에 동의합니다. 이것은 버그인 것 같습니다!

우리가 이 색상을 사용할 때 draw=some color나중에 일부 화살표가 사용됩니다.

그리고 이상한 방식으로 node이 행동을 재설정했습니다.

다음은 또 다른 최소한의 예입니다.

\documentclass[tikz,border=7mm]{standalone}
\begin{document}
\begin{tikzpicture}
  \path[draw=orange] (0,0) circle(1cm); % this draw color is used after by some arrows
  \draw[ultra thick,|->] (0:-1) -- (0:1); % the standard and | arrows are not affected
  \draw[ultra thick,stealth-latex] (90:-1) -- (90:1); % the latex and stealth arrows use the previous draw color
  \node {}; % node reset the draw color !
  \draw[ultra thick,stealth-latex] (45:-1) -- (45:1); % now it is ok
\end{tikzpicture}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보