파란색 화살표에 알 수 없는 힘에 대한 텍스트를 어떻게 추가합니까?

파란색 화살표에 알 수 없는 힘에 대한 텍스트를 어떻게 추가합니까?

알 수 없는 힘(파란색 화살표)에 F_P를 추가하고 싶지만 방법을 모르겠습니다.

 \begin{wrapfigure}{r}{3.2cm}   
\begin{tikzpicture}[>=latex',scale=1.5]
% save length of g-vector and theta to macros
\pgfmathsetmacro{\Gvec}{1.5}
\pgfmathsetmacro{\myAngle}{30}
% calculate lengths of vector components
\pgfmathsetmacro{\Gcos}{\Gvec*cos(\myAngle)}
\pgfmathsetmacro{\Gsin}{\Gvec*sin(\myAngle)}

\coordinate (centro) at (0,0);
\draw[dashed,gray,-] (centro) -- ++ (0,-3.5) node (mary) [black,below]{$ $};
\draw[thick] (centro) -- ++(270+\myAngle:3) coordinate (bob);
\pic [draw, ->, "$\theta$", angle eccentricity=2.3] {angle = mary--centro--bob};
\draw [blue, -stealth] (bob) -- ($(bob)!\Gcos cm!(centro)$);
\draw [-stealth] (bob) -- ($(bob)!-\Gcos cm!(centro)$)
  coordinate (gcos)
  node[midway,above right] {$mg\cos\theta$};
\draw [-stealth] (bob) -- ($(bob)!\Gsin cm!90:(centro)$)
  coordinate (gsin)
  node[midway,above left] {$mg\sin\theta$};
\draw [-stealth] (bob) -- ++(0,-\Gvec)
  coordinate (g)
  node[near end,left] {$mg$};
\pic [draw, ->, "$\theta$", angle eccentricity=1.5] {angle = g--bob--gcos};
\end{tikzpicture}
\captionof{figure}{Free body diagram of physical pendulum}

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

답변1

@Qrrbrbirlbel 및 @John Krmylo의 좋은 의견이 이미 있습니다. 간단히 입력해 드리고 MWE를 컴파일할 수 있도록 필요한 코드를 추가하겠습니다.

\documentclass[a4paper]{article}
\usepackage{xcolor,tikz}
\usetikzlibrary{arrows,angles,quotes,calc}


\begin{document}
\begin{tikzpicture}[>=latex',scale=1.5]
% save length of g-vector and theta to macros
\pgfmathsetmacro{\Gvec}{1.5}
\pgfmathsetmacro{\myAngle}{30}
% calculate lengths of vector components
\pgfmathsetmacro{\Gcos}{\Gvec*cos(\myAngle)}
\pgfmathsetmacro{\Gsin}{\Gvec*sin(\myAngle)}

\coordinate (centro) at (0,0);
\draw[dashed,gray,-] (centro) -- ++ (0,-3.5) node (mary) [black,below]{$ $};
\draw[thick] (centro) -- ++(270+\myAngle:3) coordinate (bob);
\pic [draw, ->, "$\theta$", angle eccentricity=2.3] {angle = mary--centro--bob};
\draw [blue, -stealth] (bob) -- ($(bob)!\Gcos cm!(centro)$)
  node[midway,above right] {$F_P$};
\draw [-stealth] (bob) -- ($(bob)!-\Gcos cm!(centro)$)
  coordinate (gcos)
  node[midway,above right] {$mg\cos\theta$};
\draw [-stealth] (bob) -- ($(bob)!\Gsin cm!90:(centro)$)
  coordinate (gsin)
  node[midway,above left] {$mg\sin\theta$};
\draw [-stealth] (bob) -- ++(0,-\Gvec)
  coordinate (g)
  node[near end,left] {$mg$};
\pic [draw, ->, "$\theta$", angle eccentricity=1.5] {angle = g--bob--gcos};
\end{tikzpicture}
\end{document}

결과

관련 정보