# How do I create a Tikz mindmap that has two connected roots?

I am creating a mindmap that has multiple root concepts instead of just one. How can I create such a mindmap using Tikz?

These are the mindmaps:

\begin{tikzpicture}[small mindmap,concept color=brown!30]
\node (right) at (2,0) [concept] {Right}
[clockwise from=70]
child { node[concept] {R.1} }
child { node[concept] {R.2} }
;
\node (left) at (-2,0) [concept] {Left}
[counterclockwise from=210]
child { node[concept] {L.1}  }
child { node[concept] {L.2} }
;
\end{tikzpicture}


Looking like this:

It would be nice if they were of different color and the connecting line a gradient matching those colors.

-

Section 39.4.3 of the Tikz manual helped me to get a clean solution in which two root nodes can be directly connected using a circle connection bar path:

\documentclass[landscape]{article}
\usepackage{tikz}
\usetikzlibrary{mindmap}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[small mindmap, outer sep=0pt, text=black]

\begin{scope}[concept color=brown!30]
\node (right) at (2,0) [concept] {Right}
[clockwise from=70]
child { node[concept] {R.1} }
child { node[concept] {R.2} }
;
\end{scope}

\begin{scope}[concept color=green!40!black!30]
\node (left) at (-2,0) [concept] {Left}
[counterclockwise from=210]
child { node[concept] {L.1}  }
child { node[concept] {L.2} }
;
\end{scope}

\path (left) to[circle connection bar switch color=from (green!40!black!30) to (brown!30)] (right) ;

\end{tikzpicture}
\end{document}


Resulting in:

The scopes look somewhat tricky but I needed those to get the fill colors right.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.7846190333366394, "perplexity": 15962.936754686305}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-35/segments/1440645330174.85/warc/CC-MAIN-20150827031530-00214-ip-10-171-96-226.ec2.internal.warc.gz"}