AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}

% Base packages
\usepackage{amsmath,amssymb}
\usepackage{xfp}

% Color package
\usepackage[dvipsnames,svgnames]{xcolor}

% TikZ base settings
\usetikzlibrary{
calc,
patterns,
patterns.meta,
arrows.meta,
decorations.pathreplacing,
decorations.markings,
backgrounds,
shapes.geometric,
positioning,
intersections,
through,
angles,
quotes,
}

% tkz-base package
\usepackage{tkz-base}

% tkz-euclide package
\usepackage{tkz-euclide}

% Define colors not in xcolor
\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}

% tkz-euclide global settings
\tkzSetUpColors[background=white,text=black]
\tkzSetUpCompass[color=orange, line width=.2pt,delta=10]
\tkzSetUpArc[color=gray,line width=.2pt]
\tkzSetUpPoint[size=2,color=teal]
\tkzSetUpLine[line width=.2pt,color=teal]

% Custom styles
\tikzset{every picture/.style={line width=.2pt}}
\tikzset{new/.style={color=orange,line width=.2pt}}
\tikzset{line style/.style={line width=.2pt}}

\begin{document}
  \begin{tikzpicture}[scale=.75]
    \tkzDefPoints{-2/-2/A,-1/-1/C,-4/2/D,-4/0/O}
    \tkzDrawCircle(O,A)
    \tkzDefPointBy[reflection = over C--D](A)
    \tkzGetPoint{A'}
    \tkzDefPointBy[reflection = over C--D](O)
    \tkzGetPoint{O'}
    \tkzDrawCircle(O',A')
    \tkzDrawLine[add= .5 and .5](C,D)
    \tkzDrawPoints(C,D,O,O')
  \end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\makeatletter\newcommand\currentcoordinate{\the\tikz@lastxsaved,\the\tikz@lastysaved}
\makeatother
\begin{document}
\begin{tikzpicture}
\node (aNodeWithALongName) at (1,1) {a};
\node (bNodeWithALongName) at (1,-1) {b};
\node (c) at (0,0) {c};
\draw[->] (aNodeWithALongName) -- (\currentcoordinate -| c);
\draw[->] (bNodeWithALongName) -- (\currentcoordinate -| c);
\draw[->] ($(aNodeWithALongName)!.5!(bNodeWithALongName)$) -- (\currentcoordinate -| c);
\draw[->] (bNodeWithALongName) -- ++(0, 1cm) -- (\currentcoordinate -| c);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[scale=0.8]
\draw[-,black!40] (-0.5,-0.25) to (1.5,0.75) to (1.5,2.75) to (-0.5,1.75) to (-0.5,-0.25);
\draw[-,fill=white] (0.5,2.25) to (-0.25,1.25) to (-0.25,-0.75) to (0.5,0.25);
\draw[-,fill=white] (0.5,2.25) to (1.75,2.25) to (1.75,0.25) to (0.5,0.25);
\draw[-,red,very thick] (0.5,0.25) to (0.5,2.25);
\node at (2,0) {};
\node at (-0.75,0) {};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}[american,]
\draw (0,-1) node[draw](R){R};
\draw (R.east) node[ocirc, right]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\normalsize \chemfig{H-[:30]O-[:-30]H}
\vspace{6pt}
\setchemfig{atom sep=2.5em}
\chemfig{H-[:30]O-[:-30]H}
\vspace{6pt}
\small \chemfig{H-[:30]O-[:-30]H}
\vspace{6pt}
\footnotesize \chemfig{H-[:30]O-[:-30]H}
\vspace{6pt}
\scriptsize \chemfig{H-[:30]O-[:-30]H}
\vspace{6pt}
\tiny \chemfig{H-[:30]O-[:-30]H}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[black, circle, draw, inner sep=0]
\tikzset{nodes={draw, rounded corners}, minimum height=0.6cm, minimum width=0.6cm}
\node[fill=red!30] (X) at (0,0) {$X$};
\node (Z) at (2.4,0) {$Z$};
\node (W) at (1.2,0) {$W$};
\node[fill=blue!30] (Y) at (1.8,-1.2) {$Y$};
\draw [->, >=latex] (X) -- (Y);
\draw [->, >=latex] (X) -- (W);
\draw [->, >=latex] (W) -- (Z);
\draw [->, >=latex] (W) -- (Y);
\draw [<->, >=latex, dashed] (X) to [out=90, in=90, looseness=1] (Z);
\draw [<->, >=latex, dashed] (W) to [out=-15, in=90, looseness=1] (Y);
\draw [->, >=latex] (X) to [out=165, in=120, looseness=2] (X);
\draw [->, >=latex] (Y) to [out=15, in=60, looseness=2] (Y);
\draw [->, >=latex] (W) to [out=15, in=60, looseness=2] (W);
\draw [->, >=latex] (Z) to [out=15, in=60, looseness=2] (Z);
\draw [<->, >=latex, dashed] (X) to [out=-155, in=-110, looseness=2] (X);
\draw [<->, >=latex, dashed] (Y) to [out=-25, in=-70, looseness=2] (Y);
\draw [<->, >=latex, dashed] (W) to [out=-155, in=-110, looseness=2] (W);
\draw [<->, >=latex, dashed] (Z) to [out=-25, in=-70, looseness=2] (Z);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{circuits.logic.US}
\begin{document}
\begin{tikzpicture}[circuit declare symbol=foo,set foo graphic={draw,shape=rectangle,minimum size=5mm}]
\node[foo]at(1,1){};
\node[foo={red}]at(2,1){};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig[bond style={line width=1pt,red}]{A-B=C>|D<E>:F}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\tikz [ultra thick] \draw [draw=red, fill=red!50, arrows = {-Stealth[length=10pt]}]
(0,0) -- (1,1) -- (2,0);
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[voltage shift=0.5]
\draw (0,0) to[battery, l_=1V, v=$u_1$, i=$i_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.5]
\draw (0,0) rectangle (8,6);
\draw (0,6) -- (2,8) -- (10,8) -- (8,6) -- cycle;
\draw (8,6) -- (10,8) -- (10,14) -- (8,12) -- cycle;
\draw (0,0) -- (2,2) -- (10,2) -- (8,0) -- cycle;
\draw (2,2) -- (2,8) -- (10,8) -- (10,2) -- cycle;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\Vertex{A}\Vertex[x=2]{B}\Vertex[x=2,y=-1]{C}\Edge[path={A,{0,-1},C,B}](A)(B)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[scale=0.77,
squarednode/.style={rectangle, draw=red!60, fill=red!5, very thick, minimum size=3mm},
]
\node[squarednode] (v1) at (4.75,8.5) {$\scriptstyle{(1,v_1)}$};
\node[squarednode] (v2) at (5.75,0.5) {$\scriptstyle{(2,v_2)}$};
\node[squarednode] (v3) at (12.75,8.5) {$\scriptstyle{(3,v_3)}$};
\node[squarednode] (w1) at (9,4) {$\scriptstyle{(\tilde{\ell},w_1)}$};
\node[squarednode] (w2) at (9,5.5) {$\scriptstyle{(\tilde{\ell},w_2)}$};
\node[squarednode] (w3) at (9,7) {$\scriptstyle{(\tilde{\ell},w_3)}$};
\draw[black, very thick] (3.75,4.55+2) rectangle (5.75,8.5+2);
\node at (4.75,6.25) {$V_1$};
\draw[black, very thick] (4.75,0.5-2) rectangle (6.75,4.45-2);
\node at (5.75,-1.85) {$V_2$};
\draw[black, very thick] (11.75,4.55+2) rectangle (13.75,8.5+2);
\node at (12.75,6.25) {$V_3$};
\draw[black, very thick] (8,8) rectangle (10,3);
\node at (9,1.65) {$V_{\tilde{\ell}}$};
\filldraw[color=black!60, fill=black!5, very thick](4.75,10) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](4.75,9.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](4.75,7.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](4.75,7) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](5.75,2) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](5.75,1.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](5.75,-0.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](5.75,-1) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](12.75,10) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](12.75,9.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](12.75,7.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](12.75,7) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,3.35) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,4.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,6) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,6.5) circle (0.02);
\filldraw[color=black!60, fill=black!5, very thick](9,7.65) circle (0.02);
\draw[<-, ultra thick, blue] (w3) -- (v3);
\draw[<-, ultra thick, blue] (v3) -- (w2);
\draw[<-, ultra thick, blue] (w2) -- (v2);
\draw[<-, ultra thick, blue] (v2) -- (w1);
\draw[<-, ultra thick, blue] (w1) -- (v1);
\draw[<-, ultra thick, blue] (v1) -- (w3);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,tikz}
\tikzset{u/.style={circle,draw,fill=white,thick,inner sep=2pt,minimum size=2pt}
}
\begin{document}
\begin{tikzpicture}
\node[u,label=above:1](1){};
\node[u,label=left:1](2)[below left of=1]{};
\node[u,label=right:1](5)[below right of=1]{};
\node[u,label=left:{$N$}](3)[below of=2]{};
\node[u,label=right:{$N$}](4)[below of=5]{};
\node(a)[below of=3]{$\vdots$};
\node(b)[below of=4]{$\vdots$};
\node[u,label=below:1](u1)[below of=a]{};
\node[u,label=below:1](u11)[below of=b]{};
\draw(3)--(a)--(u1);
\draw(4)--(b)--(u11);
\draw(1)--(2)--(3)--(4)--(5)--(1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
x filter/.code={
\pgfmathadd{#1}{0.5},
},
]
\addplot coordinates {
(4,0)
(6,1)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{
arrows.meta,
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[tiny]
\addplot [
blue,
quiver={u=1,v=3*x},
-stealth,
samples=15,
] {x^3};
\addlegendentry{Legend}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\makeatletter\def\tikz@auto@anchor{\pgfmathtruncatemacro\angle{atan2(\pgf@x,\pgf@y)-90}\edef\tikz@anchor{\angle}}\def\tikz@auto@anchor@prime{\pgfmathtruncatemacro\angle{atan2(\pgf@x,\pgf@y)+90}\edef\tikz@anchor{\angle}}\makeatother
\begin{tikzpicture}[every path/.style={line width=1pt}]
\coordinate (X) at (2,4) {};
\foreach \x in { 100,107,114} {\node (tmp\x) at ($(X)+(\x:3)$) {};
\draw[orange!30,fill=orange!30] (X) -- (tmp\x);
}\node[circle,inner sep=2pt,draw,label=107:X] at (X) {};
\node[inner sep=0pt,fill=none] (label/A) at ($(X)+(107:1.0)$) {Y};
\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, i=f] ++(2,0) node[npn, anchor=B]{};
\draw (0,-2) to[R, f=f, current arrow scale=8] ++(2,0)
node[pnp, anchor=B, circuitikz/current arrow scale=8]{};
\draw (0,-4) to[R, f=f, current arrow scale=24] ++(2,0)
node[nigbt, anchor=B]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsfonts,bm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{bayesnet}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[every node/.style={scale=0.7}]
\node[obs, minimum width = 25pt] (at) {$\mathbf{a_t}$};
\node[obs, below=0.5cm of at, minimum width = 25pt] (st) {$\mathbf{s_t}$};
\node[latent, above=0.5cm of at, xshift=1cm, minimum width = 25pt] (rt) {$r_{t}$};
\node[latent, above=0.5cm of at, xshift=-0.5cm, minimum width = 25pt, minimum height = 25pt](vt) {$V_t$};
\node[latent, xshift=2.5cm, minimum width = 25pt, minimum height = 25pt](Rt) {$\mathbf{\mathcal{R}}$};
\node[latent, above=0.5cm of Rt, minimum width = 25pt] (ot) {$\mathbf{\mathcal{O}_t}$};
\edge {at} {rt};
\path [->] (st) edge[bend right] (rt) ;
\path [->] (vt) edge[bend left] (ot) ;
\path [->] (st) edge[bend left] (vt);
\path [->] (rt) edge (vt);
\edge {rt} {ot};
\edge [dashed] {Rt} {rt};
\node[obs, xshift=5cm, minimum width = 25pt] (att) {$\mathbf{a_{t+1}}$};
\node[obs, below=0.5cm of att, minimum width = 25pt] (stt) {$\mathbf{s_{t+1}}$};
\node[latent, above=0.5cm of att, xshift=1cm, minimum width = 25pt] (rtt) {$r_{t+1}$};
\node[latent, above=0.5cm of att, xshift=-0.5cm, minimum width = 25pt, minimum height = 25pt](vtt) {$V_{t+1}$};
\node[latent, xshift=7.5cm, minimum width = 25pt, minimum height = 25pt](Rtt) {$\mathbf{\mathcal{R}}$};
\node[latent, above=0.5cm of Rtt, minimum width = 25pt] (ott) {$\mathbf{\mathcal{O}_{t+1}}$};
\edge {att} {rtt};
\path [->] (stt) edge[bend right] (rtt) ;
\path [->] (vtt) edge[bend left] (ott) ;
\path [->] (stt) edge[bend left] (vtt);
\path [->] (rtt) edge (vtt);
\edge {rtt} {ott};
\edge [dashed] {Rtt} {rtt};
\edge {at, st} {stt}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [name path=A,domain=0:1,samples=2] {x};
\addplot+ [name path=B] table {
x y
0 2
0.5 -1
1 3
};
\addplot fill between [of=A and B];
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[x=0.6cm,y=0.5cm]
\draw[fill=black!10, draw opacity=0.1] (0,9) -- (0,8) -- (1,5) -- (2,4) -- (8,1) --
(14,0) -- (15,0) -- (15,9);
\draw (10,6) node {$\mathcal{N}(Q)$};
\draw[->] (0,0) -- (15,0) node[anchor=north]{$\alpha$};
\draw[->] (0,0) -- (0,9) node[anchor=east]{$|\rho|$};
\draw[blue,line width=1pt] (0,8) -- (1,5);
\draw[line width=1pt] (1,5) -- (2,4);
\draw [red,line width=1pt](2,4) -- (8,1);
\draw [black,line width=1pt](8,1) -- (14,0);
\draw[red,dotted] (-1,5.5) -- (11,-0.5);
\draw (-1,5.5) node[anchor= south] {$L_\nu(Q)$};
\draw (2.2, 3.5) node[anchor=south west]{$E_{\nu}(Q)$};
\draw[fill=black] (4,3) circle[radius=2pt]
node[anchor=south west]{$V=(\alpha,r)$};
\draw[fill=black] (4.3,2) circle[fill=black,radius=2pt]
node[anchor=north west]{$V_{_{j}}$};
\draw[blue, dashed] (4,3) -- (4.3,2);
\draw[dotted] (0,2) -- (14,2);
\draw (0,2) node[anchor = east]{\small$r-1$};
\draw (-0.1,2)--(0.1,2);
\draw [dotted](4.3,2) -- (4.3,0);
\draw (4.3,0) node[anchor = north]{\small$\alpha+\mu_j$};
\draw (4.3,0.1) -- (4.3,-0.1);
\draw [dotted](6,2) -- (6,0);
\draw (6,0) node[anchor = north]{\small$\alpha+\nu$};
\draw (6,0.1) -- (6,-0.1);
\draw[fill=black] (7.5,2) circle[radius=2pt];
\draw [dotted](7.5,2) -- (7.5,0);
\draw (7.5,0) node[anchor = north]{\small$\eta$};
\draw (7.5,0.1) -- (7.5,-0.1);
\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 line=my data,
my data={style={mark=x, mark repeat=3}}]
data [format=function] {
var x : interval [0:pi] samples 10;
func y = sin(\value x r);
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsthm,amssymb,dsfont,graphicx,xspace,epsfig,xcolor}
\usepackage{tikz, tkz-graph, tkz-berge}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{patterns}
\usetikzlibrary{patterns.meta}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}[thick,scale=1, every node/.style={transform shape}]
\tikzset{vertex/.style = {circle,fill=black,minimum size=5pt, inner sep=0pt}
}\tikzset{edge/.style = {->,> = latex'}
}\node[vertex,label=above:$x$] (x) at (90:1.5){};
\node[vertex,label=below:$y$] (y) at (0,0){};
\node[vertex,label=left:$u$] (u) at (210:1.5){};
\node[vertex,label=right:$v$] (v) at (-30:1.5){};
\draw[edge,blue] (x) to[out=-150, in=90] (u){};
\draw[edge,blue] (u) to[out=50, in=-170] (y){};
\draw[edge,blue] (y) to[out=-10, in=130] (v){};
\draw[edge,blue] (v) to[out=90, in=-30] (x){};
\draw[edge, bend right=15] (x) to (y){};
\draw[edge, bend right=15] (y) to (x){};
\draw[edge, bend right=15] (v) to (u){};
\draw[edge, bend right=15] (u) to (v){};
\node[] (D) at (3,0.3) {$D$};
\begin{scope}[yshift=-5cm]
\node[vertex,label=above:$x_-$] (xm) at (1.5,1.5){};
\node[vertex,label=above:$x_+$] (xp) at (-1.5,1.5){};
\node[vertex,label=below:$y_-$] (ym) at (-1.5,0){};
\node[vertex,label=below:$y_+$] (yp) at (1.5,0) {};
\node[vertex,label=below:$y_2$] (y2) at (0,-0.5){};
\node[vertex,label=above:$y_2'$] (y22) at (0,0.5){};
\node[vertex,label=left:$u_-$] (um) at (-4,1.5){};
\node[vertex,label=left:$u_+$] (up) at (-4,-1.5) {};
\node[vertex,label=left:$u_2$] (u2) at (-4.5,0){};
\node[vertex,label=right:$u_2'$] (u22) at (-3.5,0){};
\node[vertex,label=right:$v_-$] (vm) at (4,-1.5){};
\node[vertex,label=right:$v_+$] (vp) at (4,1.5) {};
\node[vertex,label=right:$v_2$] (v2) at (4.5,0){};
\node[vertex,label=right:$v_2'$] (v22) at (3.5,0){};
\draw[edge,green] (xp) to (um){};
\draw[edge,green] (up) to (ym){};
\draw[edge,green] (yp) to (vm){};
\draw[edge,green] (vp) to (xm){};
\draw[edge,red, dashed] (xp) to (ym){};
\draw[edge,red, dashed] (yp) to (xm){};
\draw[edge,red, dashed] (vp) to[out=150, in=30] (um){};
\draw[edge,red, dashed] (up) to (vm){};
\draw[edge,green] (ym) to (y22){};
\draw[edge, red, dashed] (ym) to (y2){};
\draw[edge,green] (y22) to (y2){};
\draw[edge,green] (y2) to (yp){};
\draw[edge,green] (um) to (u22){};
\draw[edge, red, dashed] (um) to (u2){};
\draw[edge,green] (u22) to (u2){};
\draw[edge,green] (u2) to (up){};
\draw[edge,green] (vm) to (v22){};
\draw[edge, red, dashed] (vm) to (v2){};
\draw[edge,green] (v22) to (v2){};
\draw[edge,green] (v2) to (vp){};
\node[] (Dp) at (6.5,0) {$D'$};
\node[] (Dp2) at (-6.5,0) {};
\end{scope}
\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 [scale=.55] \datavisualization
[scientific axes=clean, all axes={ticks=few},
visualize as smooth line=my data, my data={smooth cycle}]
data [format=function] {
var t : interval [0:4] samples 5;
func x = cos(\value t r);
func y = sin(\value t r);
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{circuits.ee.IEC}
\begin{document}
\tikz[circuit ee IEC]\node[resistor]{};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
stack plots=y,
area style,
enlarge x limits=false,
]
\addplot coordinates
{(0,1) (1,1) (2,2) (3,2)}
\closedcycle;
\addplot coordinates
{(0,1) (1,1) (2,2) (3,2)}
\closedcycle;
\addplot coordinates
{(0,1) (1,1) (2,2) (3,2)}
\closedcycle;
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsfonts,amsthm,latexsym,tikz}
\begin{document}
\begin{tikzpicture}[scale=0.9, every node/.style={transform shape}]
\fill (0,1) circle (2pt);
\fill (1,1) circle (2pt);
\fill (2,1) circle (2pt);
\fill (4,1) circle (2pt);
\fill (5,1) circle (2pt);
\fill (6,1) circle (2pt);
\fill (0,2) circle (2pt);
\fill (1,2) circle (2pt);
\fill (2,2) circle (2pt);
\fill (4,2) circle (2pt);
\fill (5,2) circle (2pt);
\fill (6,2) circle (2pt);
\draw (0,1) -- (0,2) -- (1,1) -- (1,2) -- (2,1) -- (2,2);
\draw (4,1) -- (4,2) -- (5,1) -- (5,2) -- (6,1) -- (6,2);
\node at (0, 0.7) {\tiny 0};
\node at (1, 0.7) {\tiny 1};
\node at (2, 0.7) {\tiny 2};
\node at (4, 0.7) {\tiny $x-3$};
\node at (5, 0.7) {\tiny $x-2$};
\node at (6, 0.7) {\tiny $x-1$};
\node at (0, 2.3) {\tiny $x$};
\node at (1, 2.3) {\tiny $x+1$};
\node at (2, 2.3) {\tiny $x+2$};
\node at (4, 2.3) {\tiny $2x-3$};
\node at (5, 2.3) {\tiny $2x-2$};
\node at (6, 2.3) {\tiny $2x-1$};
\node at (3, 1.5) {$\cdots$};
\fill (8,3) circle (2pt);
\fill (8,2) circle (2pt);
\fill (8,1) circle (2pt);
\fill (9,1) circle (2pt);
\fill (10,1) circle (2pt);
\fill (12,1) circle (2pt);
\fill (13,1) circle (2pt);
\fill (9,2) circle (2pt);
\fill (10,2) circle (2pt);
\fill (12,2) circle (2pt);
\fill (13,2) circle (2pt);
\fill (14,2) circle (2pt);
\fill (14,1) circle (2pt);
\fill (14,0) circle (2pt);
\draw (8,3) -- (8,1) -- (9,2) -- (9,1) -- (10,2) -- (10,1);
\draw (12,2) -- (12,1) -- (13,2) -- (13,1) -- (14,2) -- (14,0);
\node at (11, 1.5) {$\cdots$};
\node at (14.2, 0.2) {\tiny 0};
\node at (14.2, 1.2) {\tiny $x$};
\node at (8, 0.7) {\tiny 1};
\node at (9, 0.7) {\tiny 2};
\node at (10, 0.7) {\tiny 3};
\node at (12, 0.7) {\tiny $x-2$};
\node at (13, 0.7) {\tiny $x-1$};
\node at (7.6, 2.2) {\tiny $x+1$};
\node at (7.6, 3.2) {\tiny $2x+1$};
\node at (9, 2.3) {\tiny $x+2$};
\node at (10, 2.3) {\tiny $x+3$};
\node at (12, 2.3) {\tiny $2x-2$};
\node at (13, 2.3) {\tiny $2x-1$};
\node at (14, 2.3) {\tiny $2x$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,varwidth]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\coordinate (1) at (0,0);
\coordinate (2) at (2,0);
\coordinate (3) at (2,2);
\coordinate (4) at (0,2);
\coordinate (5) at ($(1)!.5!(2)$);
\coordinate (6) at ($(2)!.5!(3)$);
\coordinate (7) at ($(3)!.5!(4)$);
\coordinate (8) at ($(4)!.5!(1)$);
\coordinate (9) at (8-|5);
\foreach \i/\position in {1/below,2/below,3/above,4/above,5/below,6/right,7/above,8/left,9/above right}
\fill (\i) circle (1pt) node [\position] {\tiny \i};
\draw (1)--(2)--(3)--(4)--cycle;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [name path=A,samples=15,domain=0:1]
{cos(360*x)}
coordinate [pos=0.25] (nodeA0) {}
coordinate [pos=0.75] (nodeA1) {};
\draw [name path=B]
(nodeA0) -- (nodeA1);
\addplot [orange] fill between [of=A and B];
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[12pt, preview]{standalone}
\usepackage{tikz}
\usetikzlibrary{chains, shadows}
\usepackage[neveradjust]{paralist}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[
every node/.style={
rounded corners,
top color=white,
bottom color=gray,
drop shadow,
on chain,
join,
},
>=stealth,
every join/.style={gray,line width=1mm,->},
node distance=1cm,
start chain=going below
]
\node[font=\bfseries] {short word};
\node[align=center, text width=6cm] {\textbf{a longer than short word}\\
\begin{compactitem}
\item Description 1
\item Description 2
\end{compactitem}};
\node[align=center, text width=6cm] {\textbf{a longer than short word}\\
\begin{compactitem}
\item Description 1
\item Description 2
\item Description 3
\end{compactitem}};
\node[font=\bfseries] {short word};
\end{tikzpicture}
\caption{words and description}
\label{fig:words}
\end{figure}
\end{document}
\documentclass[tikz, border=3mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{xintexpr}
\newcommand{\constant}{0.4}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
xmin=0, xmax=1,
ymin=0, ymax=1,
xtick={\xinttheiexpr[2]\constant/(1+\constant)\relax, \constant}
]
\addplot[domain=0:1] {\constant/(\constant + x)};
\end{axis}
\end{tikzpicture}
\end{document}