Как добавить текст для неизвестной силы на синей стрелке?

Как добавить текст для неизвестной силы на синей стрелке?

Я хочу добавить 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}

Результат

Связанный контент