JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{shapes.geometric,decorations.markings}

\begin{document}
\begin{tikzpicture}[> = latex]
\matrix[column sep = 0.5 cm, row sep = 0.5 cm]{
    % 2-vertex subgraph with Eulerian circuit
    \draw [->] (-1.25, 0) node [left] {$B$} -- (1.25, 0) node [right] {$B'$};
    \draw [fill = white] (-0.5, 0) circle (0.15);
    \draw [fill = white] (0.5, 0) circle (0.15);
    \draw [->] (-0.5, 0.75) node [above] {$A$} -- (-0.5, -0.75) node [below] {$C$};
    \draw [->] (0.5, 0.75) node [above] {$A'$} -- (0.5, -0.75) node [below] {$C'$};
&
    \draw [->, font = \footnotesize] (0, 0) -- node [above] {2-3 move} (1, 0);
&
    % 3-vertex subgraph
    \draw [->] (-0.5, 0) node [left] {$B$} -- (1.25, 0) node [right] {$B'$};
    \draw [fill = white] (0.75, 0) circle (0.15);
    \draw [rounded corners] (-0.5, 0.75) node [left] {$A$} -- (0.75, 0.75) -- (0.75, -0.75) -- (-0.5, -0.75) node [left] {$C$};
    \draw [fill = white] (0, 0.75) circle (0.15);
    \draw [fill = white] (0, -0.75) circle (0.15);
    \draw (0, 1.25) node [above] {$A'$} -- (0, 0.35);
    \draw [draw = white, double = black, double distance between line centers = 3 pt, line width = 2.6 pt] (0, 0.35) -- (0, -0.35);
    \draw [<-] (0, -1.25) node [below] {$C'$} -- (0, -0.35);
&
    % 3-vertex subgraph with internal connections
    \draw [->] (-0.5, 0) node [left] {$B$} -- (1.25, 0) node [right] {$B'$};
    \draw [fill = white] (0.75, 0) circle (0.15);
    \draw [rounded corners] (-0.5, 0.75) node [left] {$A$} -- (0.75, 0.75) -- (0.75, -0.75) -- (-0.5, -0.75) node [left] {$C$};
    \draw [fill = white] (0, 0.75) circle (0.15);
    \draw [fill = white] (0, -0.75) circle (0.15);
    \draw (0, 1.25) node [above] {$A'$} -- (0, 0.35);
    \draw [draw = white, double = black, double distance between line centers = 3 pt, line width = 2.6 pt] (0, 0.35) -- (0, -0.35);
    \draw [<-] (0, -1.25) node [below] {$C'$} -- (0, -0.35);
    % Internal connections
    \begin{scope}[->, dotted, rounded corners]
        \draw (0.15, 1.25) -- (0.15, 0.9) -- (0.75, 0.9);
        \draw (-0.5, 0.6) -- (-0.15, 0.6) -- (-0.15, 0.15);
        \draw (-0.15, -0.15) -- (-0.15, -0.6) -- (-0.5, -0.6);
        \draw (0.75, -0.9) -- (0.15, -0.9) -- (0.15, -1.25);
    \end{scope}
\\
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}[scale=1.4]
\draw[fill=black] (0,0) circle (1.5pt) node[below] {$a$};
\draw[fill=black] (1,1) circle (1.5pt) node[right] {$M$};
\draw[fill=black] (-6,-4) circle (1.5pt) node[left] {$m$};
\draw (1,1) rectangle (-6,-4);
\foreach \t in {0.25,0.5,0.8,1}{
\draw[dash pattern= on 2pt off 2pt] (1*\t,1*\t) rectangle (-6*\t,-4*\t);}
\draw[|-|,yshift=-4pt] (-3,-2)--(0.5,-2);
\node[below,yshift=-6pt] at (-1.25,-2) {\small$(M_1-m_1)t_1$};
\draw[|-|,yshift=-4pt] (-4.8,-3.2)--(0.8,-3.2);
\node[below,yshift=-6pt] at (-2,-3.2) {\small$(M_1-m_1)t_2$};
\draw[|-|,xshift=-4pt] (-3,-2)--(-3,0.5);
\node[below,rotate=-90,yshift=-6pt] at (-3,-0.75) {\small$(M_2-m_2)t_1$};
\draw[|-|,xshift=-4pt] (-4.8,-3.2)--(-4.8,0.8);
\node[below,rotate=-90,yshift=-6pt] at (-4.8,-1.2) {\small$(M_2-m_2)t_2$};
\draw[|-|,yshift=-4pt] (0.5,-4)--(0.8,-4);
\node[below,yshift=-6pt] at (0.65,-4) {\small$(M_1-a_1)(t_2-t_1)$};
\draw[|-|,yshift=-4pt] (-4.8,-4)--(-3,-4);
\node[below,yshift=-6pt] at (-3.9,-4) {\small$(m_1-a_1)(t_2-t_1)$};
\draw[|-|,xshift=-4pt] (-6,0.5)--(-6,0.8);
\node[left,xshift=-6pt] at (-6,0.65) {\small$(M_2-a_2)(t_2-t_1)$};
\draw[|-|,xshift=-4pt] (-6,-3.2)--(-6,-2);
\node[left,xshift=-6pt] at (-6,-2.6) {\small$(m_2-a_2)(t_2-t_1)$};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage[compat=1.1.0]{tikz-feynman}
\usetikzlibrary{shapes.misc, arrows, snakes, backgrounds}
\usepackage[utf8]{inputenc}

\begin{document}
\begin{tikzpicture}
    \draw[black, ultra thick] (0,-2) -- (0,2);
    \draw[snake=coil, segment aspect=0, thick] (0,0) -- (2,0);
    \filldraw[black] (0,0) circle (3pt);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage[compat=1.1.0]{tikz-feynman}
\usetikzlibrary[shapes.misc]
\usetikzlibrary{arrows,snakes,backgrounds}
\usepackage[utf8]{inputenc}

\begin{document}

\begin{tikzpicture}
\draw[black, ultra thick] (0,-2) -- (0,2);
\draw[black, thick] (1,0) -- (2,0);
\draw[dashed, thick] (0,1) -- (1,0);
\draw[dashed, thick] (0,-1) -- (1,0);
\draw[black, ultra thick] (2,-2) -- (2,2);
\node at (1,-2.5) {(g)};
\filldraw[black] (1,0) circle (3pt);
\filldraw[black] (0,1) circle (3pt);
\filldraw[black] (0,-1) circle (3pt);
\filldraw[black] (2,0) circle (3pt);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}

\tikzset{
  svertex/.style = {
    circle,
    draw=black,
    thick,
    fill=lightgray,
    minimum size=8pt,
    inner sep=1pt},
  sdot/.style = {
    circle,
    draw=none,
    fill=black,
    minimum size=2.5pt,
    inner sep=0pt},
  swavy/.style = {
    thick,
    decorate,
    decoration={snake,amplitude=1.2pt,segment length=3pt}},
}

\begin{document}
\begin{tikzpicture}
\node[svertex] (R) at (20pt,0pt) {};
\node[sdot] (D) at (0pt,0pt) {};
\draw[thick] (R) -- ++(45:15pt) node[right]{\scriptsize$3$};
\draw[thick] (R) -- ++(-45:15pt) node[right]{\scriptsize$4$};
\draw[swavy] (D) to (R);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[
    roundnode/.style={circle, draw=black, minimum size=6mm, inner sep=0}
]
    % NODES
    \node[roundnode] (x) at (-.5, 0) {$X$};
    \node[roundnode, fill=blue!15] (x_tilde) at (0, -1) {$\widetilde{X}$};
    \node[roundnode] (y) at (1,-2) {$Y$};
    \node[roundnode] (w) at (-1, -2) {$W$};
    \node[roundnode, fill=blue!15] (z) at (.5, 0) {$Z$};

    % ARROWS
    \draw[-latex, color=gray] (x) -- (x_tilde);
    \draw[-latex, color=gray] (x) -- (z); 
    \draw[-latex, color=gray] (z) -- (x_tilde);
    \draw[-latex] (x_tilde) -- (w);
    \draw[-latex] (z) to [looseness=.9, out=315, in=90] (y);
\end{tikzpicture}

\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,bm}

\begin{document}

\begin{tikzpicture}[scale=0.6]

\draw[->] (-1.5,5.5) -- (-0.5,5.5);
\node at (-1.5,6){$D_{M_{1:m}}$};

\draw[->] (3,5.5) -- (6,5.5);
\draw[->] (4.5,6.5) -- (6,6.5);

\draw [fill=white!93!blue,rounded corners=2pt](-0.5,4) rectangle (3.5,7);
\node at (1.5,5.5){$P_{U|D_{M_{1:m}}}$};
\node at (1.5,4.5){Base-Learner};

\node at (4.7,6){$U$};
\node at (5.2,7){$D_{M_{1:m}}$};

\draw [fill=white!93!blue,rounded corners=2pt](6,4) rectangle (10,7);
\node at (8,5.5){$P_{W_{1:m}|U,D_{M_{1:m}}}$};
\node at (8,4.5){Meta-Learner};
\node at (10.8,6){$W_{1:m}$};
\draw[->] (10,5.5) -- (11.5,5.5);

\end{tikzpicture}

\end{document}
\documentclass[tikz]{standalone}
\usepackage{amsmath, amssymb, amsfonts}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{calc}
\usetikzlibrary{shapes.misc}

\begin{document}

\begin{tikzpicture} [
   node distance = 14mm, 
   font=\scriptsize, 
   functionbox/.style={rectangle, thick, draw=black, minimum height = 7mm, minimum width = 7mm, text centered}, 
]
\node (input) [functionbox, text width=10mm]{Image dataset};
\node (fovea) [functionbox, right=of input, text width=12mm]{Foveal Conversion};
\node (yolo)   [functionbox, right=of fovea, text width=12mm]{Object Detector};
\node (obs)    [functionbox, right=of yolo, text width=12mm]{Foveal Observation Model};
\node (fusion) [functionbox, right=of obs, text width=10mm]{Data Fusion};
\node (active) [functionbox, right=of fusion, text width=12mm]{Active Perception};
\node (gaze)   [functionbox, right=of active, text width=8mm]{Gaze Shift};
\path (input) edge[->] node [above, font=\scriptsize, text width=10mm] {selected image} (fovea);
\path (fovea) edge[->] node [above, font=\scriptsize, text width=10mm] {foveated image} (yolo);
\path (yolo)  edge[->] node [above, font=\scriptsize, text width=10mm] {detected objects} (obs);
\path (obs)   edge[->] node [above, font=\scriptsize, text width=10mm] {calibrated scores} (fusion);
\path (fusion) edge[->] node [above, font=\scriptsize, text width=10mm] {updated map} (active);
\path (active) edge[->] node [above, font=\scriptsize, text width=12mm] {next best gaze point} (gaze);
\draw [->] (gaze.north) -- ++ (0.0,0.6) node [above, font=\scriptsize, text width=10mm] {current viewpoint} -| (obs.north);
\draw [->] (gaze.north) -- ++ (0.0,0.6) -| (fovea.north);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.markings}

\begin{document}
\begin{tikzpicture}[x=1.5cm,y=1.5cm,decoration={markings, mark=at position 0.5 with {\arrow{Latex[length=3pt]}}}]
    \filldraw[fill=gray!20] 
        (1,0.5) node[below]{\footnotesize 1} -- 
        (2.5,0.5) node[below]{\footnotesize 2} -- 
        (2.5,2.5) node[above]{\footnotesize 3} -- 
        (0.5,2.5) node[above]{\footnotesize 4} -- 
        (0.5,1) node[left]{\footnotesize 5} -- 
        (1,1) node[below left]{\footnotesize 6} -- 
        (1,1.5) node[above]{\footnotesize 7} -- 
        (1.5,1.5) node[above]{\footnotesize 8} -- 
        (1.5,1) node[right]{\footnotesize 9} -- 
        (1,1) -- (1,0.5);
    
    \draw[postaction={decorate}] (1,0.5) -- (2.5,0.5);
    \draw[postaction={decorate}] (2.5,0.5) -- (2.5,2.5);
    \draw[postaction={decorate}] (2.5,2.5) -- (0.5,2.5);
    \draw[postaction={decorate}] (0.5,2.5) -- (0.5,1);
    \draw[postaction={decorate}] (0.5,1) -- (1,1);
    \draw[postaction={decorate}] (1,1) -- (1,1.5);
    \draw[postaction={decorate}] (1,1.5) -- (1.5,1.5);
    \draw[postaction={decorate}] (1.5,1.5) -- (1.5,1);
    \draw[postaction={decorate}] (1.5,1) -- (1,1);
    \draw[postaction={decorate}] (1,1) -- (1,0.5);
    
    \draw[->,red,semithick] (2,2) arc[start angle=0, end angle=300, radius=0.2];
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}[>=Triangle,xscale=3.5,yscale=3.5]
\draw[->] (0,0) -- (1.2,0) node[below] {$v_1$};
\draw[->] (0,0) -- (0,1.2) node[left] {$v_2$};
\draw[thick] (1,0) -- (1,1);
\draw[thick] (0,1) -- (1,1);
\node[below] at (0.6,0) {$r$};
\node[below] at (1,0) {$b$};
\node[left,below] at (0,0) {$a$};
\node[left] at (0,0.6) {$r$};
\node[left] at (0,1) {$b$};

\draw[thick] (0.6,0) -- (0.6,0.6);
\draw[thick] (0,0.6) -- (0.6,0.6);
\draw[thick] (0.6,0.6) -- (1,1);
\draw[thick] (0.6,0.6) -- (1,0.6);
\draw[thick] (0.6,0.6) -- (0.6,1);

\node at (0.3,0.3) {$a$};
\node at (0.3,0.8) {$\frac{r+a}{2}$};
\node at (0.8,0.3) {$\frac{r+a}{2}$};
\node at (0.85,0.7) {$v_2$};
\node at (0.7,0.85) {$v_1$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.4]
%% vertices
\draw[fill=black] (0,4) circle (3pt);

\draw[fill=black] (-4,0.5) circle (3pt);
\draw[fill=black] (-4,-0.5) circle (3pt);
\draw[fill=black] (-4,-1.5) circle (3pt);
\draw[fill=black] (-4,-2.5) circle (3pt);
\draw[fill=black] (-4,-3.5) circle (3pt);

\draw[fill=black] (0,0.5) circle (3pt);
\draw[fill=black] (0,-0.5) circle (3pt);
\draw[fill=black] (0,-1.5) circle (3pt);
\draw[fill=black] (0,-2.5) circle (3pt);
\draw[fill=black] (0,-3.5) circle (3pt);

\draw[fill=black] (4,0.5) circle (3pt);
\draw[fill=black] (4,-0.5) circle (3pt);
\draw[fill=black] (4,-1.5) circle (3pt);
\draw[fill=black] (4,-2.5) circle (3pt);
\draw[fill=black] (4,-3.5) circle (3pt);

%% vertex labels
\node at (-0.8,4) {$r$};
\node at (-5,0.5) {$u_1$};
\node at (3,0.5) {$u_3$};
\node at (-0.8,0.5) {$u_2$};

%%% edges
\draw[thick] (0,4) -- (0,0.5);
\draw[thick] (0,4) -- (-4,0.5);
\draw[thick] (0,4) -- (4,0.5);

\draw[thick] (4,0.5) -- (4, -0.5) -- (4, -1.5) -- (4, -2.5) -- (4, -3.5);
\draw[thick] (0,0.5) -- (0, -0.5) -- (0, -1.5) -- (0, -2.5) -- (0, -3.5);
\draw[thick] (-4,0.5) -- (-4, -0.5) -- (-4, -1.5) -- (-4, -2.5) -- (-4, -3.5);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{arrows}

\begin{document}
\begin{tikzpicture}[scale=0.2,baseline=0pt]
	\draw[blue, thick] (0,-1) -- (0,0);
	\draw[blue, thick] (0,0) -- (4,4);
	\draw[blue, thick] (0,0) -- (-4,4);
	\draw[blue, thick] (2,2) -- (0,4);
	\draw[blue, thick] (3,3) -- (2,4);
	\draw[blue, thick] (-3,3) -- (-2,4);
	\filldraw[black] (0,0) circle (5pt);
	\filldraw[black] (2,2) circle (5pt);
	\filldraw[black] (3,3) circle (5pt);
	\filldraw[black] (-3,3) circle (5pt);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, decorations.pathreplacing, positioning}

\begin{document}

\begin{tikzpicture}[scale=1]

\node at (0,0) {$\odot$};

\draw[color=gray,domain=-130:-50] plot ({0.6*cos(\x)}, {0.5*sin(\x)});
\draw[color=gray,domain=-130:-50] plot ({0.6+0.6*cos(\x)}, {-1+0.5*sin(\x)});
\draw[color=gray,domain=-130:-50] plot ({1.2+0.6*cos(\x)}, {-2+0.5*sin(\x)});

\foreach \i in {-0.6, -0.2, 0.2, 0.6}{
\draw 
(0,0)--(\i,-1)
(0.6,-1)--(0.6+\i,-2)
(1.2,-2)--(1.2+\i,-3);
\fill (\i,-1) circle (0.5mm);
\fill (0.6+\i,-2) circle (0.5mm);
\fill (1.2+\i,-3) circle (0.5mm);
}

\node at (0.6,-3.5) {$D^{I\!I}(m_1,m_2,m_3)$};
\node[right] at ({0.6*cos(-50)}, {0.5*sin(-50)}) {$m_3$};
\node[right] at ({0.6+0.6*cos(-50)}, {-1+0.5*sin(-50)}) {$m_2$};
\node[right] at ({1.2+0.6*cos(-50)}, {-2+0.5*sin(-50)}) {$m_1$};

\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[-,>=stealth,shorten >=0.5pt,auto,node distance=1.2cm,thin,
    main node/.style={circle,draw,font=\sffamily\normalsize}]
    \node[main node][label=left:{$(0,0)$}] (1) {};
    \node[main node][label={$(1,0)$}] (2) [above right of=1] {};
    \node[main node][label=below:{$(0,1)$}] (3) [below right of=1] {};
    \node[main node][label=right:{$(1,1)$}] (4) [above right of=3] {};

    \path[every node/.style={font=\sffamily\small}]
    (1) edge (2)
        edge (3)
    (2) edge (4)
    (3) edge (4);
    \path[dotted]
    (2) edge (3)
    (1) edge (4);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}
\path[fill, lightgray] (1.5, 0) -- ($ (0.5, 0) + (135:0.5) $) -- (0.2, 0) -- ($ (0.5, 0) + (315:0.8) $) -- (0.5, 0) -- cycle;
\path[draw] (0, 0) -- ++(right:2) node[right] {$ X_1 $};
\path[draw] (0.5, 0) -- ++(135:1) node[left] {$ X_2 $} (0.5, 0) -- ++(315:1);
\path[fill] (0.5, 0) circle[radius=0.05];
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, arrows.meta, positioning}

