Created
July 16, 2022 23:29
-
-
Save abikoushi/9020346c7c384600fd2491d011f4606b to your computer and use it in GitHub Desktop.
An example of TikZ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[dvipdfmx, border=2.5cm]{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{arrows.meta, positioning} | |
\begin{document} | |
\begin{tikzpicture} | |
\node[rectangle](t1){$t=1$}; | |
\node[rectangle, below = of t1](t2) {$t=2$}; | |
\node[rectangle, below = of t2](t3) {$t=3$}; | |
\node[rectangle, draw=black, right = of t1](j1) {玉森裕太}; | |
\node[rectangle, draw=black, right = of t2](j2) {目黒 蓮}; | |
\node[rectangle, draw=black, right = of t3](j3) {北山宏光}; | |
\node[rectangle, draw=black, right = of j1] (U1) {うりさん}; | |
\node[rectangle, draw=black, right = of j2] (U2) {うりさん}; | |
\node[rectangle, draw=black, right = of j3] (U3) {うりさん}; | |
\node[rectangle, draw=black, right = of U1] (A1) {あびこ(牛)}; | |
\node[rectangle, draw=black, right = of U2] (A2) {うり(二代目)}; | |
\node[rectangle, draw=black, right = of A2] (A22) {あびこ(牛)}; | |
\node[rectangle, draw=black, right = of U3] (A3) {阿部2}; | |
\node[rectangle, draw=black, below right = of U3] (O) {その他}; | |
\path[->](O)edge(U3) node [rectangle, fill=black, text=white, xshift=-7ex, yshift=5ex] {好き}; | |
\path[->](A1)edge(A22); | |
\path[-, thick](A2)edge(A22) node [rectangle, right =20 pt, fill=pink, yshift=-3ex] {結婚(嘘)}; | |
\path[->](A2)edge(A3); | |
\path[->](U1)edge(U2); | |
\path[->](U2)edge(U3); | |
\path[->](U1)edge(j1); | |
\path[->](U2)edge(j2); | |
\path[->](U3)edge(j3); | |
\path[->](t1)edge(t2); | |
\path[->](t2)edge(t3); | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment