I've been trying to rotate a line around an intersection. The problem (I think) is that the intersection is in a previous scope (I need that to have the correct clipping), and the new scope doesn't know what (intersection-1) is. I've been trying the following:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\clip (0,0) circle (5);
\begin{scope}
\clip [name path=clipA] (0,0) -- (-30:25) -- (-150:25) -- cycle;
\fill[name path=SpeciesA, blue, line cap = round] (-0.2,0) -- (-0.2,-4) -- (0.2,-4) -- node[sloped, below] {Species A} (0.2,0) -- cycle;
\tikz\name intersections={of=clipA and SpeciesA}
\end{scope}
\begin{scope}
\clip [(0,0) -- (-30:25) -- (90:25) -- cycle;
\fill[blue!60!red, line cap = round, rotate around={150:(intersection-1)}]
(-0.2,0) -- node[rotate= 150, sloped, below] {Species C} (-0.2,-3) -- (0.2, -3) -- (0.2, 0) -- cycle;
\end{scope}
\begin{scope}
\clip (0,0) -- (-150:25) -- (90:25) -- cycle;
\fill[blue!60!green, line cap = round, rotate=210] (-0.2,0) -- (-0.2,-3) -- (0.2, -3) -- node[rotate= 210, sloped, below] {Species B} (0.2, 0) -- cycle ;
\end{scope}
\end{tikzpicture}
\end{document}
As I say, LaTeX doesn't seem to know what (intersection-1) is, once we get there. Any advice?
Thanks