\newcommand{\smooth}[1]{\tilde{#1}}

\begin{document}
\begin{tikzpicture}
\path[draw, semithick] (0, 0) to[bend left=30] coordinate[midway] (node1) (3, 0) to[bend left=30] coordinate[midway] (node2) (0, 0);
\path[fill] (0, 0) circle[radius=0.05] node[below] {$ t $} (3, 0) circle[radius=0.05] node[below] {$ h_1 $};
\path (node1) node[above] {$ \smooth L_1 $};
\path (node2) node[below] {$ \smooth L_2 $};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{arrows.meta, positioning, shapes.geometric}

\begin{document}

\begin{tikzpicture}[thick, every node/.style={font=\footnotesize\sffamily}]

\node[
    cylinder,
    shape border rotate=90,
    minimum width=1.2cm,
    aspect=0.25,
    draw, align=center
] (test_ds) {Test\\data};

\node[
    cylinder,
    shape border rotate=90,
    minimum width=1.2cm,
    minimum height=2cm,
    aspect=0.25,
    draw, align=center,
    below=0.6cm of test_ds
] (train_ds) {Train\\data};

\node[
    draw,
    minimum height=0.5cm,
    minimum width=3.6cm,
    rotate=90,
    right=0.7cm of train_ds.south east,
    anchor=north west
] (enc) {Encoder};

\node[
    draw,
    minimum height=0.5cm,
    minimum width=2.6cm,
    rotate=90,
    right=0.5cm of enc.south west,
    anchor=north west
] (train) {Training};

\node[
    rounded corners=1ex,
    fill=gray!10,
    minimum height=2.6cm,
    minimum width=2.5cm,
    right=0.5cm of train.south west,
    anchor=south west
] (model) {};

\node[below=0.05cm of model.north, anchor=north] (model_lbl) {Model};
\node[draw, below=0.05cm of model_lbl.south, anchor=north, minimum width=2.2cm] (m1) {$M_1$};
\node[draw, below=0.05cm of m1.south, anchor=north, minimum width=2.2cm] (m2) {$M_2$};
\node[below=-0.05cm of m2.south, anchor=east, rotate=90] (mdot) {$...$};
\node[draw, below=-0.05cm of mdot.west, anchor=north, minimum width=2.2cm] (mk) {$M_k$};

\node[
    draw,
    minimum height=0.5cm,
    minimum width=2.5cm,
    above=0.4cm of model.north west,
    anchor=south west
] (query) {Query vector};

\node[
    draw,
    minimum width=2.5cm,
    minimum height=0.5cm,
    rotate=90,
    right=0.5cm of model.south east,
    anchor=north west
] (sim) {Similarities};

\path
    (test_ds.east |- query.west) edge[-{Latex}, dashed] (query.west -| enc.north)
    (enc.south |- query.west) edge[-{Latex}, dashed] (query.west)
    (train_ds.east) edge[-{Latex}] (train_ds.east -| enc.north)
    (enc.south |- train_ds.east) edge[-{Latex}] (train_ds.east -| train.north)
    (train.south |- m1.west) edge[-{Latex}] (m1.west)
    (train.south |- m2.west) edge[-{Latex}] (m2.west)
    (train.south |- mk.west) edge[-{Latex}] (mk.west)
    (query.south) edge[-{Latex}, dashed] (model.north)
    (sim.north |- m1.east) edge[{Latex}-, dashed] (m1.east)
    (sim.north |- m2.east) edge[{Latex}-, dashed] (m2.east)
    (sim.north |- mk.east) edge[{Latex}-, dashed] (mk.east)
;

\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.6]
    \draw (0,0) circle (1.5);
    \draw[blue] (0,-1.5) to[out=120,in=-30] (-1.5,0);
    \draw[red] (0,0.5) -- (0,-1.5);
    \draw[fill] (0,0.5) circle (0.06)
                (0,-1.5) circle (0.06);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\draw (0,0) -- (2,1);
\node at (-0.2,0) {\footnotesize 0};
\node at (2.2,1) {\footnotesize 1};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}[node distance=2cm,cnode/.style={circle,draw,thick,minimum size=8mm},snode/.style={rectangle,draw,thick,minimum size=8mm}]
\node[cnode] (1) at (0,0) {$1$};
\node[snode] (2) at (0,-2) {$(m-2)m_G$};
\node[snode] (3) at (2,0) {$m_G$};
\draw[thick] (1) -- (2);
\draw[thick] (1) -- (3);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}[scale=0.6]
    \tikzstyle{every path}=[line width=1pt]
    \newdimen\ms
    \ms=0.1cm
    \tikzstyle{c1}=[color=black,fill,circle,inner sep={\ms/8},minimum size=2*\ms]

    \coordinate (a1) at (2,3);
    \coordinate (a3) at (2,1);
    \coordinate (a5) at (0,1);
    \coordinate (a6) at (2,-1);

    \draw [color=black] (a1) -- (a3);
    \draw [color=black] (a3) -- (a5);
    \draw [color=black] (a6) -- (a3);

    \draw (a1) coordinate[c1];
    \draw (a3) coordinate[c1,label=right:$u$];
    \draw (a5) coordinate[c1];
    \draw (a6) coordinate[c1];
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5]{standalone}
\usetikzlibrary{fpu}
\tikzset{fpu cs/.cd, x/.initial=0, y/.initial=0}

