AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usepackage{amsmath}
\tikzset{splitter/.style={fill=black,circle,inner sep=0pt,minimum size=4pt}
,term/.style={draw=black,fill=black,rectangle,inner sep=0pt,minimum size=4pt},saturated/.style={very thick},fluid/.style={}}
\begin{document}
\begin{tikzpicture}[x=1cm,y=1cm,>=latex]
\foreach \x in {0,1,...,5} {\node[splitter] (u\x) at (\x,4) {};
}\foreach \x in {1,2} {\node[splitter] (v\x) at (\x,3) {};
}\foreach \x in {1,2,3,5} {\node[splitter] (w\x) at (\x,2) {};
}\foreach \x in {1,2,4} {\node[splitter] (y\x) at (\x,1) {};
}\foreach \x in {2,5} {\node[splitter] (z\x) at (\x,0) {};
}\node[term] (i) at (-2,4) {};
\node[splitter] (mix) at (-1,4) {};
\node[term] (out) at (6,2) {};
\foreach \i/\j/\p/\q in {0/1/1/2,1/2/1/4,2/3/1/8,3/4/1/16,4/5/1/32} {\draw[->,fluid,blue] (u\i) -- (u\j) node[midway,above=-2pt] {$\frac{\p}{\q}$};
}\foreach \l/\i/\j in {w/1/2,w/2/3,w/3/5,y/1/2,y/2/4,z/2/5} {\draw[->,fluid] (\l\i) -- (\l\j);
}\draw[->,fluid,blue] (u0) -- (v1) node[midway,below left=-3pt] {$\frac{1}{2}$};
\draw[->,fluid,blue] (u1) -- (v2) node[pos=0.3,below left=-3pt] {$\frac{1}{4}$};
\draw[->,fluid,blue] (u3) -- (w3) node[midway,right=-3pt] {$\frac{1}{16}$};
\draw[->,fluid,blue] (u4) -- (y4) node[midway,left=-3pt] {$\frac{1}{32}$};
\draw[->,fluid,blue] (u5) -- (w5) node[midway,right=-3pt] {$\frac{1}{64}$};
\draw[->,fluid,blue] (v1) -- (w1) node[midway,right=-3pt] {$\frac{1}{4}$};
\draw[->,fluid,blue] (v2) -- (w2) node[midway,right=-3pt] {$\frac{1}{8}$};
\draw[->,fluid,blue] (v1) to[bend right] node[pos=0.2,left=-3pt] {$\frac{1}{4}$} (y1);
\draw[->,fluid,blue] (v2) to[bend right] node[pos=0.2,left=-3pt] {$\frac{1}{8}$} (y2);
\draw[->,fluid,blue] (u2) to[bend right] node[pos=0.25,left=-3pt] {$\frac{1}{8}$} (z2);
\draw[->,fluid,blue] (u5) to[bend right] node[pos=0.2,left=-3pt] {$\frac{1}{64}$} (z5);
\draw[->,saturated] (i) -- (mix) node[midway,below=-2pt] {$\frac{29}{64}$};
\draw[->,fluid] (mix) -- (u0) node[midway,below=-2pt] {$\frac{55}{64}$};
\draw[->,fluid] (w5) -- (out) node[midway,below=-2pt] {$\frac{29}{64}$};
\draw[->,fluid,rounded corners=5pt] (y4) -- (7,1) node[pos=0.8,below=-2pt] {$\frac{26}{64}$} -- (7,5.5) -- (-1,5.5) node[pos=0.8,below=-2pt] {$\frac{26}{64}$} -- (mix);
\draw[->,fluid,rounded corners=5pt] (z5) -- (7.5,0) node[pos=0.6,below=-2pt] {$\frac{9}{64}$} -- (7.5,6) -- (0,6) node[pos=0.8,above=-2pt] {$\frac{9}{64}$} -- (u0);
\node (u) at (-0.5,2) {$P_1:$};
\node (v) at (-0.5,1) {$P_2:$};
\node (w) at (-0.5,0) {$P_3:$};
\path (i) node[anchor=south east] {$i$};
\path (mix) node[anchor=south east] {$r'$};
\path (u0) node[anchor=south east] {$r$};
\path (out) node[anchor=south west] {$o$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{intersections}
\begin{document}
\begin{tikzpicture}
\foreach\X in{1,2,3}\draw[name path global=hor-\X-0](.1*\X,2*\X)to[bend left=12]++(5,1);
\foreach\X in{1,2}\draw[name path global=vert-\X-0](2*\X-.5,1+.1*\X)to[bend left=15]++(.3,7);
\foreach\X/\lu in{1/k,2/k+\mu,3/k+1}\foreach\Y/\ld in{1/i,2/i+1}\path[name intersections={of=hor-\X-0 and vert-\Y-0,by=p\X\Y}](p\X\Y)node[circle,fill,inner sep=2pt,label=below right:$g_{\ld}^{\lu}$]{};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[small,minor x tick num=1,enlarge x limits={rel=0.5,upper},]\addplot {5 * x^3 - x^2 + 4*x -2};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\tikzset{
help lines/.style={gray,very thin}
}
\begin{document}
\begin{tikzpicture}
\draw[help lines] (0,0) grid (3,2);
\def\cx{1.5cm}
\def\cy{1cm}
\def\startangle{0}
\def\endangle{270}
\def\a{1.5cm}
\def\b{0.5cm}
\pgfmathparse{\a/\b}\let\abratio=\pgfmathresult
\pgfmathparse{\b/\a}\let\baratio=\pgfmathresult
\pgfpathmoveto{\pgfpoint{\cx+\a*cos(\startangle)}{\cy+\b*sin(\startangle)}}
\pgfpatharctoprecomputed
{\pgfpoint{\cx}{\cy}}
{\startangle}
{\endangle}
{\pgfpoint{\cx+\a*cos(\endangle)}{\cy+\b*sin(\endangle)}}
{\a}
{\b}
{\abratio}
{\baratio}
\pgfusepath{draw}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz \graph [math nodes, branch down=5mm] {
a -> {
\foreach \i in {1,2,3} {
a_\i -> { x_\i, y_\i }
},
b
}
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{smithchart}
\begin{document}
\begin{tikzpicture}
\begin{smithchart}[
xtick={0.2,0.5,1,2,5},
ytick={
0,
0.2, 0.5, 1, 2, 5,
-0.2,-0.5,-1,-2,-5
},
xgrid each nth passes y={1,2},
]
\end{smithchart}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepgflibrary{plothandlers}
\begin{document}
\begin{tikzpicture}[bar interval width=0.5]
\draw[gray]
(0,3) -- (0,-0.1)
(1,3) -- (1,-0.1)
(2,3) -- (2,-0.1)
(4,3) -- (4,-0.1);
\pgfplothandlerybarinterval
\begin{scope}[bar interval shift=0.25, fill=blue]
\pgfplotstreamstart
\pgfplotstreampoint{\pgfpoint{0cm}{2cm}}
\pgfplotstreampoint{\pgfpoint{1cm}{1cm}}
\pgfplotstreampoint{\pgfpoint{2cm}{0.5cm}}
\pgfplotstreampoint{\pgfpoint{4cm}{0.7cm}}
\pgfplotstreamend
\pgfusepath{fill}
\end{scope}
\begin{scope}[bar interval shift=0.75, fill=red]
\pgfplotstreamstart
\pgfplotstreampoint{\pgfpoint{0cm}{3cm}}
\pgfplotstreampoint{\pgfpoint{1cm}{0.2cm}}
\pgfplotstreampoint{\pgfpoint{2cm}{0.7cm}}
\pgfplotstreampoint{\pgfpoint{4cm}{0.2cm}}
\pgfplotstreamend
\pgfusepath{fill}
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\tikzset{
modal/.style={
shorten >=1pt,
shorten <=1pt,
auto,
node distance=1.5cm,
semithick
}
}
\newcommand{\nuC}{\nu\text{C}}
\newcommand{\muPL}{\mu\text{PL}}
\begin{document}
\begin{tikzpicture}[modal]
\node[] at (2,0) (0) [label=above:{}] {$(\Sigma^\ast)^\Sigma$};
\node[] at (5,0) (2) [label=above:{}] {$\nuC(\overline{x},\delta)^\Sigma$};
\node[] at (7.5,0) (3) [label=above:{}] {$X^\Sigma$};
\node[] at (10,0) (4) [label=above:{}] {$\muPL(\delta,c)^\Sigma$};
\node[] at (13,0) (6) [label=above:{}] {$(2^{\Sigma^\ast})^\Sigma$};
\node[] at (2,1.5) (7) [label=above:{}] {$\Sigma^\ast$};
\node[] at (5,1.5) (9) [label=above:{}] {$\nuC(\overline{x},\delta)$};
\node[] at (7.5,1.5) (a) [label=above:{}] {$X$};
\node[] at (10,1.5) (b) [label=above:{}] {$\muPL(\delta,c)$};
\node[] at (13,1.5) (d) [label=above:{}] {$2^{\Sigma^\ast}$};
\node[] at (2,3) (e) [label=above:{}] {$1$};
\node[] at (13,3) (f) [label=above:{}] {$2$};
\path[->] (0) edge node[]{} (2);
\path[->] (2) edge node[]{} (3);
\path[->] (3) edge node[]{} (4);
\path[->] (4) edge node[]{} (6);
\path[->] (7) edge node[]{} (0);
\path[->] (7) edge node[]{} (9);
\path[->] (9) edge node[]{} (2);
\path[->] (9) edge node[below]{$\epsilon_{(\overline{x},\delta)}$} (a);
\path[->] (a) edge node[]{$\delta$} (3);
\path[->] (a) edge node[below]{$\eta_{(\delta,c)}$} (b);
\path[->] (a) edge[bend left,looseness=0.5] node[]{$c$} (f);
\path[->] (b) edge node[]{} (4);
\path[->] (b) edge node[]{} (d);
\path[->] (b) edge[bend left,looseness=0.5] node[]{} (f);
\path[->] (d) edge node[]{} (6);
\path[->] (d) edge node[]{} (f);
\path[->] (e) edge node[]{} (7);
\path[->] (e) edge[bend left,looseness=0.5] node[]{} (9);
\path[->] (e) edge[bend left,looseness=0.5] node[]{$\overline{x}$} (a);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{shadows}
\begin{document}
\begin{tikzpicture}
\foreach \i in {1,...,8}
\node[circle,circular drop shadow,draw=blue,fill=blue!20,thick]
at (\i*45:1) {Circle \i};
\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 -> a;
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{H_3C-[7]CH(-[6]CH_3)-[1]CH(-[7]C_3H_7)-[2]CH_2-[3]H_3C}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz \graph [branch down=4mm, declare={claw}{1 -- {2,3,4}}] {
claw [name=left],
claw [name=right]
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{multipoles/thickness=3}
\ctikzset{multipoles/dipchip/width=2}
\draw (0,0) node[dipchip,
num pins=10, hide numbers, no topmark,
external pins width=0](C){Block};
\node [right, font=\tiny] at (C.bpin 1) {RST};
\node [right, font=\tiny] at (C.bpin 2) {IN1};
\node [right, font=\tiny] at (C.bpin 4) {/IN2};
\node [left, font=\tiny] at (C.bpin 8) {OUT};
\draw (C.bpin 2) -- ++(-0.5,0) coordinate(extpin);
\node [ocirc, anchor=0](notin2) at (C.bpin 4) {};
\draw (notin2.180) -- (C.bpin 4 -| extpin);
\draw (C.bpin 8) to[short,-o] ++(0.5,0);
\draw (C.bpin 5) ++(0,0.1) -- ++(0.1,-0.1)
node[right, font=\tiny]{CLK} -- ++(-0.1,-0.1);
\draw (C.n) -- ++(0,1) node[vcc]{};
\draw (C.s) -- ++(0,-1) node[ground]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcommand{\sref}[1]{Section~\ref{sec:#1}}
\begin{document}
\begin{tikzpicture}[scale=0.85]
\draw [draw=red, fill=red!20!white] (1.25,-1.5) rectangle (10.5,0.5);
\node[draw, fill=gray!20!white, thick] (Z) at (0,0) {Source code};
\node[draw, fill=gray!20!white, thick] (A) at (3,0) {Surface language};
\node[draw, fill=gray!20!white, thick] (B) at (3,-1) {Desugared language};
\node[draw, fill=gray!20!white, thick] (C) at (6.5,-1) {Scope language};
\node[draw, fill=gray!20!white, thick] (D) at (6.5,0) {Default calculus};
\node[draw, fill=gray!20!white, thick] (E) at (9.5,0) {$\lambda$-calculus};
\node[draw, fill=gray!20!white, thick] (F) at (8.5,-2) {OCaml};
\node[draw, fill=gray!20!white, thick] (G) at (10.5,-2) {Interpeter};
\node[draw, fill=gray!20!white, thick] (H) at (8.5,-3) {JavaScript};
\path[draw, ultra thick, ->] (Z) -- (A);
\path[draw, ultra thick, ->] (A) -- (B);
\path[draw, ultra thick, ->] (B) -- (C);
\path[draw, ultra thick, ->] (C) -- (D);
\path[draw, ultra thick, ->] (D) -- (E);
\path[draw, ultra thick, ->] (E) -- (F);
\path[draw, ultra thick, ->] (E) -- (G);
\path[draw, ultra thick, ->] (F) -- (H);
\node at ($ (A) + (0,0.75) $) {\sref{tutorial}};
\node at ($ (B) + (0,-0.75) $) {\sref{desugaring}};
\node at ($ (C) + (0,-0.75) $) {\sref{desugaring}};
\node at ($ (D) + (0,0.75) $) {\sref{defaultcalculus}};
\node at ($ (E) + (0,0.75) $) {\sref{lambdacalculus}};
\node at ($ (H) + (-2.8,0) $) {\emph{via} \texttt{js\_of\_ocaml} \cite{vouillon2014bytecode}};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions,
}
\begin{document}
\tikz \datavisualization data group {function classes} = {
data [set=log, format=function] {
var x : interval [0.2:2.5];
func y = ln(\value x);
}
data [set=lin, format=function] {
var x : interval [-2:2.5];
func y = 0.5*\value x;
}
data [set=squared, format=function] {
var x : interval [-1.5:1.5];
func y = \value x*\value x;
}
data [set=exp, format=function] {
var x : interval [-2.5:1];
func y = exp(\value x);
}
};
\tikz \datavisualization [
school book axes,
all axes={unit length=7.5mm},
visualize as smooth line/.list={log, lin, squared, exp},
style sheet=vary dashing]
data group {function classes};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{graphicx,color}
\usepackage{amsthm,amsmath,amssymb,enumerate,comment}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[xscale=1.2,yscale=1.2]
\coordinate(O)at(0,0);
\coordinate(XS)at(-0.5,0);
\coordinate(XL)at(5.5,0);
\coordinate(YS)at(0,-0.5);
\coordinate(YL)at(0,3.7);
\draw[semithick,->,>=stealth](XS)--(XL)node[right]{$p$};
\draw[semithick,->,>=stealth](YS)--(YL)node[left]{$q$};
\coordinate(P)at(1,0);
\coordinate(Q)at(0,1);
\foreach\k in{0,1,2,3,4,5}\foreach\l in{0,1,2,3}\fill($(O)+\k*(P)+\l*(Q)$)circle(0.05);
\foreach\k in{0,1,2,3,4,5}\coordinate[label=above right:$1$](X\k)at($\k*(P)$);
\coordinate[label=below right:$\alpha$](X)at(1,0);
\foreach\k in{2,3,4,5}\coordinate[label=below right:$\alpha^\k$](X\k)at($\k*(P)$);
\coordinate[label=above right:$2$](Y)at(0,1);
\foreach\k in{1,2,3,4,5}\coordinate[label=above right:$0$](Y\k)at($\k*(P)+(Q)$);
\coordinate[label=above right:$4$](Z)at(0,2);
\foreach\k in{1,2,3,4,5}\coordinate[label=above right:$3$](Z\k)at($\k*(P)+(Z)$);
\coordinate(W)at(0,3);
\foreach\k in{0,1,2,3,4,5}\coordinate[label=above right:$2$](W\k)at($\k*(P)+(W)$);
\draw(-0.3,3.5)--(0.5,3.5)--(0.5,2.5)--(1.5,2.5)--(1.5,1.5)--(2.5,1.5)--(2.5,0.5)--(3.5,0.5)--(3.5,-0.3);
\draw [-{Stealth[length=3mm]}] (0.1,0.95) -- (1.9,0.1);
\coordinate[label=above right:$d_2$](d)at(1.2,0.4);
\draw [-{Stealth[length=3mm]}] (0.1,2.95) -- (1.9,2.1);
\coordinate[label=above right:$d_2$](d)at(1.2,2.4);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=3.14mm]{standalone}
\begin{document}
\begin{tikzpicture}[vertex/.style={draw,circle},arc/.style={draw,thick,->}]
\foreach[count=\i]\k in{(4,3),(9,1),(2,7),(10,2),(9,2),(7,3),(7,4),(1,7),(5,5)}\node[vertex](p\i)at\k{\ifnum\i=9 0\else\i\fi};
\foreach\s/\t/\o in{1/9/,2/5/,3/1/,4/2/,5/6/,6/7/,7/9/,8/3/,9/4/bend left,9/8/}\draw[arc](p\s)edge[\o](p\t);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.markings}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{tikzpicture}[level 1/.style={sibling distance=25mm}, level 2/.style={sibling distance=8mm}, level 3/.style={sibling distance=10mm}]
\node [rectangle,draw] (a){$bacbaabada\$$}child {node [rectangle,draw] (b) {$bac$}child {node (c) {$b$}}child {node (d) {$a$}}child {node (e) {$c$}}}child {node [rectangle,draw] (f) {$baab$}child {node (g) {$b$}}child {node [rectangle,draw] (h) {$aa$}child {node (q) {$a$}}child {node (r) {$a$}}}child {node (i) {$b$}}}child {node [rectangle,draw] (j) {$ad$}child {node (k) {$a$}}child {node (l) {$d$}}}child {node (m) {$a$}}child {node (o) {$\$$}child [grow=right] {node (s) {$k = 1$} edge from parent[draw=none]child [grow=down] {node (u) {$k = 2$} edge from parent[draw=none]child [grow=down] {node (v) {$k = 3$} edge from parent[draw=none]}}child [grow=up] {node (t) {$k = 0$} edge from parent[draw=none]}}};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\tikz \graph {
a -> { [nodes=red]
b, c
} ->
d
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[view={60}{30}]
\addplot3 [
surf,
shader=flat,
samples=20,
domain=-1:0,
y domain=0:2*pi,
z buffer=sort,
] (
{sqrt(1-x^2) * cos(deg(y))},
{sqrt(1-x^2) * sin(deg(y))},
x
);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{automata}
\begin{document}
\begin{tikzpicture}[thick]
\node[state] (1) {$1$};
\draw [->] (1) to[loop above] node[auto] {} (1);
\draw [->] (1) to[bend left] node[auto] {} ++ (-2,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}\tkzSetUpLine[line width=.2pt]\tikzset{every picture/.style={line width=.2pt}
,label style/.append style={below,color=teal,font=\scriptsize}}
\begin{document}
\begin{tikzpicture}
\tkzDefPoints{0/0/A,2/4/B,4/0/C,3/2/D}\tkzDrawSegments(A,B A,C A,D){\tkzSetUpPoint[shape=cross out,fill=teal!50,size=4,color=teal]\tkzDrawPoints(A,B)}\tkzSetUpPoint[fill=teal!50,size=4,color=teal]\tkzDrawPoints(C,D)\tkzLabelPoints(A,B,C,D)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\tikzset{
auto,
semithick
}
\begin{document}
\begin{tikzpicture}[auto=center, every node/.style={circle, fill=white}]
\node[draw, fill=blue!20] (r) at (0,4) {$r$};
\node[draw, fill=blue!20] (r1) at (-2,2) {$r_1$};
\node[draw] (r2) at (2,2) {$r_2$};
\node[draw, fill=blue!20] (q11) at (-3,0) {$q_{1_1}$};
\node[draw, fill=blue!20] (q12) at (-1,0) {$q_{1_2}$};
\node[draw] (q21) at (1,0) {$q_{2_1}$};
\node[draw] (q22) at (3,0) {$q_{2_2}$};
\draw (r) -- (r1);
\draw (r) -- (r2);
\draw (r1) -- (q11);
\draw (r1) -- (q12);
\draw (r2) -- (q21);
\draw (r2) -- (q22);
\node[draw, fill=blue!20] (rr) at (8,4) {$r$};
\node[draw] (rr1) at (6,2) {$r_1$};
\node[draw, fill=blue!20] (rr2) at (10,2) {$r_2$};
\node[draw] (qq11) at (5,0) {$q_{1_1}$};
\node[draw] (qq12) at (7,0) {$q_{1_2}$};
\node[draw, fill=blue!20] (qq21) at (9,0) {$q_{2_1}$};
\node[draw, fill=blue!20] (qq22) at (11,0) {$q_{2_2}$};
\draw (rr) -- (rr1);
\draw (rr) -- (rr2);
\draw (rr1) -- (qq11);
\draw (rr1) -- (qq12);
\draw (rr2) -- (qq21);
\draw (rr2) -- (qq22);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
groupplots
}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[
group style={
group name=my plots,
group size=2 by 2,
},
width=4cm,height=4cm,
]
\nextgroupplot
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot
\addplot coordinates {(0,0) (1,2) (2,1)};
\nextgroupplot
\addplot coordinates {(0,0) (1,2) (2,1)};
\end{groupplot}
\draw (my plots c1r1.east)
circle (3pt) node {East};
\draw (my plots c2r1.north)
circle (3pt) node {north};
\draw (my plots c1r2.center)
circle (3pt) node {center};
\draw (my plots c2r2.north west)
circle (3pt) node {North west};
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=2mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{semilogxaxis}[
xmin = 0.06, xmax = 60,
height = 8cm,
width = 8cm,
xlabel = {Sieve opening, (mm)},
ylabel = {Sieve passing, (\%)},
grid = both,
yticklabel pos=left,
ymin = 0, ymax = 100,
ytick = {0,10,...,100},
ticklabel style = {font=\tiny},
extra x ticks = {0.06,0.2,0.6,2,60},
log number format code/.code={
\pgfset{number format/fixed}
\pgfmathparse{exp(#1)}
${\pgfmathprintnumber{\pgfmathresult}}$
}
]
\addplot [color=black, mark=none, thick, smooth]
coordinates
{
(2, 100)
(1.18, 99.19899337)
(0.8, 97.38828873)
(0.6, 94.17812423)
(0.425, 74.5948932)
(0.3, 38.14755708)
(0.212, 14.63908667)
(0.15, 4.364105082)
(0.063, 1.242941321)
};
\end{semilogxaxis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\tikzset{
help lines/.style={gray,very thin}
}
\begin{document}
\begin{tikzpicture}[paint/.style={draw=#1!75, fill=#1!20}]
\tikzset{every node/.style={isosceles triangle, draw, inner sep=0pt,
anchor=south, shape border rotate=90, isosceles triangle stretches}}
\draw[help lines] grid(4,2);
\foreach \a/\c in {1.5/blue, 1/green, 0.5/red}{
\node[paint=\c, minimum height=\a cm, minimum width=1.5cm] at (0.75,0) {};
\node[paint=\c, minimum width=\a cm, minimum height=1.5cm] at (3,0) {};
}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{label/align = rotate}
\def\DIR{0,45,90,135,180,-90,-45,-135}
\foreach \i in \DIR {
\draw (0,0) to[R=\i, *-o] (\i:2.5);
}
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
shapes.geometric,
positioning
}
\begin{document}
\begin{tikzpicture}
\node[dart, draw, gray, shape border uses incircle, shape border rotate=45]
(d) {dart};
\draw [<->] (d.tip)++(202.5:.5cm) arc(202.5:247.5:.5cm);
\node [left=.5cm] at (d.tip) {tip angle};
\draw [<->] (d.tail center)++(157.5:.5cm) arc(157.5:292.5:.5cm);
\node [right] at (d.tail center) {tail angle};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs, quotes}
\tikzset{>=stealth}
\begin{document}
\tikz \graph {
a [< red] -> b -- {c [> blue], d [> "bar"']};
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{smithchart}
\begin{document}
\begin{tikzpicture}
\begin{smithchart}[
title=Impedance and Admittance Smith Chart,
smithchart mirrored,
xticklabel shift=-19pt,
grid style={blue},
ticklabel style={blue},
yticklabel around circle,
]
\end{smithchart}
\begin{smithchart}[
show origin,
grid style={red},
ticklabel style={red},
yticklabel around circle*,
]
\addplot+ [black,mark=o,only marks,point meta=explicit symbolic,nodes near coords]
coordinates {
(0.2,0.2) [(2)]
(1,0.2) [(1)]
};
\addplot+ [black,no markers,domain=0.2:1] {0.2};
\addplot+ [black,mark=o,only marks,point meta=explicit symbolic,nodes near coords]
coordinates{
(0.2,0.5) [(3)]
};
\end{smithchart}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\begin{document}
\tikz \datavisualization data group {function classes} = {
data [set=log, format=function] {
var x : interval [0.2:2.5];
func y = ln(\value x);
}
data [set=lin, format=function] {
var x : interval [-2:2.5];
func y = 0.5*\value x;
}
data [set=squared, format=function] {
var x : interval [-1.5:1.5];
func y = \value x*\value x;
}
data [set=exp, format=function] {
var x : interval [-2.5:1];
func y = exp(\value x);
}
};
\tikz \datavisualization [
school book axes, all axes={unit length=7.5mm},
visualize as smooth line/.list={log, lin, squared, exp},
style sheet=vary thickness and dashing,
style sheet=vary hue]
data group {function classes};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amssymb}
\usepackage[table, dvipsnames]{xcolor}
\usepackage{amsmath}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\begin{axis}[grid=both,ymin=94, ymax=100,xmin=300, xmax=3000,xtick={300, 900, 1500, 2100, 3000},extra x ticks ={1500},extra x tick labels={\begin{tabular}[c]{@{}c@{}} \\ (2.1\textpertenthousand{})\end{tabular} },xlabel=Number of sub-clouds,ylabel=OA (\%),legend style={at={(0.7,0.3)},anchor=north}]\addplot[mark=square, mark size=3pt, Green] plot coordinates { (300,94.47) (600,95.29) (900,96.69) (1200,96.36) (1500,96.92) (1800,97.06) (2100,97.21) (2400,97.07) (2700,97.42) (3000,97.14)};
\addlegendentry{Baseline}\addplot[mark=triangle, mark size=3pt, NavyBlue] plot coordinates { (300,96.77) (600,97.53) (900,97.96) (1200,98.12) (1500,98.57) (1800,98.51) (2100,98.70) (2400,98.71) (2700,98.56) (3000,98.59)};
\addlegendentry{Ours}\addplot[dashed, YellowOrange,line width=2pt, domain=300:3000] {98.31};
\addlegendentry{Full supervision}
\end{axis}
\end{tikzpicture}
\end{document}