In Metapost I was able to make a graph where there's no gap between the edges and vertices:

enter image description here

But in Tikz there is a gap between the two:
enter image description here

Making a black "border" around the vertex did not help. No matter what I try there is a white outline, does anyone know how to remove the white outline completely?

  • 7
    if you will wiling to show, your code drawing vertex, than we will be able to help you. i suspect that you have or white border around it or have outer sep greater than zero ...
    – Zarko
    Nov 25, 2018 at 18:47
  • 6
    Dear close voters, please give the OP a bit time to reply to comments and improve the question. Nov 25, 2018 at 19:38
  • 1
    Hello user1271772 Glad to hear! I will only answer if @Zarko, who was first, does not want to answer.
    – user121799
    Nov 25, 2018 at 20:24
  • 1
    Let's just wait and see what @Zarko says. Most importantly, your problem is solved.
    – user121799
    Nov 25, 2018 at 20:31
  • 2
    @user1271772, well, this site is not a service "we-will-do-your-task-instead-you`.
    – Zarko
    Nov 25, 2018 at 21:01

1 Answer 1


To put these comments to an end... full credits go to Zarko, who already pointed out all the important facts.

The question is, as far as I understand it, why there can be a white boundary around shapes. The two most common reasons are

  1. there is an outer sep greater than 0 and
  2. the shape has a boundary path.

This is illustrated by the MWE

\node[fill,circle,inner sep=3pt,outer sep=0pt] (A){}; 
\node[fill,circle,inner sep=3pt,outer sep=1pt] (B) at (2,0) {}; 
\node[fill,circle,inner sep=3pt,draw=white] (C) at (4,0) {}; 
\foreach \Y in {A,B,C} 
{\foreach \X in {-0.5,-0.2,0.2,0.5} 
 {\draw[thick] ([xshift=\X*1cm,yshift=-5mm]\Y.south) -- (\Y);}} 

enter image description here

in which B comes with a nontrivial outer sep and C has a white boundary path. Unlike A, both shapes seem to have a white "halo".

Not the answer you're looking for? Browse other questions tagged .