\tikzdeclarecoordinatesystem{fpu}{%
\tikzset{fpu cs/.cd,#1}%
  \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}%
  \pgfmathparse{\pgfkeysvalueof{/tikz/fpu cs/x}}%
  \let\tmpx=\pgfmathresult%
  \pgfmathparse{\pgfkeysvalueof{/tikz/fpu cs/y}}%
  \let\tmpy=\pgfmathresult%
  \pgfpoint{+\tmpx pt}{+\tmpy pt}%
}

\begin{document}
\begin{tikzpicture}
\draw (fpu cs:x=0, y={sqrt(pow(10in, 2) + pow(12in, 2))}) circle [radius=1in];
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}[font=\tiny]
\begin{axis}[
    width=6cm,
    height=6cm,
    scale only axis,
    xmin=1,
    xmax=20,
    ymin=0,
    ymax=2,
    title={Sample time series},
    legend style={draw=black,fill=white,legend cell align=left}
]
\addplot [color=blue,solid,forget plot]
  table[row sep=crcr]{1 1\\
2 1\\
3 1\\
4 1\\
5 1\\
6 1\\
7 1\\
8 1\\
9 1\\
10 2\\
11 1\\
12 1.5\\
13 0\\
14 1\\
15 1\\
16 1\\
17 1\\
18 1\\
19 1\\
20 1\\
};
\addplot [color=green,dashed]
  table[row sep=crcr]{8 0\\
8 2\\
10 2\\
10 0\\
};
\addlegendentry{Window size=2}
\addplot [color=violet,densely dotted]
  table[row sep=crcr]{10.5 0\\
10.5 2\\
15.5 2\\
15.5 0\\
};
\addlegendentry{Window size=5}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=0.1cm]{standalone}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[font=\boldmath, >=latex, decoration={brace,raise=4pt}, line width=0.7pt]
\foreach \n/\s/\l/\p/\a in {o/draw/{$0$}/{0,0}/left, A/fill/{$A$}/{20:5}/right, B/fill/{$B$}/{45:3.5}/right, AB/fill/{$AB$}/{65:6}/right}
    \node (\n)[\s,circle,scale=0.3,label={\a:\l}] at (\p) {};
