1

Hey guys I am working in an infographic and I am trying to do it in LaTeX. In it I want to use the shape of a water droplet to show the water consumption. the final product should be something like this:

enter image description here

Then I want to draw the water droplet shape to be able to use it like that in a table.

Any ideas?

3
  • 1
    A half circle and a tangential 'cone' above it?
    – user31729
    Commented Nov 6, 2017 at 21:02
  • Actually I meant a 'semi-circle' (half circle is German style of English ;-))
    – user31729
    Commented Nov 7, 2017 at 8:23
  • There is too others drops at this link: tex.stackexchange.com/questions/195639/…
    – Sebastiano
    Commented Nov 7, 2017 at 8:33

1 Answer 1

5

This uses the tangent coordinate system and is actually a modified example from the pgfmanual, see on top of page 137 of current pgfmanual.

The \coordinate (a) statement defines the top of the 'cone' and the tangent system calculates the tangent lines and intersection of the tangent lines from (a) to the circle.

\documentclass{article}


\usepackage{tikz}
\usetikzlibrary{calc}

\newcommand{\droplet}{%
  \begin{tikzpicture}
    \coordinate (a) at (0,1.5);% Change 1.5 to change the shape of the droplet
    \node [circle,draw,fill=blue,blue] (c) at (0,0) [minimum size=40pt] {$c$};
    \draw[blue,fill] (a) -- (tangent cs:node=c,point={(a)},solution=1) --
    (c.center) -- (tangent cs:node=c,point={(a)},solution=2) -- cycle;
    \end{tikzpicture}%
}
\begin{document}

\droplet\quad\droplet

\end{document}

enter image description here

2
  • This answer is exactly what I was looking for, thanks @ChristianHupfer Commented Nov 7, 2017 at 21:47
  • @CamiloRamirez: You're welcome. Happy TeXing!
    – user31729
    Commented Nov 8, 2017 at 6:35

You must log in to answer this question.

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