I found this question in which it is explained how to draw a bouquet of n circles and this question explains how to draw an arrow on each line. I wanted to combine those two answers to draw a bouquet of n circles such that each circle has an arrow head in the middle, but combining the two questions gives a bouquet of n circles with arrows all over the place. I was wondering if anyone knew how to adjust either of those answers to fix my problem.
Also, I would remove one of the petals and replace them by some dots (to show that there are n petals). I can remove one petal by restricting the domain of the drawing command, but how to get the dots?
I know this is probably not a good question, but I looked into the PGF manual and still could not come up with a nice result, so any help would be greatly appreciated.
EDIT I added code which is basically the answers of the two linked questions combined, but don't know how to make it appear in grey square as the other answers do (I look at the edit button of those answers to see if there is some command needed, but did not find this).
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing,decorations.markings}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\pgfplotsset{compat=newest}
\begin{document}
\tikzset{
% style to apply some styles to each segment of a path
on each segment/.style={
decorate,
decoration={
show path construction,
moveto code={},
lineto code={
\path [#1]
(\tikzinputsegmentfirst) -- (\tikzinputsegmentlast);
},
curveto code={
\path [#1] (\tikzinputsegmentfirst)
.. controls
(\tikzinputsegmentsupporta) and (\tikzinputsegmentsupportb)
..
(\tikzinputsegmentlast);
},
closepath code={
\path [#1]
(\tikzinputsegmentfirst) -- (\tikzinputsegmentlast);
},
},
},
% style to add an arrow in the middle of a path
mid arrow/.style={postaction={decorate,decoration={
markings,
mark=at position .5 with {\arrow[#1]{stealth}}
}}},
}
\begin{tikzpicture}
\begin{polaraxis}
\addplot[mark=none,domain=0:360,samples=300,postaction={on each segment={mid arrow=red}}] {cos(5*x)};
\end{polaraxis}
\end{tikzpicture}
\end{document}




{}to mark things as code block – percusse Apr 03 '18 at 16:14