\draw (o) edge[dashed] ++(5,0)
      [->] edge (A)
      [->] edge (B)
      [->] edge (AB);
\draw[decorate,thin] (o) -- node[sloped,above=5pt] {(length $A$)$\cdot$(length $B$)} (AB);
\foreach \t/\a/\b/\r in {/0/20/1.6, thin/20/65/1.6, thin/0/45/2, /45/65/2}
    \draw [->,\t] (\a:\r) arc (\a:\b:\r);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,positioning,shadows}

\begin{document}
\begin{tikzpicture}[
  font=\scriptsize,
  baseline=1ex,
  shorten >=.1pt,
  node distance=6mm,
  on grid,
  semithick,
  auto,
  every state/.style={
    fill=white,
    draw=black,
    circular drop shadow,
    inner sep=.3mm,
    text=black,
    minimum size=0
  },
  accepting/.style={fill=gray,text=white}
]
  \node[circle, every state] (A) {$z$};
  \node[circle, every state, accepting] (B) [above right=of A] {$y$};
  \node[circle, every state] (C) [below right=of B] {$x$};
  \path (A) edge (B)
        edge [bend left] node[below] {$z$} (C);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning, shapes, calc}
\tikzset{
  my rect/.style={draw, shape=rectangle, minimum width=1cm, minimum height=1cm},
  node distance=2.3cm,
  auto
}
\begin{document}
\begin{tikzpicture}
\node (0) {\footnotesize$\pi (S+V)$};
\node (1) [right of=0, xshift = -0.5cm, my rect, draw=black, fill=cyan!30!white] {$S$}; 
\node (2) [right of=1, my rect, draw=gray, fill=white] {$E$};
\node (3) [right of=2, my rect, draw=red, fill=red!30!white] {$Z$};
\node (4) [below of=2, yshift=1cm] {\footnotesize$(1-\alpha)\chi E$};
\node (5) [below of=3, yshift=1cm] {\footnotesize$\gamma (S+ V)Z$};
\node (6) [right of=3, draw=green, my rect, fill=green!30!white] {$V$};

