How do I draw an angle with a label between two lines when the lines are not necessarily drawn in the same \draw call?
I need to draw an angle with a label, theta, between the y-axis and the pendulum string (see picture below).
Other suggestions/improvements of my code/diagram are welcome.
Current code:
\documentclass[tikz,border=10pt]{standalone}
\usetikzlibrary{calc,patterns}
\begin{document}
\begin{tikzpicture}
\coordinate (origo) at (0,0);
\coordinate (pivot) at (1,5);
% draw axes
\fill[black] (origo) circle (0.05);
\draw[thick,gray,->] (origo) -- ++(4,0) node[black,right] {$x$};
\draw[thick,gray,->] (origo) -- ++(0,-4) node[black,below] {$y$};
% draw roof
\fill[pattern = north east lines] ($ (origo) + (-1,0) $) rectangle ($ (origo) + (1,0.5) $);
\draw[thick] ($ (origo) + (-1,0) $) -- ($ (origo) + (1,0) $);
\draw[thick] (origo) -- ++(300:3) coordinate (bob);
\fill (bob) circle (0.2);
\end{tikzpicture}
\end{document}
Current output:

For illustration, I want something like this in my diagram:





mary? :-) – Dec 22 '14 at 02:54bob? I don't really know, is the answer. For some reason 'Bob' -> 'Other name?' got me 'Mary'. Why? – cfr Dec 22 '14 at 03:01maryby then, I'm afraid. If you'd called itweight, I'd have picked something less anthropomorphic! – cfr Dec 22 '14 at 03:09above,right, etc. works, but e.g.above=5doesn't increase the distance. – Janosh Jan 18 '17 at 10:22positioninglibrary which allows things likeabove=<dimension> of <location>etc. – cfr Jan 19 '17 at 00:19thetain your example. – Janosh Jan 19 '17 at 07:37angle eccentricity. – cfr Jan 20 '17 at 01:21angle=(0,0)--(1,0)--(0,-1)with points and not coordinates your latex code will throw an error. You need to add a coordinate for each point of your angle. 2. If you wish to fill the angle with a certain color you can use thefilloption in the same style as in\draw. – michip96 Jun 11 '18 at 13:40\draw (mary) -- (bob);I must not have spaces between the coordinate names. So\pic [draw] {angle = mary -- origo -- bob};did not work for me, but only\pic [draw] {angle = mary--origo--bob};did. – BadAtLaTeX Jan 22 '19 at 11:13