0

I have recently presented statistics of breast cancer and made a powerpoint image:

enter image description here

Please notice that the icons are not exactly the same (I was lucky enough to find similar icons with different colours). I was wondering if I could draw this with latex. I am writing my M.Sc. thesis.

percusse
  • 157,807
Johnathan
  • 1,233

3 Answers3

14

Your figures look like the one from the symbola font:

% arara: lualatex

\documentclass{article} 
\usepackage{fontspec}
\usepackage{xcolor}
\newcommand*{\woman}[1][gray]{{%
\fontspec{symbola} % symbola.ttf
\textcolor{#1}{%
\symbol{"1F6BA}}}}
% if you are too lazy to write many repeated commands...:
\usepackage{expl3}
\ExplSyntaxOn
\cs_new_eq:NN \Repeat \prg_replicate:nn
\ExplSyntaxOff

\begin{document} 
\Huge
\woman\woman[magenta]\Repeat{8}{\woman}

\Repeat{3}{\woman}\woman[magenta]\Repeat{6}{\woman}

\Repeat{6}{\woman}\woman[black]\Repeat{3}{\woman}
\end{document}

enter image description here

LaRiFaRi
  • 43,807
12

With a pic inspired in this one by percusse

\documentclass[border=3mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows,shapes.geometric}
\begin{document}

\tikzset{
    woman/.pic={    
\node[transform shape, circle,fill,minimum size=4.5mm] (head) at (0,0) {};
\node[transform shape, draw, fill, trapezium, trapezium angle=55, trapezium stretches=true, rounded corners=2pt, minimum width=0.7cm, minimum height=1cm,
,below = 1pt of head, inner sep=1pt] (body) {};
\draw[transform shape, line width=1.5mm,round cap-round cap] ([shift={(-1mm,1mm)}]body.south) --++(-90:6mm);
\draw[line width=1.5mm,round cap-round cap] ([shift={(1mm,1mm)}]body.south) --++(-90:6mm);
\draw[line width=1.25mm,round cap-round cap, rounded corners] ([yshift=-.5\pgflinewidth]body.north) --++(2.5mm,0)--++(-75:6mm);
\draw[line width=1.25mm,round cap-round cap, rounded corners] ([yshift=-.5\pgflinewidth]body.north) --++(-2.5mm,0)--++(255:6mm);
}}

\begin{tikzpicture}
\foreach \i [count=\ni from 0] in {1,...,10}{
\foreach \j [count=\nj from 0] in {1,...,3}{
\pic[black!30] at (\ni,-2.5*\nj) {woman};
}}

\pic[pink,scale=1.02] at (1,0) {woman};
\pic[pink,scale=1.02] at (3,-2.5) {woman};
\pic[scale=1.02] at (6,-5) {woman};


\end{tikzpicture}
\end{document}

enter image description here

Ignasi
  • 136,588
10

Not exactly the same symbol but it is a starting solution.

\documentclass[11pt,a4paper]{standalone}
\usepackage{marvosym}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[xscale=.25,yscale=.5]
\foreach \i in {1,...,10}{
\foreach \j in {1,...,3}{
\node at (\i,\j) {\textcolor{black!30}{\Ladiesroom}};
}}
\node at (2,3) {\textcolor{red}{\Ladiesroom}};
\node at (4,2) {\textcolor{red}{\Ladiesroom}};
\node at (7,1) {\textcolor{black}{\Ladiesroom}};
\end{tikzpicture}
\end{document}

enter image description here

ps: if this female icon is enough you can use the FontAwesome font.

Sigur
  • 37,330