I would like to modify the code below so that
- Can I indicate the counterclockwise directions with arrow
-- from O to B -- from B to A -- from A to O
Also, 2. Can we indicate theta_1 and theta_2 starting from x-axis to OB and OA as in the picture attached.
- How can I change the thickness of the curves?
Thanks a bunch for your help.
\documentclass[tikz,border=3.14mm]{standalone}
\makeatletter % https://tex.stackexchange.com/a/127045/121799
\tikzset{use path/.code=\tikz@addmode{\pgfsyssoftpath@setcurrentpath#1}}
\makeatother
\usetikzlibrary{patterns,intersections,backgrounds}
\begin{document}
\begin{tikzpicture}
\draw[latex-latex] (0,4) node[left]{$y$} -- (0,0) coordinate[label=below:$O$](O) -- (5,0) node[below]{$x$};
\draw[save path=\pathA,name path=A](0,0) -- (50:4) coordinate[label=above:$A$](A)
to[out=0,in=130] ++(0.7,-0.5) coordinate (aux)
to[out=-50,in=90] ++(0.7,-0.5) coordinate[label=right:$B$] (B)
-- (B|-O)
--cycle;
\draw[dashed] (A) -- (A-|O) coordinate[label=left:$E$] (E)
(B) -- (B|-O) coordinate[label=below:$C$] (C);
\draw[name path=BF,dashed] (B) -- (B-|O) coordinate[label=left:$F$] (F);
\draw[name path=AD,dashed](A) -- (A|-O) coordinate[label=below:$D$] (D);
\fill[name intersections={of=A and BF,by=H}] (H) coordinate[label=above left:$H$]
circle(1pt);
\draw[name path=BO] (B) -- (O);
\fill[name intersections={of=BO and AD,by={J}}] (J) coordinate[label=below left:$J$]
circle(1pt);
\fill[name intersections={of=BF and AD,by={G}}] (G) coordinate[label=above right:$G$]
circle(1pt);
\draw[latex-] (aux) to[out=50,in=180] ++(0.5,0.5) node[right]{$r=f(\theta)$};
\draw[latex-] (B) to[out=0,in=130] ++(0.3,+0.5) node[right]{$\theta=\theta_1$};
\draw[latex-] (A) to[out=0,in=130] ++(0.3,+0.5) node[right]{$\theta=\theta_2$};
%\begin{scope}
%\clip [use path=\pathA];
%\fill[yellow,opacity=0.2] ([yshift=5pt]A) rectangle (B|-F);
%\end{scope}
\end{tikzpicture}
\end{document}
