AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[thick, main node/.style={circle,fill=blue!10,draw,font=\sffamily\bfseries} ]
\node[main node] at (-2, 0) (a1) {$a_1$};
\node[main node] at (-2, 1) (a2) {$a_2$};
\node[main node] at (2, 0) (b1) {$b_1$};
\node[main node] at (2, 1) (b2) {$b_2$};
\node[main node] at (-2, -2) (a) {$a$};
\node[main node] at (2, -2) (b) {$b$};
\draw [thick, ->] (0, -0.5) -- (0, -1.5) node[midway,right] {$f$};
\draw (a1) to (b1);
\draw (b1) to (a2);
\draw (a2) to (b2);
\draw (b2) to (a1);
\draw (a) to (b);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[latin2]{inputenc}
\usepackage{amssymb}
\usepackage{amsmath,chemarrow}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\pgfplotsset{height=7cm, width=\textwidth,compat=1.17}
\begin{axis}[ybar,enlarge y limits={0.2},enlarge x limits={0.5},legend style={at={(0.5,1), anchor=north west}, anchor=north,legend columns=-1},ylabel={Hit rate [\%]
},xlabel={Number of supply and demand offers},symbolic x coords={100, 250, 500, 1000},xtick=data,bar width=10pt,scatter/position=absolute,node near coords style={at={(axis cs:\pgfkeysvalueof{/data point/x},\pgfkeysvalueof{/pgfplots/ymin})},anchor=north,yshift={-\pgfkeysvalueof{/pgfplots/major tick length}},anchor=west,rotate=-90,color = black,},]\addplot[blue, fill] coordinates {(100, 54.8) (250, 95.2) (500, 99.2) (1000, 100)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=2pt]{standalone}
\begin{document}
\begin{tikzpicture}[scale=0.75]
\draw (0,0) -- (5,0)--(5,1)--(0,1)--(0,0);
\foreach \i in {0,1,2,3,4}
{
\draw (\i,0)--(\i+1,1) -- (\i+1,0);
\draw[fill=black] (\i,0) circle (3pt);
\draw[fill=black] (\i,1) circle (3pt);
}
\foreach \y in {-0.5,0,0.5,1,1.5}
{
\draw (5,0)--(6,\y) -- (5,1);
\draw[fill=black] (6,\y) circle (3pt);
}
\foreach \i/\j in {5/1,5/0} {
\draw[fill=black] (\i,\j) circle (3pt);
}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel=$\sin x$,
]
\addplot [
blue,
mark=none,
domain=-10:0,
samples=40,
] {sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\tikz \graph { a -> { b, c, d } -> e };
\end{document}
\documentclass[tikz, border=1pt]{standalone}
\begin{document}
\begin{tikzpicture}[scale=0.75]
\draw (-6,0)--(-4,0);
\draw[<-,thick] (-3,0)--(-2,0);
\draw (-1,-1)--(0,0)--(1,1)--(2,0)--(3,1);
\draw (0,0)--(1,-1)--(2,0);
\draw (-1,1)--(0,0);
\draw (2,0)--(3,-1);
\draw (-1,-2)--(0,-2)--(1,-2)--(2,0)--(3,-2);
\draw[dashed] (0,0)--(0,-2);
\foreach \q in {(-6,0),(-4,0),(-1,1),(-1,-1),(0,0),(1,1),(1,-1),(2,0),(3,1),(3,-1),(-1,-2),(0,-2),(1,-2),(3,-2)}
\node at \q [circle,fill,inner sep=1pt]{};
\node at (-1,1.4) {1};
\node at (-1,-0.5) {2};
\node at (-1,-2.5) {3};
\node at (0,0.4) {4};
\node at (0,-2.5) {5};
\node at (1,1.4) {6};
\node at (1,-0.5) {7};
\node at (1,-2.5) {8};
\node at (2,0.4) {9};
\node at (3,1.4) {10};
\node at (3,-0.5) {11};
\node at (3,-2.5) {12};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\draw(0,0)to[R]++(2,0)coordinate(a)edge[dashed,red]++(1,0)++(1,0)to[R]++(2,0);
\node[ocirc]at(a){};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[level distance=1cm, level 1/.style={sibling distance=1cm}, level 2/.style={sibling distance=1cm}]
\node {0} child { node {0} child {node {0} child {node {1}} child {node {2}} } };
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsthm,amsmath,amsfonts,amssymb,color, enumerate,tikz, hyperref, algpseudocode, amscd, url, graphicx, floatrow, subfig, float, caption}
\begin{document}
\begin{tikzpicture}
\filldraw[color=gray!20] (0,0)--(0,2)--(2,2)--(2,0)--(0,0);
\draw (0,0)--(0,2)--(2,2)--(2,0)--(0,0);
\filldraw[black] (0,0) node[below=.1pt]{$v_1$} circle (1pt);
\filldraw[black] (0,2) node[above=.1pt]{$v_2$} circle (1pt);
\filldraw[black] (2,2) node[above=.1pt]{$v_3$} circle (1pt);
\filldraw[black] (2,0) node[below=.1pt]{$v_4$} circle (1pt);
\draw (-.3,1) node{$F_1$} ;
\draw (1,2.3) node{$F_4$} ;
\draw (2.3,1) node{$F_3$} ;
\draw (1,-.3) node{$F_2$} ;
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat = newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xlabel=$x$,
ylabel={$f(x) = x^2 - x +4$},
width=0.50\textwidth,
]
\addplot {x^2 - x +4};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xfp}
\usepackage[dvipsnames,svgnames]{xcolor}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
\usepackage{tkz-base}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}\providecolor{darkgray}{rgb}{0.4, 0.4, 0.4}\providecolor{lightgray}{rgb}{0.8, 0.8, 0.8}\tkzSetUpColors[background=white,text=black]\tkzSetUpCompass[color=orange, line width=.2pt,delta=10]\tkzSetUpArc[color=gray,line width=.2pt]\tkzSetUpPoint[size=2,color=teal,fill=teal]\tkzSetUpLine[line width=.2pt,color=teal]\tikzset{every picture/.style={line width=.2pt}
}\tikzset{new/.style={color=orange,line width=.2pt}
}\tikzset{label angle style/.append style={color=teal,font=\footnotesize}
}\tikzset{label style/.append style={below,color=teal,font=\scriptsize}
}\tikzset{line style/.style={line width=.2pt}
}\tikzset{mybox/.style={draw=gray,fill=gray!10,very thick,rectangle,rounded corners,inner sep=10pt,inner ysep=10pt}
,title/.style={fill=gray,text=white,font=\bfseries,right=10pt}}\providecommand{\widearc}[1]{\overset{\frown}{#1}}\providecommand{\rmark}{}\providecommand{\parallelslant}{\mathbin{\!/\mkern-5mu/\!}}
\begin{document}

  \begin{tikzpicture}
    \tkzInit[xmax=5,ymax=5]\tkzDrawX[>=latex]\tkzDrawY[>=latex]\tkzDefPoint(0,0){A}\tkzDefPoint(4,0){B}\tkzDefPoint(0,3){C}\tkzDrawPolygon(A,B,C)\tkzDrawPoints(A,B,C)
  \end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{pgfplots}
\def\addlegendimage{\csname pgfplots@addlegendimage\endcsname}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xlabel={Participants},ylabel={$NCG$},xmin=0, xmax=40,ymin=-0.1, ymax=1.1,xtick={1,10,20,30,40},ytick={0,0.2,0.4,0.6,0.8,1},ymajorgrids=true,grid style=dashed]\addplot[color=red,mark=o,mark size=1pt] coordinates {(1, 0.4)(2, 0.4)(3, 0.6)(4, 0.6)(5, 1)(6, 1)(7, 1)(8, 1)(9, 1)(10, 1)(11, 1)(12, 1)(13, 1)(14, 1)(15, 1)(16, 1)(17, 1)(18, 1)(19, 1)(20, 1)(21, 1)(22, 1)(23, 1)(24, 1)(25, 1)(26, 1)(27, 1)(28, 1)(29, 1)(30, 1)(31, 1)(32, 1)(33, 1)(34, 1)(35, 1)(36, 1)(37, 1)(38, 1)(39, 1)(40, 1)};
\addplot[color=teal,mark=square,mark size=1pt] coordinates {(1, 0.6)(2, 0.6)(3, 0.6)(4, 0.6)(5, 0.6)(6, 0.6)(7, 0.6)(8, 0.6)(9, 0.6)(10, 0.6)(11, 0.6)(12, 0.6)(13, 0.6)(14, 0.6)(15, 0.6)(16, 0.6)(17, 0.6)(18, 0.637)(19, 0.7)(20, 0.7)(21, 0.7)(22, 0.7)(23, 0.7)(24, 0.7)(25, 0.7)(26, 0.7)(27, 0.7)(28, 0.7)(29, 0.7)(30, 0.7)(31, 0.7)(32, 0.7)(33, 0.7)(34, 0.7)(35, 0.7)(36, 0.7)(37, 0.7)(38, 0.7)(39, 0.7)(40, 0.7)};
\addplot[color=orange,mark=+,mark size=2pt] coordinates {(1, 0.3)(2, 0.3)(3, 0.7)(4, 0.7)(5, 1)(6, 1)(7, 1)(8, 1)(9, 1)(10, 1)(11, 1)(12, 1)(13, 1)(14, 1)(15, 1)(16, 1)(17, 1)(18, 1)(19, 1)(20, 1)(21, 1)(22, 1)(23, 1)(24, 1)(25, 1)(26, 1)(27, 1)(28, 1)(29, 1)(30, 1)(31, 1)(32, 1)(33, 1)(34, 1)(35, 1)(36, 1)(37, 1)(38, 1)(39, 1)(40, 1)};
\addplot[color=black,mark=triangle,mark size=1pt] coordinates {(1, 0.2)(2, 0.2)(3, 0.8)(4, 0.8)(5, 1)(6, 1)(7, 1)(8, 1)(9, 1)(10, 1)(11, 1)(12, 1)(13, 1)(14, 1)(15, 1)(16, 1)(17, 1)(18, 1)(19, 1)(20, 1)(21, 1)(22, 1)(23, 1)(24, 1)(25, 1)(26, 1)(27, 1)(28, 1)(29, 1)(30, 1)(31, 1)(32, 1)(33, 1)(34, 1)(35, 1)(36, 1)(37, 1)(38, 1)(39, 1)(40, 1)};
\addplot[color=violet,mark=o,mark size=1pt] coordinates {(1, 0)(2, 0)(3, 0)(4, 0)(5, 0)(6, 0)(7, 0)(8, 0)(9, 0)(10, 0)(11, 0)(12, 0)(13, 0)(14, 0)(15, 0)(16, 0)(17, 0.1)(18, 0.1)(19, 0.2)(20, 0.2)(21, 0.2)(22, 0.2)(23, 0.3)(24, 0.3)(25, 0.3)(26, 0.9)(27, 0.9)(28, 0.9)(29, 0.9)(30, 1)(31, 1)(32, 1)(33, 1)(34, 1)(35, 1)(36, 1)(37, 1)(38, 1)(39, 1)(40, 1)};
\addplot[color=blue,mark=o,mark size=1.5pt] coordinates {(1, 0.5)(2, 0.5)(3, 0.5)(4, 0.5)(5, 1)(6, 1)(7, 1)(8, 1)(9, 1)(10, 1)(11, 1)(12, 1)(13, 1)(14, 1)(15, 1)(16, 1)(17, 1)(18, 1)(19, 1)(20, 1)(21, 1)(22, 1)(23, 1)(24, 1)(25, 1)(26, 1)(27, 1)(28, 1)(29, 1)(30, 1)(31, 1)(32, 1)(33, 1)(34, 1)(35, 1)(36, 1)(37, 1)(38, 1)(39, 1)(40, 1)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amssymb, cases}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{fit, arrows, shapes, matrix, chains, positioning, backgrounds, arrows.meta, tikzmark, decorations.pathreplacing, calc}
\tikzset{me/.style={to path={\pgfextra{\pgfmathsetmacro{\startf}
{-(#1-1)/2}\pgfmathsetmacro{\endf}{-\startf}\pgfmathsetmacro{\stepf}{\startf+1}}\ifnum 1=#1 -- (\tikztotarget)\else let \p{mid}=($(\tikztostart)!0.5!(\tikztotarget)$) in
\foreach \i in {\startf,\stepf,...,\endf}{(\tikztostart) .. controls ($ (\p{mid})!\i*6pt!90:(\tikztotarget) $) .. (\tikztotarget)}\fi \tikztonodes}}}
\begin{document}
\begin{tikzpicture}[scale=1.0, transform shape, baseline={(0,0)}]
\tikzset{edge/.style = {->,> = latex}
}\node[] (label) at (-0.75, -0.75) {$G(L)$};
\node[] (n5) at (0, 2) {\color{black}{$x_5$}};
\node[] (n2) at (-1.5, 0.5) {\color{black}{$x_2$}};
\node[] (n3) at (0, 0.5) {\color{black}{$x_3$}};
\draw[edge] (n5) -- (n3);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,url,color,tikz,colortbl,xcolor,amsfonts,latexsym,tikz-cd,hyperref,wrapfig,float,wasysym}
\usetikzlibrary{patterns}
\usepackage[colorinlistoftodos,color=red!70]{todonotes}
\begin{document}
\begin{tikzpicture}[baseline={([yshift=-.8ex]
current bounding box.center)}]\node at (-1,1) (a) {$1$};
\node at (0,0) (b) {$2$};
\node at (1,1) (c) {$0$};
\draw[-] (a) -- (b);
\draw[-] (c) -- (b);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{smithchart}
\begin{document}
\begin{tikzpicture}
\begin{smithchart}[
title=Impedance Smith Chart,
]
\addplot coordinates {
(0.5,0.2) (1,0.8) (2,2)
};
\end{smithchart}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsfonts,xcolor,tikz,pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{shapes.misc,arrows,arrows.meta}
\tikzset{selected/.style={ultra thick,>=latex}
}
\begin{document}
\begin{tikzpicture}
\begin{scope}[shift={(0,0)}]\coordinate[label=above:1 -- Selection, circle, selected, draw] (root) at (3,0);
\coordinate[circle, selected, draw] (l1) at (2,-1);
\coordinate[circle, draw] (c1) at (3, -1);
\coordinate[circle, draw] (r1) at (4, -1);
\coordinate[circle, draw] (l2) at (1.5, -2);
\coordinate[circle, selected, draw] (r2) at (2.5, -2);
\coordinate[circle, draw] (l3) at (2, -3);
\draw[selected, ->] (root) -- (l1);
\draw (root) -- (c1);
\draw (root) -- (r1);
\draw (l1) -- (l2);
\draw[selected, ->] (l1) -- (r2);
\draw (r2) -- (l3);
\end{scope}
\begin{scope}[shift={(4,0)}]
\coordinate[label=above:2 -- Expansion, circle, draw] (root) at (3,0);
\coordinate[circle, draw] (l1) at (2,-1);
\coordinate[circle, draw] (c1) at (3, -1);
\coordinate[circle, draw] (r1) at (4, -1);
\coordinate[circle, draw] (l2) at (1.5, -2);
\coordinate[circle, draw] (r2) at (2.5, -2);
\coordinate[circle, draw] (l3) at (2, -3);
\coordinate[circle, selected, draw] (new) at (3, -3);
\draw (root) -- (l1);
\draw (root) -- (c1);
\draw (root) -- (r1);
\draw (l1) -- (l2);
\draw (l1) -- (r2);
\draw (r2) -- (l3);
\draw[selected] (r2) -- (new);
\end{scope}
\begin{scope}[shift={(0, -4.5)}]
\coordinate[label=above:3 -- Simulation, circle, draw] (root) at (3,0);
\coordinate[circle, draw] (l1) at (2,-1);
\coordinate[circle, draw] (c1) at (3, -1);
\coordinate[circle, draw] (r1) at (4, -1);
\coordinate[circle, draw] (l2) at (1.5, -2);
\coordinate[circle, draw] (r2) at (2.5, -2);
\coordinate[circle, selected, draw] (new) at (3, -3);
\coordinate[circle, draw] (l3) at (2, -3);
\coordinate[rectangle, selected, draw] (rollout) at (3, -4.5);
\draw (root) -- (l1);
\draw (root) -- (c1);
\draw (root) -- (r1);
\draw (l1) -- (l2);
\draw (l1) -- (r2);
\draw (r2) -- (l3);
\draw (r2) -- (new);
\draw[selected, ->, dashed] (new) -- (rollout) node[midway, anchor=east]{\it Rollout Policy};
\end{scope}
\begin{scope}[shift={(4, -4.5)}]
\coordinate[label=above:4 -- Backpropagation, circle, selected, draw] (root) at (3,0);
\coordinate[circle, selected, draw] (l1) at (2,-1);
\coordinate[circle, draw] (c1) at (3, -1);
\coordinate[circle, draw] (r1) at (4, -1);
\coordinate[circle, draw] (l2) at (1.5, -2);
\coordinate[circle, selected, draw] (r2) at (2.5, -2);
\coordinate[circle, draw] (l3) at (2, -3);
\coordinate[circle, selected, draw] (new) at (3, -3);
\draw[selected, <-] (root) -- (l1);
\draw (root) -- (c1);
\draw (root) -- (r1);
\draw (l1) -- (l2);
\draw[selected, <-] (l1) -- (r2);
\draw (r2) -- (l3);
\draw[selected, <-] (r2) -- (new);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[R, -d] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{5pt}
\begin{document}
\begin{tikzpicture}
\tikzstyle{place}=[circle, draw=black, minimum size = 8mm]
\draw node at (0, -1.25) [place] (first_1) {$x^{(1)}_0$};
\draw node at (0, -2*1.25) [place] (first_2) {$x^{(1)}_1$};
\draw node at (0, -3*1.25) [place] (first_3) {$x^{(1)}_2$};
\foreach \x in {1,...,3}
\node at (4, -\x*1.25) [place] (second_\x){$a^{(2)}_\x$};
\foreach \x in {2,...,2}
\node at (8, -\x*1.25) [place] (fourth_\x){$a^{(3)}_\x$};
\foreach \x in {2,...,2}
\node at (10, -\x*1.25) [circle] (output_\x){$y_\x$};
\foreach \i in {1,...,3}
\foreach \j in {1,...,3}
\draw [->] (first_\i) to (second_\j);
\foreach \i in {1,...,3}
\foreach \j in {2,...,2}
\draw [->] (second_\i) to (fourth_\j);
\foreach \i in {2,...,2}
\draw [->] (fourth_\i) to (output_\i);
\node at (2, 0) [black] {$\Theta^{(1)}$};
\node at (6, 0) [black] {$\Theta^{(2)}$};
\node at (4, 0) [black] {$a^{(2)}$};
\node at (8, 0) [black] {$a^{(3)}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=Discarding unbounded coords,
unbounded coords=discard,
]
\addplot coordinates {
(0,0) (10,50) (20,100) (30,200)
(40,inf) (50,600) (60,800) (80,1000)
};
\end{axis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{axis}[
title=Jumps at unbounded coords,
unbounded coords=jump,
]
\addplot coordinates {
(0,0) (10,50) (20,100) (30,200)
(40,inf) (50,600) (60,800) (80,1000)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\tikzset{
help lines/.style={gray,very thin},
}
\begin{document}
\begin{tikzpicture}
\draw[help lines] (0,0) grid (3,2);
\draw (0,0) -- (1,1) -- (1,0);
\draw[yslant=2,blue] (0,0) -- (1,1) -- (1,0);
\draw[yslant=-1,red] (0,0) -- (1,1) -- (1,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{automata, arrows}
\usepackage{xcolor}
\tikzset{
->,
>=stealth,
node distance=4em,
every state/.style={thick, fill=gray!10, minimum size=4em},
initial text=$ $
}
\begin{document}
\begin{tikzpicture}[scale=0.9, every node/.style={scale=0.9}]
\node[state, initial] at (0,6.5) (idle) {idle};
\node[state] at (0,12.5) (buffer) {buffer};
\node[state] at (0,0) (process) {process};
\node[state] at (5.5,6.5) (stall) {stall};
\draw (idle) edge node[sloped, anchor=center, align=center] {\texttt{:receive()} $\wedge$ no \texttt{fu} found\\/\texttt{t:=latency,ready:=False}} (buffer)
(buffer) edge[bend right] node[sloped, align=center, above, rotate=180] {\texttt{t==0} $\wedge$ \texttt{ps.ready()}\\\texttt{/:forward(ps),ready:=True}} (idle)
(idle) edge node[sloped, anchor=center, align=center, rotate=180] {\texttt{:receive()} $\wedge$ \texttt{fu} found\\/\texttt{fu.process(),}\texttt{ready:=False}} (process)
(process) edge[bend left] node[sloped, anchor=center, align=center,above] {\texttt{fu.ready()}\\/\texttt{ready:=True}} (idle)
(buffer) edge node[sloped, anchor=center, above, align=center] {\texttt{t==0} $\wedge$ \texttt{!ps.ready()/}} (stall)
(stall) edge node[align=center, below] {\texttt{ps.ready()}\\/\texttt{:forward(ps),}\\\texttt{ready:=True}} (idle)
(stall) edge[loop above] node {} (stall)
(buffer) edge[loop above] node {\texttt{t!=0}/\texttt{t:=t-1}} (buffer)
(process) edge[loop below] node {\texttt{!fu.ready()}/} (process)
;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,tikz}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}[scale=0.7, n/.style={shape=circle,draw=black}, p/.style={->, shorten >=12pt,shorten <=12pt}]
\node[n] (s1) at (-0.75,0) {$A1$};
\node[n] (s2) at (-2,3){$A1$};
\node[n] (s3) at (-0.75,6){$A1$};
\node[n] (s4) at (0.75,0){$A2$};
\node[n] (s5) at (2,3){$A2$};
\node[n] (s6) at (0.75,6){$A2$};
\draw (0,0) ellipse (2 and 1);
\draw (2,3) circle (0.9);
\draw (-2,3) circle (0.9);
\draw (0,6) ellipse (2 and 1);
\path [p] (s2) edge (s1) (s3) edge (s2) (s5) edge (s4) (s6) edge (s5);
\node[n] (s7) at (5.75,0) {$A1$};
\node[n] (s8) at (4.5,3){$A1$};
\node[n] (s9) at (5.75,6){$A1$};
\node[n] (s10) at (7.25,0){$A2$};
\node[n] (s11) at (8.5,3){$A2$};
\node[n] (s12) at (7.25,6){$A2$};
\draw (8.5,3) circle (0.9);
\draw (4.5,3) circle (0.9);
\draw (6.5,6) ellipse (2 and 1);
\draw (5.75,0) circle (0.9);
\draw (7.25,0) circle (0.9);
\path [p] (s8) edge (s7) (s9) edge (s8) (s11) edge (s10) (s12) edge (s11);
\draw [opacity=0.7, dotted] (-3,6) -- (9,6);
\draw [opacity=0.7, dotted] (-3,3) -- (9,3);
\draw [opacity=0.7, dotted] (-3,0) -- (9,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={(d)},
title style={yshift=-1.5ex,font=\bfseries},
xlabel={Noise Variance (x$10^{-2}$)},
ylabel={PSNR (dB)},
width=1.2\linewidth,
height=3.5cm,
enlarge x limits=false,
grid=major,
legend pos=north east,
xticklabel style={font=\tiny},
yticklabel style={font=\tiny},
ylabel near ticks,
legend style={font=\fontsize{5pt}{5pt}\selectfont,draw=none},
font=\small,
xlabel style={
font=\fontsize{7pt}{5pt}\selectfont,
at={(0.5, 0.2)},
anchor=north
},
ylabel style={
font=\fontsize{6pt}{5pt}\selectfont,
at={(-0.15, 0.7)},
anchor=east
}
]
\addplot[blue, mark=*, mark size=1pt] coordinates {
(2, 22.88869845) (2.5, 22.09556211) (3, 21.44567393) (3.5, 20.85862609) (4, 20.39798979) (4.5, 19.99750479) (5, 19.6214151) (5.5, 19.27550648) (6, 19.02261291) (6.5, 18.70546002) (7, 18.48461185) (7.5, 18.23218625) (8, 18.04305553) (8.5, 17.81840038) (9, 17.65993033) (9.5, 17.47620249) (10, 17.35934522)
};
\addlegendentry{Joint}
\addplot[red, mark=square*, mark size=1pt] coordinates {
(2, 22.12244712) (2.5, 21.22696602) (3, 20.49146135) (3.5, 19.87125975) (4, 19.38107537) (4.5, 18.97335459) (5, 18.56215273) (5.5, 18.19682779) (6, 17.94406525) (6.5, 17.59528876) (7, 17.38390242) (7.5, 17.11846249) (8, 16.91795141) (8.5, 16.70790565) (9, 16.52024553) (9.5, 16.34767813) (10, 16.22246286)
};
\addlegendentry{Sequential}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[cyan, ultra thick] (-5.5,0)--(-2.8,0);
\draw[cyan, ultra thick] (-1.2,0)--(1.5,0);
\draw[cyan, ultra thick] (-2.81,0.019) arc (-180:0:0.8);
\draw[cyan, ->,very thick] (-1,0)--(0.2,0);
\draw[cyan, ->,very thick] (-4.2,0)--(-4,0);
\draw[fill] (-5.5,0) circle [radius=0.05];
\node[above] at (-5.5,0) {\small $0_1$};
\draw[fill] (1.5,0) circle [radius=0.05];
\node[above] at (1.5,0) {\small $0_2$};
\draw[fill,red] (-2,0) circle [radius=0.05];
\node[above] at (-2,0) {\small $z_h$};
\draw[-to,thick] (1.85,0)--(2.45,0);
\node[below] at (9.5,-0.1) {\small Re$(\hat{z})$};
\draw[->,ultra thick] (2.9,0)--(9.6,0);
\node[right] at (3.8,1) {\small Im$(\hat{z})$};
\draw[->,ultra thick] (3.6,-1)--(3.6,1.2);
\draw[cyan, very thick] (7.6,-0.18) arc (-165:165:0.7);
\draw[cyan, very thick] (3.6,0.2)--(7.6,0.2);
\draw[cyan, very thick] (3.6,-0.2)--(7.6,-0.2);
\draw[cyan, ->,very thick] (5.6,-0.2)--(6.1,-0.2);
\draw[cyan, <-,very thick] (5.6,0.2)--(6.1,0.2);
\draw[fill] (3.6,0) circle [radius=0.05];
\draw[fill] (3.6,0.2) circle [radius=0.05];
\node[below] at (3.9,-0.15) {\small $0_1 $};
\draw[fill] (3.6,-0.2) circle [radius=0.05];
\node[above] at (3.9,0.15) {\small $0_2 $};
\draw[fill , red ] (8.3,0) circle [radius=0.07];
\node[below] at (8.3,0) {\footnotesize $\hat z=z_h $};
\draw[cyan, thick,<->] (8.35,0.08)--(8.65,0.55);
\node[above] at (8.38, 0.2) {\footnotesize $\epsilon$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
minor tick num=3,
axis y line=center,
axis x line=middle,
xlabel=$x$,ylabel=$\sin x$,
]
\addplot [
smooth,blue,mark=none,
domain=-5:5,samples=40,
] {sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}[scale=1.7]
\begin{scope}[every node/.style={circle,thick,draw=green!60!black}]
\node(s) at (-2,0) {$s$};
\node(u) at (0,-1) {$u$};
\node(v) at (0,1) {$v$};
\node(t) at (2,0) {$t$};
\end{scope}
\begin{scope}[every edge/.style={draw=red,very thick}, decoration={snake}]
\path[->] (s) edge[bend right=20, decorate] (u);
\path[->] (u) edge[bend left=20] node[left] {$e_1$} (v);
\path[->] (v) edge[bend left=20, decorate] (t);
\end{scope}
\begin{scope}[every edge/.style={draw=blue,very thick}, decoration={snake}]
\path[->] (s) edge[bend left=20, decorate] (v);
\path[->] (v) edge[bend left=20] node[right] {$e_2$} (u);
\path[->] (u) edge[bend right=20, decorate] (t);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[thick] (90:3cm) arc (90:0:3cm);
\draw[thick] (90:3cm) arc (180:90:3cm);
\coordinate (A) at (80:3cm);
\path (90:3cm) arc (180:135:3cm) node [inner sep=0pt] (B) {};
\draw [blue,thick] (A) -- (B);
\foreach \X in {A,B}
\fill [blue] (\X) circle (2pt);
\coordinate (C) at (33:3cm);
\path (90:3cm) arc (180:123:3cm) node [inner sep=0pt] (D) {};
\draw [red,thick] (C) -- (D);
\foreach \Y in {C,D}
\fill [red] (\Y) circle (2pt);
\end{tikzpicture}
\end{document}