6

Is there any way to use the circle connection bar feature from the mindmap Tikz library with non circular node shapes?

Here a non working Example:

enter image description here

\documentclass[]{article}

\usepackage{tikz}
\usetikzlibrary{mindmap}
\usetikzlibrary{positioning}


\begin{document}

    \begin{tikzpicture}
        \node[circle, draw] (a) {a};
        \node[rectangle, rounded corners, draw, above right=of a] (b) {b};

        \path (a) to[circle connection bar] (b);
    \end{tikzpicture}

\end{document}
  • 5
    No, not really. Take a look at the PGFmanual and the sections about the circle connection bar decoration and the circle connection bar to-path. If you use the decoration, you can give the values start radius and end radius. It would also be best to use a true rectangular shape with rounded corners so that the anchors are set correctly. However, this will all get very complex if you want to connect to irregular things/shape. – Qrrbrbirlbel Oct 29 '13 at 16:29
  • @Qrrbrbirlbel Do you want to write an answer? ('No' can be an answer as well, however boring it is.) – Torbjørn T. Nov 2 '13 at 21:55
2

Expanding @Qrrbrbirlbel's comment into an answer:

No, not really. Take a look at the PGF manual and the sections about the circle connection bar decoration and the circle connection bar to-path. If you use the decoration, you can give the values start radius and end radius. It would also be best to use a true rectangular shape with rounded corners so that the anchors are set correctly. However, this will all get very complex if you want to connect to irregular things/shape.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.