Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to create this Venn diagram in LaTeX (possibly with TikZ):

enter image description here

Could you point me in the right direction? I've seen lots of Venn diagram examples using TikZ but none with concentric circles.

share|improve this question
4  
I can't see why concentric circles would make any difference. If any, it makes the drawing simpler. –  JLDiaz Mar 9 '13 at 22:48
1  
add comment

2 Answers

up vote 2 down vote accepted

enter image description here

\documentclass[tikz,border=12pt]{standalone}
\begin{document}
\begin{tikzpicture}
    \path 
        (0,0) rectangle (8,6) [draw]
        (0.5,5.5) node {$\emptyset$}
        (2.5,2) coordinate (A) node[below] {3.4} ellipse (2 and 1.5) [draw]
        coordinate (temp) at (2.5,2)    ellipse (0.6 and 0.6) [draw]
        (temp) +(0.5,-0.75) coordinate (B) node[below left] {5.1} -- (5,3.5) -- (5.5,3.5) node[right,text width=1.5]{Environment\\contact}
        (A) -- (4.5,4.5) -- (5,4.5) node[right]{Patient contact} ;
\end{tikzpicture}
\end{document}
share|improve this answer
    
My coding style is a bit cryptic, isn't it? –  I am who I say I am Mar 9 '13 at 23:30
    
Thank you! that looks spot on!Might just tweak the circle sizes a little. –  HCAI Mar 10 '13 at 14:24
add comment

Something like this?

\documentclass{article}
\usepackage{tikz}
\begin{document}

\def\firstcircle{(0,0) circle (3cm)}
\def\secondcircle{(0,0) circle (1cm)}
\colorlet{circle edge}{black!100}
\colorlet{circle area}{black!0}
\tikzset{filled/.style={fill=circle area, draw=circle edge, thick}, outline/.style={draw=circle edge, thick}}

\setlength{\parskip}{5mm}
\begin{tikzpicture}
    \draw[outline] \firstcircle node {3.4};
    \draw (0,0.25) -- ++(5,2.5) node [fill=white] {Patient Contact};
    \draw[outline] \secondcircle node {};
    \draw (0,-1.75) -- ++(5,2.5) node [fill=white] {Environment Contact};
    \node at (0,-2) (nodeA) {5.1};
\end{tikzpicture}

\end{document}

Output:

enter image description here

share|improve this answer
    
Looks nice! I was looking for a replica of the pic above if possible. Are there many different ways of achieving the same result? –  HCAI Mar 10 '13 at 16:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.