AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[>=latex,L/.style={->,thick},M/.style={draw,rectangle,very thick,dashed},P/.style={draw,rectangle,rounded corners,fill=yellow}]
\node[M](f2f3)at(1,5){$F_2 \wedge F_3$};
\node[M](f1f3)at(3.5,5){$F_1 \wedge F_3$};
\node[M](f1f2)at(6,5){$F_1 \wedge F_2$};
\node[P](f1)at(1,4){$F_1$};
\node[P](f2)at(3.5,4){$F_2$};
\node[P](f3)at(6,4){$F_3$};
\node[M](s1s2)at(1,3){$S_1 \vee S_2$};
\node[M](s2s3)at(3.5,3){$S_2 \vee S_3$};
\node[M](s1s3)at(6,3){$S_1 \vee S_3$};
\node[P](s1)at(1,1){$S_1$};
\node[P](s2)at(3.5,1){$S_2$};
\node[P](s3)at(6,1){$S_3$};
\node[M](ns1)at(2,0.5){$\neg S_1$};
\node[M](ns2)at(4.5,0.5){$\neg S_2$};
\node[M](ns3)at(7,0.5){$\neg S_3$};
\node[P](c1)at(1,0){$C_1$};
\node[P](c2)at(3.5,0){$C_1$};
\node[P](c3)at(6,0){$C_1$};
\draw[L](f2f3)--(f1);
\draw[L](f1f3)--(f2);
\draw[L](f1f2)--(f3);
\draw[L](f1)--(f1f3);
\draw[L](f2)--(f2f3);
\draw[L](f2)--(f1f2);
\draw[L](f3)--(f1f3);
\draw[L](f3)to[out=-160,in=-40](f2f3);
\draw[L](f1)to[out=-20,in=-140](f1f2);
\draw[L](f1)--(s1s2);
\draw[L](f2)--(s2s3);
\draw[L](f3)--(s1s3);
\draw[L](s1)--(c1);
\draw[L](s2)--(c2);
\draw[L](s3)--(c3);
\draw[L](s1s2)to[out=-80,in=80](s1);
\draw[L](s1)to[out=100,in=-100](s1s2);
\draw[L](s2s3)to[out=-80,in=80](s2);
\draw[L](s2)to[out=100,in=-100](s2s3);
\draw[L](s1s3)to[out=-80,in=80](s3);
\draw[L](s3)to[out=100,in=-100](s1s3);
\draw[L](s1s2)to[out=-50,in=160](s2);
\draw[L](s2)--(s1s2);
\draw[L](s2s3)to[out=-50,in=160](s3);
\draw[L](s3)--(s2s3);
\draw[L](s1s3)to[out=-150,in=10](s1);
\draw[L](s1)--(s1s3);
\draw[L](s1)--(ns1);
\draw[L](s2)--(ns2);
\draw[L](s3)--(ns3);
\draw[L](ns1)--(c1);
\draw[L](ns2)--(c2);
\draw[L](ns3)--(c3);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}
\node foreach \name/\angle in {a/0,b/90,c/180,d/270}
(\name) at (\angle:1) {$\name$};
\path[->] (b) edge (a)
edge (c)
edge [-,dotted] (d)
(c) edge (a)
edge (d)
(d) edge (a);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,graphs}
\tikzset{>=stealth}
\begin{document}
\tikz\graph{a->{b,c}->{d,e}--f};
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\newcommand{\RectangleforHamif}[1]{\draw(O)rectangle($(O)+(dX)+(0,#1)$);
\coordinate(O) at ($(O)+(dX)$);
}
\begin{document}
\usetikzlibrary{calc}
\begin{tikzpicture}[scale=1]
\coordinate(O)at(0,0);
\coordinate(dX)at(0.5,0);
\newcommand{\RectangleforHamif}[1]{\draw(O)rectangle($(O)+(dX)+(0,#1)$);
\coordinate(O) at ($(O)+(dX)$);
}
\draw [<->] (0,4) -- (0,0) -- (7,0);
\foreach \i in {0.8,1.1,1.4,1.7,2}{\RectangleforHamif{\i}}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[nodes near coords]\addplot+[only marks]coordinates{(0.5,0.2)(0.2,0.1)(0.7,0.6)(0.35,0.4)(0.65,0.1)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
statistics,
}
\usepackage{amsmath,amssymb}
\pgfplotstableread{
dof l2_err level
5 8.312e-02 2
17 2.547e-02 3
49 7.407e-03 4
129 2.102e-03 5
321 5.874e-04 6
769 1.623e-04 7
1793 4.442e-05 8
4097 1.207e-05 9
9217 3.261e-06 10
}\datadatadB
\pgfplotstableread{
dof l2_err level
7 8.472e-02 2
31 3.044e-02 3
111 1.022e-02 4
351 3.303e-03 5
1023 1.039e-03 6
2815 3.196e-04 7
7423 9.658e-05 8
18943 2.873e-05 9
47103 8.437e-06 10
}\datadatadC
\pgfplotstableread{
dof l2_err level
9 7.881e-02 2
49 3.243e-02 3
209 1.232e-02 4
769 4.454e-03 5
2561 1.551e-03 6
7937 5.236e-04 7
23297 1.723e-04 8
65537 5.545e-05 9
178177 1.751e-05 10
}\datadatadD
\pgfplotstableread{
dof l2_err level
9 7.881e-02 2
49 3.243e-02 3
209 1.232e-02 4
769 4.454e-03 5
2561 1.551e-03 6
7937 5.236e-04 7
23297 1.723e-04 8
65537 5.545e-05 9
178177 1.751e-05 10
}\datadatadDa
\begin{document}
\begin{tikzpicture}
\begin{loglogaxis}[
title=Convergence Plot,
xlabel={Degrees of freedom},
ylabel={$L_2$ Error},
grid=major,
legend entries={$d=2$,$d=3$,$d=4$},
]
\addplot table {\datadatadB};
\addplot table {\datadatadC};
\addplot table {\datadatadD};
\addplot table [
x=dof,
y={create col/linear regression={y=l2_err,
variance list={1000,800,600,500,400,200,100}}}]
{\datadatadDa};
\end{loglogaxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\tikzset{treenode/.style = {shape=rectangle, rounded corners, draw, align=center, top color=white, bottom color=blue!20}
, root/.style = {treenode, font=\Large, bottom color=red!30}, env/.style = {treenode, font=\ttfamily\normalsize}, dummy/.style = {circle,draw}}\usetikzlibrary{plotmarks}
\begin{document}
\begin{tikzpicture}[scale=0.5, domain=0:10]
\draw[very thin,color=lightgray] (-0.1,-0.1) grid (10.1,10.1);
\draw[->,color=gray] (-0.1,0) -- (10.1,0) node[right] {$f_1$};
\draw[->,color=gray] (0,-0.1) -- (0,10.1) node[above] {$f_2$};
\draw[domain=0:7.83078,smooth,variable=\x, color=green, thick=1] plot ({\x},{-1.02051*\x + 7.99139}) node[above left] {};
\draw[domain=1:9,smooth,variable=\x, opacity=0.7, thin] plot ({\x},{23/180*\x*\x-413/180*\x+67/6}) node[above] {$f(x_1, u_1, \mathcal{Y})_N$};
\draw[domain=0.2:6,smooth,variable=\x, opacity=0.7, thin] plot ({\x},{3/32*\x*\x-21/16*\x+263/32}) node[above right] {$f(x_1, u_2, \mathcal{Y})_N$};
\draw[domain=1:4.98498,smooth,variable=\x, color=red, very thick, dashed] plot ({\x},{23/180*\x*\x-413/180*\x+67/6}) node[right] {$im^f(\Lambda)$};
\draw[domain=1.5573:6,smooth,variable=\x, color=red, very thick, dashed] plot ({\x},{3/32*\x*\x-21/16*\x+263/32}) node[above right] {};
\draw[fill=green, opacity=0.3] (4.98498,-1.02051*4.98498 + 7.99139) circle (0.1);
\draw[fill=green, opacity=0.3] (1.5573,-1.02051*1.5573 + 7.99139) circle (0.1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsthm}
\usepackage[dvipsnames]{xcolor}
\usepackage[T1]{fontenc}
\usepackage{pgf,tikz}
\usepackage{tikz}
\usetikzlibrary{calc,decorations.pathmorphing}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfdeclarelayer{front}
\pgfsetlayers{background,main,foreground,front}
\begin{document}
\begin{tikzpicture}
[line width = .5pt,
vtx/.style={circle,draw,black,very thick,fill=black, line width = 3pt, inner sep=2pt},
]
\node[vtx] (v1) at (1,4) {};
\node[vtx] (v2) at (2,5) {};
\node[vtx] (v3) at (3,6) {};
\node[vtx] (v4) at (4,9) {};
\node[vtx] (v5) at (5,8) {};
\node[vtx] (v6) at (6,7) {};
\node[vtx] (v7) at (7,1) {};
\node[vtx] (v8) at (8,2) {};
\node[vtx] (v9) at (9,3) {};
\node[vtx] (v10) at (10,12) {};
\node[vtx] (v11) at (11,11) {};
\node[vtx] (v12) at (12,10) {};
\draw[line width=0.75mm, color=black] (v1) -- (v2) -- (v3) -- (v4) -- (v5) -- (v6) -- (v7) -- (v8) -- (v9) -- (v10) -- (v11) -- (v12);
\draw[dashed, line width=0.6mm, color=black] (v12) -- (13,5);
\draw[color=gray] (0,6.5) -- (13,6.5);
\draw[color=gray] (0,9.5) -- (13,9.5);
\draw[color=gray] (0,3.5) -- (13,3.5);
\fill[fill=black] (v1) circle (0.1) node [right] {\Large{$\; \pi(1)$}};
\fill[fill=black] (v2) circle (0.1) node [right] {\Large{$\; \pi(2)$}};
\fill[fill=black] (v3) circle (0.1) node [right] {\Large{$\; \pi(3)$}};
\fill[fill=black] (v4) circle (0.1) node [right] {\Large{$\; \pi(4)$}};
\fill[fill=black] (v5) circle (0.1) node [right] {\Large{$\; \pi(5)$}};
\fill[fill=black] (v6) circle (0.1) node [right] {\Large{$\; \pi(6)$}};
\fill[fill=black] (v7) circle (0.1) node [right] {\Large{$\; \pi(7)$}};
\fill[fill=black] (v8) circle (0.1) node [right] {\Large{$\; \pi(8)$}};
\fill[fill=black] (v9) circle (0.1) node [right] {\Large{$\; \pi(9)$}};
\fill[fill=black] (v10) circle (0.1) node [right] {\Large{$\; \pi(10)$}};
\fill[fill=black] (v11) circle (0.1) node [right] {\Large{$\; \pi(11)$}};
\fill[fill=black] (v12) circle (0.1) node [right] {\Large{$\; \pi(12)$}};
\draw[line width=1.25mm, color=black] (v1) -- (v3);
\draw[line width=1.25mm, color=black] (v4) -- (v6);
\draw[line width=1.25mm, color=black] (v7) -- (v9);
\draw[line width=1.25mm, color=black] (v10) -- (v12);
\fill[fill=black] (2,5.2) circle (0.0) node [left] {\Large{$-\overleftarrow{A_1}\ $}};
\fill[fill=black] (5.1,7.55) circle (0.0) node [left] {\Large{$\overleftarrow{A_2}\ $}};
\fill[fill=black] (8.1,2.6) circle (0.0) node [left] {\Large{$-\overleftarrow{A_3}\!$}};
\fill[fill=black] (11.1,10.55) circle (0.0) node [left] {\Large{$\overleftarrow{A_4}\,$}};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pgf,tikz,pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}[line cap=round,line join=round,x=1cm,y=1cm,scale=0.4]
\clip(-9.7,-9) rectangle (10,8);
\draw [shift={(0,-0.5)},line width=0.8pt,color=black,fill=black,fill opacity=0.10000000149011612] (0,0) -- (93.81407483429037:0.2703580656096896) arc (93.81407483429037:180:0.2703580656096896) -- cycle;
\draw [line width=0.8pt] (-1,-0.5) circle (7.516648189186455cm);
\draw [line width=0.8pt] (0,-0.5) circle (7.516648189186455cm);
\fill[gray!40,even odd rule] (0,-0.5) circle (7.516648189186455cm) (-1,-0.5) circle (7.516648189186455cm);
\draw [line width=0.8pt] (-1,-0.5)-- (0,-0.5);
\draw [line width=0.8pt] (-1,-0.5)-- (-0.5,7);
\draw [line width=0.8pt] (-0.5,7)-- (0,-0.5);
\draw [line width=0.8pt] (-1,-0.5)-- (-0.5,-8);
\draw [line width=0.8pt] (0,-0.5)-- (-0.5,-8);
\begin{scriptsize}\draw [fill=black] (-1,-0.5) circle (2.5pt);
\draw[color=black] (-1.5623813401027786,-0.35512488171559686) node {\large{$A$}};
\draw [fill=black] (-0.5,7) circle (2.5pt);
\draw[color=black] (-0.5,7.53) node {\large{$C$}};
\draw [fill=black] (0,-0.5) circle (2.5pt);
\draw[color=black] (0.438268345408925,-0.3821606882765659) node {\large{$B$}};
\draw[color=black] (-0.5,-0.82) node {$\varepsilon$};
\draw [fill=black] (-0.5,-8) circle (1.5pt);
\draw[color=black] (-0.5,-8.5) node {\large{$D$}};
\draw[color=black] (0.14087447323826635,-4.0590303805683545) node {\large{$r$}};
\draw[color=black] (-0.3,-0.1) node {$\theta$};
\end{scriptsize}
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=2pt]{standalone}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\node (A) [draw, circle] at (0,0){$Q_1$};
\draw (A) edge [loop above] (A);
\node (B) [draw, circle] at (2,0){$Q_1$};
\node (C) [draw, circle] at (4,0){$Q_2$};
\draw (B) edge [bend left, arrows = -Stealth] (C);
\draw (C) edge [bend left, arrows = -stealth] (B);
\draw (5,2)--(5,-2);
\node (D) [draw, circle] at (6,0){$Q_1$};
\node (E) [draw, circle] at (8,0){$Q_2$};
\node (F) [draw, circle] at (7,1.4){$Q_n$};
\draw (D) edge [bend right, arrows = -Stealth] (E);
\draw (E) edge [bend right, arrows = -stealth, dotted] node[right]{$n-2$ times} (F);
\draw (F) edge [bend right, arrows = -stealth] (D);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
plotmarks
}
\begin{document}
\tikz \datavisualization [
school book axes, visualize as line/.list={a,b},
legend={up then right},
style sheet=vary dashing,
style sheet=cross marks,
a={label in legend={text=a,
label in legend line coordinates={
(-2em,-.2ex), (-1em,.2ex), (0,-.2ex)},
label in legend mark coordinates={
(-1em,.2ex)}}},
b={label in legend={text=b,
label in legend line coordinates={
(-2em,-.2ex), (-1em,.2ex), (0,-.2ex)},
label in legend mark coordinates={
(-2em,-.2ex), (0,-.2ex)}}}]
data point [x=-1, y=-1, set=a] data point [x=1, y=0, set=a]
data point [x=-1, y=1, set=b] data point [x=1, y=0.5, set=b];
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\tikzstyle{vertex}=[circle,draw,minimum size=1.2em,inner sep=0.2]
;
\node[vertex](x1)at(0,1.3){$x_1$};
\node[vertex](x2)at(1.3,1.3){$x_2$};
\node[vertex](x3)at(1.3,0){$x_3$};
\node[vertex](x4)at(0,0){$x_4$};
\draw(x4)--(x1)--(x2);
\draw(x1)--(x3)--(x2);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb,latexsym,amsmath,amscd,amsthm,amsfonts,enumerate}
\usepackage{xcolor}
\usepackage{tikz,tikz-cd}
\usetikzlibrary{calc,matrix,arrows,decorations.pathmorphing,snakes,shapes.geometric,positioning,decorations.pathreplacing,shapes,shadows}
\newcommand{\aaa}{{\bf{a}
}}\newcommand{\za}{\alpha}
\newcommand{\zb}{\beta}
\newcommand{\zg}{\gamma}
\begin{document}
\begin{tikzpicture}[>=stealth,scale=1]
\draw[red!50,thick](0,0)--(-1.5,3);
\draw[red!50,thick](0,0)--(1.5,3);
\draw[thick,bend right,->](0.2,0.35)to(-0.2,0.35);
\node [] at (0,.6) {\tiny$\aaa$};
\draw[thick,blue] (0,0) circle (1);
\node [blue] at (.8,0) {\tiny$\za$};
\draw[thick]plot [smooth,tension=1] coordinates {(0,3) (-1.5,0) (0,-1.5) (1.3,0) (0,1.5) (-2,0) (0,-2) (2,0) (0,3)};
\node [] at (1.6,0) {\tiny$\zb$};
\draw[thick,purple]plot [smooth,tension=1] coordinates {(0,3) (-2.5,0) (0,-2.5) (2.5,0) (0,3)};
\node [purple] at (2.8,0) {\tiny$\zg$};
\node [] at (-1.4,1.4) {\tiny$q$};
\node [] at (-1.17,1.2) {\tiny$\bullet$};
\draw[thick,fill=white] (0,3) circle (0.06);
\draw[red,thick,fill=red] (0,0) circle (0.06);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions,
plotmarks
}
\begin{document}
\tikz \datavisualization
[scientific axes=clean,
visualize as smooth line=sin,
sin={style={red, densely dotted}},
visualize as smooth line=cos,
cos={style={mark=x}},
]
data [set=sin, format=function] {
var x : interval[0:3*pi];
func y = sin(\value x r);
}
data [set=cos, format=function] {
var x : interval[0:3*pi];
func y = cos(\value x r);
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{colortbl}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}[scale=0.65]
\begin{semilogxaxis}[xlabel=Epochs,ylabel=Test Accuracy,ymin=93.5,ymax=94.5,ymajorgrids,xmajorgrids,legend style={at={(0.03,0.03)},anchor=south west}]\addplot[color=teal,mark=square*] coordinates {(1, 94.1) (5, 94.16) (20, 94.21) (40, 94.0)};
\addplot[color=green,mark=square*] coordinates {(1, 94.25) (5, 94.03) (20, 94.14) (40, 94.06)};
\addplot[color=olive,mark=square*] coordinates {(1, 94.17) (5, 93.87) (20, 93.93) (40, 93.77)};
\legend{Batch size = 256, Batch size = 4k, Batch size = 10k}
\end{semilogxaxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [fill] coordinates {
(0,1) (1,2) (0,3) (-1,2)
}
--cycle
;
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, bending}
\newcommand{\bt}{\beta}
\begin{document}
\begin{tikzpicture}[scale=0.75]
\draw (0,0) circle [radius=2];
\draw[blue,thick] (-1.73,-1)--(1.73,-1);
\draw[red,thick] (-1.73,1)--(1.73,1);
\draw[red,fill=red] (-1.73,1) circle [radius=0.1];
\draw[red,fill=red] (1.73,1) circle [radius=0.1];
\draw[blue,fill=blue] (-1.73,-1) circle [radius=0.1];
\draw[blue,fill=blue] (1.73,-1) circle [radius=0.1];
\draw[stealth-stealth,dashed] (1.9,1.1) arc (30:150:2.2);
\draw (0,2.2) node [above]{$\textcolor{red}{\tau_{34}}$};
\draw[stealth-stealth] (1.9,1.1) arc (30:-210:2.2);
\draw (0,-2.4) node [below]{$\textcolor{blue}{\tau_{12}}$};
\draw[stealth-stealth,dashed] (2.08,-1.2) arc (-30:-150:2.4);
\draw (-3.5,-0.5) node [left]{$\textcolor{red}{\bt-\tau_{34}}$};
\draw[->] (-3.5,-0.4)--(-2.3,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=2mm]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[black, ultra thick] (2,-2) -- (2,2);
\draw[black, ultra thick] (0,-2) -- (0,2);
\draw[dashed, thick] (0,0) -- (2,0);
\draw[black, thick] (0,0) -- (0.66,0);
\draw[dashed, thick] (0.66,0) -- (2,1);
\draw[black, thick] (1.32,0) -- (2,-1);
\filldraw[black] (2,1) circle (3pt) node[anchor=west]{};
\filldraw[black] (2,-1) circle (3pt) node[anchor=west]{};
\filldraw[black] (0,0) circle (3pt) node[anchor=west]{};
\filldraw[black] (0.66,0) circle (3pt) node[anchor=west]{};
\filldraw[black] (1.32,0) circle (3pt) node[anchor=west]{};
\filldraw[black] (2,0) circle (3pt) node[anchor=west]{};
\node at (1,-2.5) {(n)};
\end{tikzpicture}
\end{document}
\documentclass[varwidth,border=5]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\foreach\a in{20,45,60,180,405,-45}{
\begin{tikzpicture}[scale=4]
\coordinate[label=below:$O$](O)at(0,0);
\coordinate[label=$X$](X)at(1,0);
\coordinate[label=$Y$](Y)at(cos \a,sin \a);
\draw(Y)--(O)--(X);
\path let\p1=(O),\p2=(Y),\p3=(X),\n1={atan2(\y2-\y1,\x2-\x1)},\n2={atan2(\y3-\y1,\x3-\x1)}in node at(X)[right]{\pgfmathparse{int(abs(\n2-\n1))}$\angle YOX=\pgfmathresult^\circ$};
\end{tikzpicture}\\}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[-] (-3,1.5) -- (-1.5,0.75);
\draw[-] (-1.5,0.75) -- (0,0);
\draw[-] (0,0) -- (1.5,-0.75);
\draw[-] (1.5,-0.75) -- (3,-1.5);
\draw[-] (-3,-1.5) -- (-1.5,-0.75);
\draw[-] (-1.5,-0.75) -- (0,0);
\draw[-] (0,0) -- (1.5,0.75);
\draw[-] (1.5,0.75) -- (3,1.5);
\draw (-2.25,1.125) node[red,above right,scale=0.75] {$1$};
\draw (-0.75,0.375) node[red,above right,scale=0.75] {$2$};
\draw (0.75,-0.375) node[red,below left,scale=0.75] {$3$};
\draw (2.25,-1.125) node[red,below left,scale=0.75] {$4$};
\draw (2.25,1.125) node[red,above left,scale=0.75] {$5$};
\draw (0.75,0.375) node[red,above left,scale=0.75] {$6$};
\draw (-0.75,-0.375) node[red,below right,scale=0.75] {$7$};
\draw (-2.25,-1.125) node[red,below right,scale=0.75] {$8$};
\draw[black] (0.89,0.45) arc (26.57:-26.57:1);
\draw (0.3,0) node[black,right,scale=0.75] {$\alpha_i$};
\draw (-3,1.5) node[black,above,scale=0.75] {$\gamma(u_i-\theta)$};
\draw (3,-1.5) node[black,below,scale=0.75] {$\gamma(u_i+\theta)$};
\draw (-3,-1.5) node[black,below,scale=0.75] {$\gamma(v_i+\theta)$};
\draw (3,1.5) node[black,above,scale=0.75] {$\gamma(v_i-\theta)$};
\draw (-1.5,0.75) node[black,above right,scale=0.75] {$\gamma(u_i-\delta)$};
\draw (1.5,-0.75) node[black,below left,scale=0.75] {$\gamma(u_i+\delta)$};
\draw (-1.5,-0.75) node[black,below right,scale=0.75] {$\gamma(v_i+\delta)$};
\draw (1.5,0.75) node[black,above left,scale=0.75] {$\gamma(v_i-\delta)$};
\fill[black] (-3,1.5) circle (2pt);
\fill[black] (-3,-1.5) circle (2pt);
\fill[black] (3,1.5) circle (2pt);
\fill[black] (3,-1.5) circle (2pt);
\fill[black] (0,0) circle (2pt);
\fill[black] (-1.5,0.75) circle (2pt);
\fill[black] (-1.5,-0.75) circle (2pt);
\fill[black] (1.5,0.75) circle (2pt);
\fill[black] (1.5,-0.75) circle (2pt);
\draw (-0.2,0) node[black,left,scale=0.75] {$\gamma(u_i)=\gamma(v_i)$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}\addplot+[scatter,only marks,samples=50,scatter src=y]{x-x^2};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{automata, arrows}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node[state] (q1) {$\varphi(s_1) = \varphi$};
\node[state, right=1in of q1] (q2) {$\varphi(s_2)=\varphi$};
\draw[->] (q1) edge[above] node{$r=1$} (q2) (q2) edge[loop above] node{$r=0$} (q2);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\tikzset{
item/.style={minimum size=.5cm},
customer/.style={item, fill=green!50},
server/.style={item, fill=orange!50},
}
\begin{document}
\begin{tikzpicture}
\def\width{1.1cm}
\def\height{1.1cm}
\node[customer] (1) {2};
\node[customer] (2) at ($(1)+(\width,0)$) {3};
\node[customer] (3) at ($(2)+(\width,0)$) {4};
\node[customer] (4) at ($(3)+(\width,0)$) {1};
\node[customer] (5) at ($(4)+(\width,0)$) {2};
\node[customer] (6) at ($(5)+(\width,0)$) {1};
\node[customer] (7) at ($(6)+(\width,0)$) {4};
\node[server] (A) at ($(1)+(0,-\height)$) {A};
\node[server] (B) at ($(2)+(0,-\height)$) {E};
\node[server] (C) at ($(3)+(0,-\height)$) {D};
\node[server] (D) at ($(4)+(0,-\height)$) {D};
\node[server] (E) at ($(5)+(0,-\height)$) {B};
\node[server] (F) at ($(6)+(0,-\height)$) {A};
\node[server] (G) at ($(7)+(0,-\height)$) {C};
\draw[-, blue]
(1.south) -- (E.north) -- (5.south)
-- (G.north) -- (7.south)
-- (D.north) -- (4.south) -- (A.north)
-- (1.south);
\draw[-, red, densely dashed]
(2.south) -- (C.north) -- (3.south)
-- (B.north) -- (2.south);
\draw[-, violet, densely dashdotted]
(6.south) -- (F.north);
\phantom{
\node at ($(1)-(2cm,0)$) {};
\node at ($(7)+(2cm,0)$) {};
}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}\usepackage{amsmath,amssymb,bm,bbm}\usepackage[utf8]{inputenc}\usepackage[dvipsnames]{xcolor}\usepackage{tikz}\usetikzlibrary{arrows,arrows.meta,intersections,calc,positioning,decorations.pathreplacing,decorations.pathmorphing,shapes,patterns,decorations.markings,knots}
\begin{document}\begin{tikzpicture}[>=stealth]
\draw[fill=gray!20] (-2,0) circle (1.5cm);
\draw[RedOrange, very thick] (-2, 0) ellipse (1.5cm and 0.5cm);
\node[RedOrange] at (0.2, 0) {$\theta=0$};
\draw[-, RoyalBlue, very thick] (-2, 1.5) -- (-2, -0.45);
\draw[-, RoyalBlue, very thick] (-2, -0.55) -- (-2, -1.5);
\node[RoyalBlue] at (-1.9, 1.8) {$\theta=\pi/2$};
\draw[->] (-2.1, -0.1) --+ (-0.36, -0.36) node[below] {$X_1$};
\draw[->] (-1.9, 0) --+ (0.6, 0) node[right] {$X_2$};
\draw[->] (-2.1, 0.1) --+ (0, 0.7) node[left] {$X_3$};
\node at (-2, -2) {$0 \leq \phi < \pi$};
\begin{scope}[xshift=2cm]
\draw[fill=gray!20] (2,0) circle (1.5cm);
\draw[RedOrange, very thick] (2, 0) ellipse (1.5cm and 0.5cm);
\node[RedOrange] at (4.2, 0) {$\theta=0$};
\draw[-, RoyalBlue, very thick] (2, 1.5) -- (2, -0.45);
\draw[-, RoyalBlue, very thick] (2, -0.55) -- (2, -1.5);
\node[RoyalBlue] at (2.1, 1.8) {$\theta=\pi/2$};
\node at (2.1, -2) {$\pi \leq \phi < 2\pi$};
\end{scope}
\begin{scope}[xshift=1cm]
\draw[->, thick] (240:1) arc (240:300:1) node[midway, below] {paste};
\end{scope}
\end{tikzpicture}\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view/az=45,
colorbar,
colorbar/width=2cm,
colormap/blackwhite,
]
\addplot3 [surf,domain=0:1,y domain=-3:3] {x*(1-x)*tanh(y)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=0pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[area style,axis on top]
\addplot+[mark=none,fill=yellow,draw=none,forget plot]{0.1*x^2}\closedcycle;
\addplot[mark=none,draw=red,line legend]{0.1*x^2};
\addplot[mark=none,draw=blue,line legend]{0*x^2};
\legend{red curve,blue curve}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath, amssymb, amsthm}
\usepackage{tikz}
\usetikzlibrary{automata,positioning,calc,intersections,through,backgrounds,patterns,fit}
\begin{document}
\begin{tikzpicture}[scale=.5]
\coordinate (a) at (0,0);
\coordinate (ac) at (2,0);
\coordinate (b) at (4,0);
\draw (a)-- (ac) -- (b)--++ (120:2)coordinate(bc) --++ (120:2)coordinate(c)--++ (240:2)coordinate(cc) -- cycle;
\draw (c) -- (ac) node[pos=.5, below=.7cm,right]{$ 2\!>\!1$};
\draw (c) -- (ac) node[pos=.5, below=.7cm,left]{$1\!>\!2 $};
\end{tikzpicture}
\end{document}