벡터에서 C 라벨 숨기기

벡터에서 C 라벨 숨기기

나는 이 코드를 가지고 있습니다 :

\documentclass{article}

\usepackage{tikz}
\usetikzlibrary{decorations.markings,arrows}
\begin{document}

\begin{tikzpicture}
\coordinate (B) at (1,2);
\coordinate (A) at (3,4);

\coordinate (C) at (3,4);


\draw [fill=blue] (B) circle (2pt) node [left] {};
\draw [fill=blue] (A) circle (2pt) node [left] {A1};

\draw [-latex, red, thick] (B) -- (A);

\coordinate (B) at (1,2);
\coordinate (A) at (4,2);

\draw [fill=blue] (B) circle (2pt) node [left] {};
\draw [fill=blue] (A) circle (2pt) node [right] {A2};

\draw [-latex, red, thick] (B) -- (A);

\draw[postaction={decorate,decoration={markings,mark=at position 0.25 with {\arrow[black,line width=1.5pt]{>}}}}](C)node[below]{C}--(A)node[above]{A};

\end{tikzpicture}

We can define the positive combination of $A_1$ and $A_2$ to be the vectors lying in the cone between them. The line that crosses $A_1$ and $A_2$ (their heads) is the affine combination of them (one of the points plays the role of the origin of the axis).

\end{document}

이는 다음을 생성합니다.

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

C 라벨을 사라지게 만드는 방법은 무엇입니까?

답변1

node[below]{C}마지막 명령에서 삭제합니다 \draw.

아래에서는 동일한 출력을 생성하는 단순화된 코드 버전을 찾을 수 있습니다. 참고용으로만 사용하세요.

\documentclass[border=10pt]{standalone}

\usepackage{tikz}
\usetikzlibrary{decorations.markings,arrows}
\begin{document}

    \begin{tikzpicture}
    \coordinate (A) at (4,2);
    \coordinate (B) at (1,2);   
    \coordinate (C) at (3,4);

    \draw [latex-latex, red, thick] (A) -- (B) -- (C);

    \draw [fill=blue] (A) circle (2pt) node [right=5pt] {$ A_2 $};
    \draw [fill=blue] (B) circle (2pt);
    \draw [fill=blue] (C) circle (2pt) node [right=5pt] {$ A_1 $};  


    \draw[postaction={%
                decorate,
                decoration={%
                    markings,
                    mark=at position 0.25 with {%
                        \arrow[line width=1.5pt]{>}
        }}}] (C) -- (A);

    \end{tikzpicture}

\end{document}

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

답변2

이전에는 이 질문을 본 적이 없습니다. 이제 거의 7년이 지난 지금, 이러한 벡터를 그리는 대체 방법을 보여 드리고자 합니다(연습용).

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, 
                decorations.markings}

\begin{document}
\begin{center}
    \begin{tikzpicture}[
dot/.style = {circle, draw, fill=blue!30, inner sep=2pt, 
              node contents={}},
decoration = {markings,
              mark=at position 0.5 with {\arrow{Straight Barb[length=3pt, line width=1.2pt]}}},
                        ]
\coordinate (A);
\coordinate[label=right:$A_1$] (A1)  at (2,4);
\coordinate[label=right:$A_2$] (A2)  at (3,0);
%
\path       (A) node[dot]  (A1) node[dot] (A2) node[dot];
\draw[-Stealth, red, very thick] (A) edge (A1)   to  (A2);
\draw[postaction={decorate}]  (A1) -- (A2);
    \end{tikzpicture}
\end{center}
We can define the positive combination of $A_1$ and $A_2$ to be the vectors lying in the cone between them. The line that crosses $A_1$ and $A_2$ (their heads) is the affine combination of them (one of the points plays the role of the origin of the axis).

\end{document}

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

관련 정보