沿 x 轴和 y 轴绘制人物

沿 x 轴和 y 轴绘制人物

我需要画出这张图片上的内容:

在此处输入图片描述

我想添加tikzpeople一些您在原始图片中看到的简单图画。

\documentclass[tikz,border=2mm]{standalone} 
\usetikzlibrary{positioning}
\usepackage{tikzpeople}

\begin{document}
\begin{tikzpicture}[every node/.style={minimum width=1.5cm}]
\node[alice,label=Alice] (alice) {};
\node[bob,label=Bob, right=of alice] (bob) {};
\node[businessman, label=business man, below=of alice] (bm) {};
\node[priest,label=priest, right=of bm] (priest) {};
\end{tikzpicture}
\end{document}

梅威瑟:

\documentclass[tikz,border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[help lines, color=gray!30, dashed] (-4.9,-4.9) grid (4.9,4.9);
\draw[->,ultra thick] (-5,0)--(5,0) node[right]{$x$};
\draw[->,ultra thick] (0,-5)--(0,5) node[above]{$y$};

\end{tikzpicture}
\end{document}

答案1

您可以使用一个简单的pic

\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[pics/person/.style={code={
 \draw (-0.5,-1) -- (0,-0.5) -- (0.5,-1) (0,-0.5) -- (0,0.25) (0,0.5)
 circle[radius=0.25] (-0.5,0) -- (0.5,0);
 \node[anchor=north] at (0,-1){#1};}},nodes={align=center,font=\sffamily},
 box/.style={draw,thick}]
 \draw[stealth-stealth,thick] (-6,0) node[left]{geared\\ towards women}-- 
 (6,0)node[right]{geared\\ towards men};
 \draw[stealth-stealth,thick] (0,-6) node[below]{funny}
 -- (0,6)node[above]{serious};
 \path (-2,-1) pic[scale=0.6]{person=Jane} (-1,2) pic[scale=0.6]{person=Jo\~ao} 
 (2.5,-3.5) pic[scale=0.6]{person=John} (1,2) pic[scale=0.6]{person=Maria}
 (-0.1,0.2) node[above left,box]{Harry Potter}
 (4,1) node[above,box]{Star Wars} (4,4) node[above,box]{The Shining}
 (2,-1.5) node[above,box]{The Avengers};
\end{tikzpicture}
\end{document}

在此处输入图片描述

答案2

作为起点:

\documentclass[tikz,border=2mm]{standalone}
\usepackage{tikzpeople}

\begin{document}
\begin{tikzpicture}[
every node/.append style={align=center},
box/.style={draw, thick, inner sep=2pt}
                    ]
\draw[help lines, color=gray!30, dashed] (-4.9,-4.9) grid (4.9,4.9);
\draw[<->,ultra thick] (-5,0) node[left]  {Geared\\ towards woman}
                    -- ( 5,0) node[right] {Geared\\ towards man};
\draw[<->,ultra thick] (0,-5) node[below] {Funny}
                    -- (0, 5) node[above] {Serious};
\node[dave,label=below:Dave]    at (3,-2) {};
\node[bob,label=below:Bob]      at (2,3)  {};
\node[alice,label=below:Alice]  at (-1,2)  {};
\end{tikzpicture}
\end{document}

在此处输入图片描述

如果您更喜欢抽象的人物画(如问题中的图片所示),那么您可以将其画成小图\pic

相关内容