\path (1.east) -- (1.north east) coordinate[pos=0.5] (a1);
\path (2.west) -- (2.north west) coordinate[pos=0.5] (b1);  
\draw[->] (0) to node {} (1);
\draw[->] (a1) to node {\footnotesize$\beta SZ$} (b1);

\path (1.east) -- (1.south east) coordinate[pos=0.5] (a2);
\path (2.west) -- (2.south west) coordinate[pos=0.5] (b2);
\draw[->] (a2) to[swap] node {\footnotesize$\delta S$} (b2);

\draw[->] (3) to node{} (5);
\draw[->] (2) to node{} (4);
\draw[->] (2) to node{\footnotesize $\alpha\lambda E$} (3);

\draw[->] (1) -- +(0,1cm) -| (6);
\node[above=1cm] at ($(1)!0.5!(6)$){\footnotesize$\zeta S$};

\draw[->] ([xshift=-0.3cm]6.south) -- +(0,-1cm) node[below]{\footnotesize$\delta V$};
\draw[->] ([xshift=0.3cm]6.south)  -- +(0,-1cm) node[below]{\footnotesize$\beta VZ$};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[node distance=0.2em]
    \node (T0) at (0,0) {$T_{0}$};
    \foreach[count=\xi from 0] \x in {1,2,...,8} 
        \node[below=of T\xi] (T\x) {$T_{\x}$};
\end{tikzpicture}
\end{document}