This question partly extends on this post.
I am using the following command line to rotate a line that I use to dimension the radius of a circle, as mentioned in an answer to the above mentioned post:
\draw[-latex, rotate around={45:(0,0)}] (0,0) -- (6,0) node [midway,fill=white] {$\text{Text}$};
The problem is, I am not using (6,0) but a point (p) that is calculated with polar coordinates. As soon as I replace (6,0) by (p), the rotation doesn't work.
How do I workaround the fact that rotate around apparently doesn't work for points in polar coordinates?
Edit: I added the exact code I used to calculate the point with polar coordinates (it's called last1):
\documentclass{standalone}
\newcommand{\ts}[1]{\textnormal{#1}}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows,calc,math,angles,quotes,trees,mindmap,through}
%include other needed packages here
\begin{document}
\begin{tikzpicture}
\draw[-latex] (-4,0) -- (4,0) node[right]{$\ts{Re}(r)$};
\draw-latex -- (0,4) node[above] {$\ts{Im}(r)$};
\def\z{0}
\def\zz{-1.5}
\def\zzz{-5}
\coordinate (last1) at (0:0);
\coordinate (last2) at (0:0);
\coordinate (last3) at (0:0);
\foreach \y in {1,2,3,4,5,6,7,8,9,10,11,12,13,14}
{
\pgfmathsetmacro{\o}{0.05random(0,1000)};
\pgfmathsetmacro{\t}{0.005random(0,100)};
\draw[->] (last1) -- ++ (\o\z:\t) coordinate (last1);
\draw[->] (last2) -- ++ (\o\zz:\t) coordinate (last2);
\draw[->] (last3) -- ++ (\o*\zzz:\t) coordinate (last3);
};
\node at (0,0) [draw,dotted, circle through={(last1)}] {};
\draw[-latex,line width=0.7mm] (0:0) -- (last3);
\draw[-latex, rotate around={45:(0,0)}] (0,0) -- (last1) node [midway,fill=white] {$\sum |b_{z_1z_2\cdots z_N}|^2 =1$};
\end{tikzpicture}
\end{document}

\drawcommand you are using that doesn't work? – Dai Bowen Mar 30 '23 at 18:02rotate around,rotate=45is ignored for(0,0) -- (last1)but respected for(0,0) -- (4,0)– Dai Bowen Mar 30 '23 at 18:43\draw[-latex, rotate around={45:(0,0)}] (0,0) -- (4,0);works (and also\draw[-latex, rotate around={45:(0,0)}] (0,0) -- (0:4);by the way), but what does not work is\draw[-latex, rotate around={45:(0,0)}] (0,0) -- (last1);, although(last1)is also defined as(0:x), right? Well, I don't know why that is and it is surely strange at a first glance, but what would work is\draw[-latex] (0,0) -- ([rotate=45]last1);– Jasper Habicht Mar 30 '23 at 19:32