Menu

#506 Node and circle connection bar colors are different

v1.0 (example)
closed-fixed
nobody
None
5
2019-12-01
2019-01-21
No

The node command and the circle connection bar option interpret the cyan-color from xcolor differently. The circle connection bar shows it more as I am used to. The node color is more what I would like to have.

My work-around was to overlay the connections with paths that had black mixed into the circle connection bar color.

Thank a lot for the wonderful mindmap functionality and all its diverse options!

\documentclass{article}
\usepackage[paperwidth=25cm,paperheight=23cm,left=1cm,top=1cm]{geometry}
\usepackage{verbatim}
\usepackage{xcolor}

\begin{comment}
%
\end{comment}

\usepackage{tikz}
\usetikzlibrary{mindmap, backgrounds, shadows}

\pagestyle{empty}   % Removes the page number in the footer

\begin{document}    
\begin{tikzpicture} [mindmap, grow cyclic, text=white, 
  background rectangle/.style={draw=yellow!50, fill=yellow!20, 
  rounded corners=1ex}, 
  show background rectangle, 
  every node/.style={concept, circular drop shadow, execute at begin node=\hskip0pt},
  root concept/.append style={concept color=black, fill=white, line width=1ex, text=black, font=\bfseries\large\scshape}, 
  level 1 concept/.append style={level distance=4.5cm, sibling angle=120, font=\bfseries\scshape}, 
  level 2 concept/.append style={level distance=3cm, sibling angle=30, font=\bfseries\scriptsize},
every annotation/.style={fill=white, font=\footnotesize}
  ]

\begin{scope}[mindmap, text=white]

   % Origin 
    \node[root concept] (orig) {Origin} [clockwise from=150]

    % Level 1-1
    child [grow=165, concept color=orange, level distance=160] {
    node [concept] (11){level 1-1} [clockwise from=250] 
        child   [grow=100, level distance=140, concept color=orange] 
            {node [concept] (21a) {level 2-1a}}
        child [grow=130, level distance=120, concept color=orange] 
            {node [concept] (21b) {level 2-1b}}
        child [grow=160, concept color=orange!50] 
            {node [concept] (21c) {level 2-1c}}
    }       
    % Level 1-2
    child [grow=70, concept color=blue!50, text=black] {
    node [concept] (12) {level 1-2} [clockwise from=-5] 
        child [grow=20, concept color=blue!25] 
            {node [concept] (22a) {level 2-2a}} 
        child [grow=60, level distance=140] 
            {node [concept] (22b) {level 2-2b}} 
        child [grow=100, level distance=110] 
            {node [concept] (22c) {level 2-2c}}
    }   
    % Level 1-3
    child [grow=110, concept color=cyan, text=black] {
    node [concept] (13) {level 1-3} [clockwise from=-5] 
        child [grow=90, concept color=cyan!50] 
            {node [concept] (23a) {level 2-3a}}
        child [grow=125, level distance=140] 
            {node [concept] (23b) {level 2-3b}}
    }
    ;

% My work-around
%   \path (13) to [circle connection bar switch color=from (cyan!70!black) to (cyan!70!black!50)] (23a);
%   \path (orig) to [circle connection bar switch color=from (black) to (cyan!70!black)] (13);

\end{scope}

\end{tikzpicture}
\end{document}
1 Attachments

Discussion

  • Stefan Pinnow

    Stefan Pinnow - 2019-01-21

    Here a more minimal MWE ...

    \documentclass[border=5pt]{standalone}
    \usepackage{tikz}
        \usetikzlibrary{mindmap}
    \begin{document}
    \begin{tikzpicture}[
        mindmap,
    ]
    
        % Origin
        \node [root concept] (orig) {Origin} [clockwise from=150]
    
    %        % Level 1-1
    %        child [grow=165, concept color=orange, level distance=160] {
    %            node [concept] (11){level 1-1} [clockwise from=250]
    %                child [grow=100, level distance=140, concept color=orange]
    %                    {node [concept] (21a) {level 2-1a}}
    %                child [grow=130, level distance=120, concept color=orange]
    %                    {node [concept] (21b) {level 2-1b}}
    %                child [grow=160, concept color=orange!50]
    %                    {node [concept] (21c) {level 2-1c}}
    %        }
    %        % Level 1-2
    %        child [grow=70, concept color=blue!50, text=black] {
    %            node [concept] (12) {level 1-2} [clockwise from=-5]
    %                child [grow=20, concept color=blue!25]
    %                    {node [concept] (22a) {level 2-2a}}
    %                child [grow=60, level distance=140]
    %                    {node [concept] (22b) {level 2-2b}}
    %                child [grow=100, level distance=110]
    %                    {node [concept] (22c) {level 2-2c}}
    %        }
            % Level 1-3
            child [
                grow=110,
                concept color=cyan,
            ] {
                node [concept] (13) {level 1-3} [clockwise from=-5]
                    child [grow=90, concept color=cyan!50]
                        {node [concept] (23a) {level 2-3a}}
                    child [grow=125, level distance=140]
                        {node [concept] (23b) {level 2-3b}}
            };
    
    %    % My work-around
    %    \path (13) to [circle connection bar switch color=from (cyan!70!black) to (cyan!70!black!50)] (23a);
    %    \path (orig) to [circle connection bar switch color=from (black) to (cyan!70!black)] (13);
    \end{tikzpicture}
    \end{document}
    
     
  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01
    • status: open --> closed-fixed
     
  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01