1

Following the Tikz/PGF document, I am creating a mind map with 3 child nodes as can be seen in the MWE below. I want to remove the white strip in the connections between the node and the child nodes. There is a brief mention of the problem in the documentation, so I changed the decorations accordingly. However the problem still persists. Any advice?

MWE

\documentclass[tikz]{standalone}
\usepackage{pgfplots} 
\usetikzlibrary{arrows,shapes,backgrounds,fit,decorations.pathreplacing,chains,snakes,positioning,angles,quotes}  
\usetikzlibrary{mindmap} 
\usepackage{xcolor}

\pgfplotsset{compat=newest}

\begin{document}
\tikzset{level 1 concept/.append style={level distance = 22mm}}
\tikzset{every node/.append style={scale=0.5}}

 \tikz[mindmap,concept color=blue!60,decoration={start radius=1cm,
                   end radius=.5cm,amplitude=2mm,angle=20}]
  \node [concept] {Main}
child[concept color=red!60,grow=240] {node[concept] {Child1}}
child[concept color=green!60,grow=120] {node[concept] {Child2}}
child[concept color=orange!60,grow=0]  {node[concept] {Child3}};
\end{document}
8
  • 2
    maybe tex.stackexchange.com/a/447318/36296 could help Commented Aug 30, 2018 at 12:03
  • 2
    Which viewer are you using? I confirm the gaps with preview but there are none when viewed with acroread. IMO this is a so-called viewer issue. You could redraw the connection as done in the link provided by @samcarter but I don't think it is necessary. Just using acroread to print this out should work, I think.
    – user121799
    Commented Aug 30, 2018 at 14:06
  • @marmot, I'm using Acrobat reader. The issue can be seen when zooming into the image. I'll follow the link to see how to adapt it.
    – Sid
    Commented Aug 30, 2018 at 14:47
  • I want to add that the issue arises since I tried to reduce the distance between the node and the child.
    – Sid
    Commented Aug 30, 2018 at 14:48
  • @Sid Please do not follow the link, this will be at best a workaround. In that question the OP placed the color at the wrong position. You are doing it correctly. I guess on the long run one may have to really try to understand how the connections are drawn in detail and try to fix them, something that I avoided to do so far. What precisely do you mean by I tried to reduce the distance between the node and the child?
    – user121799
    Commented Aug 30, 2018 at 15:01

0

You must log in to answer this question.

Browse other questions tagged .