AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[line width=.6pt,black] (-0.9,1.25) -- (-1.3,1.25);
\draw[line width=.6pt,black] (0.9,1.25) -- (1.3,1.25);
\draw[line width=.6pt,black] (-1.9,1.95) -- (-2.3,1.95);
\draw[line width=.6pt,black] (1.9,1.95) -- (2.3,1.95);
\draw[line width=0.6 pt, fill=gray, fill opacity=0.2] (-0.3,0) -- (0.3,0) -- (0.3,0.5) -- (-.3,0.5) -- cycle;
\draw[line width=.6pt,black] plot [smooth,tension=0.6] coordinates {(-0.3,0.4) (-0.6,.5) (-.6,1) };
\draw[line width=.6pt,black] plot [smooth,tension=0.6] coordinates {(0.3,0.4) (0.6,.5) (.6,1) };
\draw[line width=.6pt,black] plot [smooth,tension=0.6] coordinates {(-0.5,1.5) (0,2) (.5,1.5) };
\draw[line width=.6pt,black] plot [smooth,tension=0.6] coordinates {(-0.3,0.2) (-1.6,.5) (-1.6,1.7) };
\draw[line width=.6pt,black] plot [smooth,tension=0.6] coordinates {(0.3,0.2) (1.6,.5) (1.6,1.7) };
\draw[line width=.6pt,black] plot [smooth,tension=0.6] coordinates {(-1.5,2.2) (0,2.8) (1.5,2.2) };
\draw[line width=0.6 pt, fill=gray, fill opacity=0.2] (-0.9,1) -- (-0.3,1) -- (-0.3,1.5) -- (-.9,1.5) -- cycle;
\draw[line width=0.6 pt, fill=gray, fill opacity=0.2] (0.9,1) -- (0.3,1) -- (0.3,1.5) -- (.9,1.5) -- cycle;
\draw[line width=0.6 pt, fill=gray, fill opacity=0.2] (-1.9,1.7) -- (-1.3,1.7) -- (-1.3,2.2) -- (-1.9,2.2) -- cycle;
\draw[line width=0.6 pt, fill=gray, fill opacity=0.2] (1.9,1.7) -- (1.3,1.7) -- (1.3,2.2) -- (1.9,2.2) -- cycle;
\node[ line width=0.6pt, dashed, draw opacity=0.5] (a) at (0,0.25) {$\rho$};
\node[ line width=0.6pt, dashed, draw opacity=0.5] (a) at (-0.6,1.25) {$\sigma_{\mu_2}$};
\node[ line width=0.6pt, dashed, draw opacity=0.5] (a) at (0.6,1.25) {$\sigma_{\nu_2}$};
\node[ line width=0.6pt, dashed, draw opacity=0.5] (a) at (-1.6,1.95) {$\sigma_{\mu_1}$};
\node[ line width=0.6pt, dashed, draw opacity=0.5] (a) at (1.6,1.95) {$\sigma_{\nu_1}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\newcommand{\piecewise}[1]{\foreach \f/\a/\b/\open/\closed in {#1}
{\draw[domain=\a:\b, smooth, variable=\x] plot ({\x}, \f);
\foreach \x[evaluate={\y=\f;
}] in \open{\draw[fill=white] (\x,\y) circle (.6mm);
}\foreach \x[evaluate={\y=\f;
}] in \closed{\fill (\x,\y) circle (.6mm);
}}}
\begin{document}
\begin{tikzpicture}
\draw[-stealth] (-2, 0) -- (3.5, 0) node[right] {$x$};
\draw[-stealth] (0, -1.5) -- (0, 2.5) node[above] {$y$};
\draw[fill] (.6,0) circle(.6mm) node[below, yshift=-1] {$x_0$};
\begin{scope}[line width=1pt, blue]
\piecewise{{\x*\x}/-1.5/.6/{.6}/{},{2*\x-\x*\x}/.6/2.5/{}/{.6}}
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{through}
\begin{document}
\begin{tikzpicture}
\coordinate [label=left:$A$] (A) at (0,0);
\coordinate [label=right:$B$] (B) at (1.25,0.25);
\draw (A) -- (B);
\node [draw,circle through=(B),label=left:$D$] at (A) {};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsfonts,amsthm,amssymb}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[x=9mm,y=9mm]
\node (11) at (-6,4) {$ -\Omega_{1,\frac{1}{2}}$};
\node (1m1) at (-2,4) {$ -\Omega_{1,-\frac{1}{2}}$};
\node (03) at (-6,0) {$ \Omega_{0,\frac{3}{2}}$};
\node (01) at (-2,0) {$ \Omega_{0,\frac{1}{2}}$};
\node (0m1) at (2,0) {$ \Omega_{0,-\frac{1}{2}}$};
\node (0m3) at (6,0) {$ \Omega_{0,-\frac{3}{2}}$};
\node (m11) at (2,-4) {$ -\Omega_{-1,\frac{1}{2}}$};
\node (m1m1) at (6,-4) {$ -\Omega_{-1,-\frac{1}{2}}$};
\draw[-to,line width=1pt] (11) -- node[midway,above]{$F_{2}^{[\frac{1}{2}]}$} (1m1);
\draw[-to,line width=1pt] (11) -- node[midway,left]{$F_{1}^{[-\frac{3}{2}]}$} (03);
\draw[-to,line width=1pt] (1m1) -- node[midway,left]{$F_{1}^{[-\frac{3}{2}]}$} (01);
\draw[-to,line width=1pt] (03) -- node[midway,above]{$F_{2}^{[\frac{1}{2}]}$} (01);
\draw[-to,line width=1pt] (01) -- node[midway,above]{$F_{2}^{[-\frac{1}{2}]}$} (0m1);
\draw[-to,line width=1pt] (0m1) -- node[midway,above]{$F_{2}^{[-\frac{3}{2}]}$} (0m3);
\draw[-to,line width=1pt] (0m1) -- node[midway,left]{$F_{1}^{[\frac{1}{2}]}$} (m11);
\draw[-to,line width=1pt] (0m3) -- node[midway,left]{$F_{1}^{[\frac{1}{2}]}$} (m1m1);
\draw[-to,line width=1pt] (m11) -- node[midway,above]{$F_{2}^{[-\frac{3}{2}]}$} (m1m1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\tikzset{mynode/.style={circle,minimum width=.5ex,fill=none,draw}
,myfillnode/.style={circle,minimum width=.5ex,fill=black,draw}}
\begin{document}
\begin{tikzpicture}[every node/.style={myfillnode}]
\draw (0,0) node[mynode]{a};
\draw (0,1) node{a};
\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[label=X,position=above](A)(B)
\Edge[label=Y,position={below left=2mm}](A)(C)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
small,
title=Do,
samples=2,
]
\addplot+ [
declare function={C=4;}
] {C*x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows,automata}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=1.5cm,semithick,initial text={}]
\tikzstyle{every state}=[]
\node[initial,state,inner sep=1pt,minimum size=0pt](r1r11){$r_1r_{11}$};
\node[state,inner sep=1pt,minimum size=0pt](r8r11)[below left of=r1r11]{$r_8r_{11}$};
\node[state,inner sep=1pt,minimum size=0pt](r14r11)[below right of=r1r11]{$r_{14}r_{11}$};
\node[state,inner sep=1pt,minimum size=0pt](r1r12)[right of=r1r11,xshift=2cm]{$r_1r_{12}$};
\node[state,inner sep=1pt,minimum size=0pt](r8r12)[below left of=r1r12]{$r_8r_{12}$};
\node[state,inner sep=1pt,minimum size=0pt](r14r12)[below right of=r1r12]{$r_{14}r_{12}$};
\path(r1r11)edge[bend left=10]node{$a$}(r14r11)(r8r11)edge[bend left=10]node{$d$}(r1r11)(r14r11)edge[bend left=10]node{$c$}(r8r11)(r14r11)edge[bend right=10,above]node{$e$}(r8r11)(r1r12)edge[bend left=10]node{$a$}(r14r12)(r8r12)edge[bend left=10]node{$d$}(r1r12)(r14r12)edge[bend left=10]node{$c$}(r8r12)(r14r12)edge[bend right=10,above]node{$e$}(r8r12)(r1r11)edge[bend left=30,below]node{$b$}(r1r12)(r8r11)edge[bend right=55,below]node{$b$}(r8r12)(r14r11)edge[bend right=50,below]node{$b$}(r14r12)(r1r12)edge[bend left=5,below]node{$f$}(r1r11)(r8r12)edge[bend left=45,above]node{$f$}(r8r11)(r14r12)edge[bend left=40,above]node{$f$}(r14r11);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.5]
\draw [latex-latex](0.1,0.5) -- (1.4,0.5);
\draw [latex-latex](1.5,0.5) -- (2,0.5);
\draw [latex-latex](5,0.5) -- (5.5,0.5);
\draw [latex-latex](5.6,0.5) -- (7,0.5);
\draw [latex-latex](3,0.5) -- (4,0.5);
\draw[](3,0.1) -- (3,-0.1)node[below, scale=0.65]{ $p_{0}$};
\draw[](4,0.1) -- (4,-0.1)node[below, scale=0.65]{ $p_{1}$};
\draw[](0,0.1) -- (0,-0.1)node[below, scale=0.65]{ $p_{-j-1}$};
\draw[](2,0.1) -- (2,-0.1)node[below, scale=0.65]{ $p_{-j}$};
\draw[](1,0.1) -- (1,-0.1)node[below, scale = 0.65]{$p_{-j}-\delta$};
\draw[dotted](1.5,0.1) -- (1.5,-0.5)node[below, scale = 0.65]{$\overline q_{-j}(\delta)$};
\draw[dotted](5.5,0.1) -- (5.5,-0.5)node[below, scale = 0.65]{$\overline q_{j}(\delta)$};
\draw[](5,0.1) -- (5,-0.1)node[below, scale = 0.65]{$p_{j}$};
\draw[](7,0.1) -- (7,-0.1)node[below, scale=0.65]{$p_{j+1}$};
\draw[->] (-0.5,0) -- (8,0) node[right] {$p$};
\node[scale=0.7] at (.75, .8) {split};
\node[scale=0.7] at (1.75, .8) {slide};
\node[scale=0.7] at (3.5, .8) {split};
\node[scale=0.7] at (5.25, .8) {slide};
\node[scale=0.7] at (6.25, .8) {split};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}
\node foreach \name/\angle in {a/0,b/90,c/180,d/270}
(\name) at (\angle:1.5) {$\name$};
\path[->] (b) edge node[above right] {$5$} (a)
edge (c)
edge [-,dotted] node[below,sloped] {missing} (d)
(c) edge (a)
edge (d)
(d) edge [red] node[above,sloped] {very}
node[below,sloped] {bad} (a);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\begin{document}
\begin{tikzpicture}
\tiny\draw[blue,domain=.25*pi:.5*pi,samples=100,smooth]plot(\x-.25*pi,{sin(2*\x r)/.5+sin(6*\x r)/1.5+sin(10*\x r)/2.5});
\draw[blue,domain=pi:1.5*pi,samples=100,smooth]plot(\x-.75*pi,{sin(2*\x r)/.5+sin(6*\x r)/1.5+sin(10*\x r)/2.5});
\draw[blue,domain=pi:1.5*pi,samples=100,smooth]plot(\x-.25*pi,{sin(2*\x r)/.5+sin(6*\x r)/1.5+sin(10*\x r)/2.5});
\draw[->,black!70](0,0)--(0,3);
\draw(-.5,3.5)node[left,rotate=90]{$\left|W\left(e^{j\omega'}\right)\right|$};
\draw[->,black!70](0,0)--(6,0)node[below]{$\omega'$};
\draw[black!70](0,0)node[below]{$0$};
\draw[black!70](.25*pi,0)node[below]{$\pi/L$};
\draw[black!70](.75*pi,0)node[below]{$3\pi/L$};
\draw[black!70](1.25*pi,0)node[below]{$\pi$};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\tikz\datavisualization[scientific axes=clean,
visualize as smooth line/.list={linear,squared,cubed},
linear={pin in data={text=$2x$}},
squared={pin in data={text=$x^2$}},
cubed={pin in data={text=$x^3$}}]
data[set=linear,format=function]{var x : interval [0:1.5];func y = \value x;}
data[set=squared,format=function]{var x : interval [0:1.5];func y = \value x * \value x;}
data[set=cubed,format=function]{var x : interval [0:1.5];func y = \value x * \value x * \value x;};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[RPvoltages]{circuitikz}
\begin{document}

\begin{circuitikz}[raised voltages]
\draw (0,0) to[R, v_<=$v_1$] (2,0);
\end{circuitikz}

\end{document}
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[inner sep=2pt]
\draw[-,yellow,thick](0,0)--(8,8);
\draw[->,gray,thick,>=stealth](0,0)--(4,8);
\draw[->,gray,thick,>=stealth](0,0)--(8,4);
\draw[->,very thick,>=stealth](0,0)--(0,10);
\draw[->,very thick,>=stealth](0,0)--(10,0);
\node[circle,draw=black,fill=black](A)at(4,5){};
\node[circle,draw=none,above=of A,yshift=-1.2cm]at(4,5){Event A};
\node[circle,draw=none,right=of A](B)at(1.2,1.1){};
\node[circle,draw=none,below left=of A](C)at(3,5){};
\node[circle,red,rotate=45,draw=none]at(7,7.3){Light curve};
\node[circle,rotate=27,draw=none,text width=3.5cm]at(4,1.5){\small Position of Event A \\ according to Observer 2};
\node[circle,rotate=63,draw=none,text width=3.5cm]at(2,5){\small Position of Event A \\ according to Observer 1};
\draw[-,dashed](A)--(B);
\draw[-,dashed](A)--(C);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\pgfdeclarelayer{bg}\pgfsetlayers{bg,main}
\begin{document}
\begin{tikzpicture}[x=1.5ex, y=2ex, every node/.style={draw = black, circle, node font=\tiny}]
\node (P3) at (0,0) {};
\node (P2) at (-1,-1) {};
\node (I2) at (1,-1) {};
\node (P1) at (-2,-2) {};
\node (S2) at (0,-2) {};
\node (I3) at (2,-2) {};
\begin{pgfonlayer}
{bg}\draw[purple, opacity=0.3, line width=11pt, line cap=round] (P2.center) -- (S2.center);
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\tikzset{help lines/.style={gray,very thin}
,state/.style={draw,circle,minimum size=0.6cm},>=stealth}
\begin{document}
\begin{tikzpicture}[shorten >=1pt,node distance=2cm,auto]
\draw[help lines](0,0)grid(3,2);
\node[state](q_0){$q_0$};
\node[state](q_1)[above right of=q_0]{$q_1$};
\node[state](q_2)[below right of=q_0]{$q_2$};
\node[state](q_3)[below right of=q_1]{$q_3$};
\path[->](q_0)edge node{0}(q_1)edge node[swap]{1}(q_2)(q_1)edge node{1}(q_3)edge[loop above]node{0}()(q_2)edge node[swap]{0}(q_3)edge[loop below]node{1}();
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ymin=0, ymax=2, xmin=0.2, xmax=2, y tick label style={/pgf/number format/fixed, /pgf/number format/fixed zerofill, /pgf/number format/precision=1}, yticklabel={\ifdim\tick pt=0pt 0 \else\pgfmathprintnumber{\tick}\fi}]\addplot[only marks] {x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}
\filldraw (0,0) circle (1.5pt);
\filldraw (2,0) circle (1.5pt);
\draw[->] (0,0) arc [start angle=180,end angle=350, x radius=1cm, y radius=0.5cm];
\draw[<-] (2,0.1) arc [start angle=10,end angle=180, x radius=1cm, y radius=0.5cm];
\node[left] at (0,0) {$v_0$};
\node[right] at (2,0) {$v_1$};
\node[above] at (1,0.5) {$e_0$};
\node[below] at (1,-0.5) {$e_1$};
\filldraw (5,1) circle (1.5pt);
\draw[] (5,1) arc [start angle=90,end angle=450, x radius=1cm, y radius=1cm];
\draw[dotted] (6,0) arc [start angle=0,end angle=360, x radius=1cm, y radius=0.25cm];
\node[above] at (5,1) {$v$};
\node[right] at (6,0) {$f$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\tikz \graph [branch up=7mm] { a -> b -> {c, d, e} };
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,1)
to[oscope=$C_1$, fill=green!20!gray, name=O1] ++(2,0);
\path (O1.right)
node[ground, scale=0.5, below right=4pt]{};
\ctikzset{bipoles/oscope/width=1.0}
\draw (1,-1)
node[oscopeshape, fill=yellow!20!orange](O2){$C_2$};
\draw (O2.in 2) to[short, *-] ++(0,-0.5) node[ground]{};
\draw (O2.in 1) to[short, *-] ++(0,-0.5)
-- ++(-1,0) node[currarrow, xscale=-1]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[>=latex,<->](-4.25,0)--(4.25,0);
\draw[>=latex,<->](0,-1.25)--(0,4.25);
\draw[thick](0,0)--(45:{sqrt(32)});
\node at(3.25,3.7){$L_{\rho}$};
\filldraw(45:{sqrt(8)})circle(2pt);
\node at(2.7,2){$(s,\rho)$};
\draw(0,0)--(69.44:4.272);
\node at(1,3.7){$L_{\theta_1}$};
\draw(0,0)--(122:4.717);
\node at(-2.65,3.7){$L_{\theta_2}$};
\draw(0,0)--(-7.12502:4.03113);
\draw(0,0)--(172.875:4.03113);
\node at(-3.7,0.8){$L_{\theta_3}$};
\draw[dashed](45:{sqrt(8)})--(69.44:2.575);
\filldraw(69.44:2.575)circle(2pt);
\draw[dashed](45:{sqrt(8)})--(122:0.63626);
\filldraw(122:0.63626)circle(2pt);
\draw[dashed](45:{sqrt(8)})--(-7.12502:1.736486);
\filldraw(-7.12502:1.736486)circle(2pt);
\node at(0.65,0.25){$\rho$};
\draw(1,0)arc(0:45:1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{decorations.markings}
\tikzset{test/.style n args={3}{
postaction={
decorate,
decoration={
markings,
mark=between positions 0 and \pgfdecoratedpathlength step 0.5pt with {
\pgfmathsetmacro\myval{multiply(
divide(
\pgfkeysvalueof{/pgf/decoration/mark info/distance from start}, \pgfdecoratedpathlength
),
100
)};
\pgfsetfillcolor{#3!\myval!#2};
\pgfpathcircle{\pgfpointorigin}{#1};
\pgfusepath{fill};}
}}}}
\definecolor{c1}{rgb}{0.2,0.8,0.3}
\definecolor{c2}{rgb}{0.8,0.3,0.2}
\definecolor{c3}{rgb}{0.3,0.2,0.8}
\definecolor{c4}{rgb}{0.7,0.1,0.5}
\begin{document}
\begin{tikzpicture}[]
\node [circle, draw=c1, ultra thick] (s1) at (0, 0) {s1};
\node [circle, draw=c2, ultra thick] (s2) at (2, 1) {s2};
\node [circle, draw=c3, ultra thick] (s3) at (-1, 3) {s3};
\node [circle, draw=c4, ultra thick] (s4) at (-0.3, 5) {s4};
\draw [test={0.8pt}{c1}{c2}, thick] (s1) to [bend right] (s2);
\draw [test={0.8pt}{c1}{c3}, thick] (s1) to [bend left] (s3);
\draw [test={1.2pt}{c2}{c3}, thick] (s2) to [bend left] (s3);
\draw [test={0.9pt}{c3}{c4}, thick] (s2) to [bend right] (s4);
\draw [test={1.1pt}{c2}{c4}, thick] (s3) to [bend right] (s4);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\Vertex{A}\Vertex[x=2]{B}\Edge(A)(B)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\def\U{1}
\def\V{2*x}
\def\LEN{(sqrt((\U)^2 + (\V)^2)}
\begin{axis}[axis equal image,
title=Thickness indicates ``strength''.
]
\addplot [blue,
point meta={\LEN},
quiver={
u={(\U)/\LEN}, v={(\V)/\LEN},
scale arrows=2,
every arrow/.append style={
line width=2pt*\pgfplotspointmetatransformed/1000
},
},
-stealth,samples=15,
] {x^2};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\ctikzset{voltage=raised}
\draw (0,0) to[I=1A, v_=$u_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\begin{document}
\begin{tikzpicture}[scale=.6]
\tkzInit[xmin=-6,ymin=-4,xmax=6,ymax=6]\tkzClip\tkzSetUpLine[thin,color=teal]\tkzDefPoint(132:5){A}\foreach \ang in {5,10,...,360}{\tkzDefPoint(\ang:4){M}\tkzDefLine[mediator](A,M)\tkzGetPoints{x}{y}\tkzDrawLine[add=3 and 3](x,y)}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{backgrounds,arrows, shapes,decorations.markings,positioning}
\usetikzlibrary{plotmarks,calc,fadings,decorations.pathreplacing,decorations.pathmorphing}
\tikzset{>=latex,inner sep=0pt,outer sep=2pt,mark coordinate/.style={inner sep=0pt,outer sep=0pt,minimum size=3pt,fill=black,circle}
}\tikzset{-dot-/.style={decoration={markings,mark=at position #1 with {\fill circle (2.0pt);
}
},postaction={decorate}}}\usepackage{pgfplots}
\pgfplotsset{compat=1.13}
\usepackage{amsmath}
\newcommand{\polygon}[2]{let \n{len}
= {2*#2*tan(360/(2*#1))} in ++(0,-#2) ++(\n{len}/2,0)
\foreach \x in {1,...,#1} { -- ++(\x*360/#1:\n{len})}}
\begin{document}
\begin{tikzpicture}[scale=1.5]
\draw[gray,very thin,step=0.6] (0,0) grid (3,3);
\draw[thick] (0.,0) -- (0,3) -- (3,3) -- (3,0) -- (0,0);
\draw[thick,red] (1.5,1.5) circle (0.8cm);
\draw[thick,fill=white] (1.5,1.5) \polygon{8}{0.75};
\node [black,scale=0.9] at (1.8,1.8) {$\partial\Omega_h$};
\node [red,fill=white,scale=0.9] at (2.3,2.3) {$\partial\Omega$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone} 
\usepackage{pgfplots} 
\pgfplotsset{width=10cm,compat=1.16} 

\begin{document} 
\begin{tikzpicture} 
\begin{axis}[ 
    axis x line=middle, 
    axis y line=middle, 
    ymin=0, ymax=10, 
    ytick={2,4,6,8,10}, 
    ylabel=$f(x)$, 
    xmin=0, xmax=10, 
    xtick={2,4,6,8,10}, 
    xlabel=$x$,
    domain=2:7,
    samples=2
] 

% 1. The Red Fill (Rectangle)
% We use fill instead of fill between for a cleaner solid color
\fill[red!70!black] (axis cs:2,0) rectangle (axis cs:7,6);

% 2. The Top Solid Blue Line
\addplot[blue, thick, domain=2:7] {6}; 

% 3. The Vertical Dotted Blue Lines
\draw[blue, thick, dotted] (axis cs:2,0) -- (axis cs:2,6);
\draw[blue, thick, dotted] (axis cs:7,0) -- (axis cs:7,6);

\end{axis} 
\end{tikzpicture} 
\end{document}
\PassOptionsToPackage{dvipsnames}{xcolor}
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{calc, backgrounds}
\tikzset{
right angle quadrant/.code={
\pgfmathsetmacro\quadranta{{1,1,-1,-1}[#1-1]}
\pgfmathsetmacro\quadrantb{{1,-1,-1,1}[#1-1]}},
right angle quadrant=1,
right angle length/.code={\def\rightanglelength{#1}},
right angle length=2ex,
right angle symbol/.style n args={3}{
insert path={
let \p0 = ($(#1)!(#3)!(#2)$) in
let \p1 = ($(\p0)!\quadranta*\rightanglelength!(#3)$),
\p2 = ($(\p0)!\quadrantb*\rightanglelength!(#2)$) in
let \p3 = ($(\p1)+(\p2)-(\p0)$) in
(\p1) -- (\p3) -- (\p2)
}
}
}
\begin{document}
\begin{tikzpicture}[
dot/.style 2 args={circle,inner sep=1pt,fill,label={#2:#1},name=#1},
extended line/.style={shorten >=-#1,shorten <=-#1,draw=Cerulean},
extended line/.default=1cm
]
\node [dot={L}{below right}] at (1,0) {};
\node [dot={M}{below left}] at (4,0) {};
\node [dot={N}{right}] at (4,5) {};
\begin{scope}[on background layer]
\draw [extended line=0.5cm] (L) -- (M) node [below,midway] {3};
\draw [extended line=0.5cm] (L) -- (N) node [above left,midway] {6};
\draw [extended line=0.5cm] ($(L)!(N)!(M)$) -- (N) node [right,midway] {$x$};
\end{scope}
\draw [red,right angle symbol={M}{N}{L}];
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\pgfdeclarelayer{bg}\pgfsetlayers{bg,main}
\begin{document}
\begin{tikzpicture}
\draw[fill=blue!30](0,0)circle[radius=.24]node(a){};
\draw[fill=blue!30](1.1,0)circle[radius=.24]node(b){\small$A_i$};
\draw[fill=blue!30](2.2,0)circle[radius=.24]node(c){};
\draw[fill=blue!30](1.1-.22,-.7-.17)rectangle(1.1+.22,-.7+.17)node[pos=.5](d){\small$G$};
\draw[fill=blue!30](4,0)circle[radius=.24]node(e){};
\draw[fill=blue!30](5.1,0)circle[radius=.24]node(f){\small$A'_i$};
\draw[fill=blue!30](6.2,0)circle[radius=.24]node(g){};
\draw[->,thick](2.8,-.55)--(3.4,-.55);
\draw[dashed](.7,.35)--(1.5,.35)--(1.5,-1.)--(.7,-1.)--cycle;
\begin{pgfonlayer}
{bg}\draw(a.east)--(b.west);
\draw(b)--(c);
\draw(b)--(1.1,-1.2);
\draw(a)--(0,-1.2);
\draw(c)--(2.2,-1.2);
\draw(e.east)--(f.west);
\draw(f)--(g);
\draw(f)--(5.1,-1.2);
\draw(e)--(4,-1.2);
\draw(g)--(6.2,-1.2);
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[green] (0,0.6) -- (1.5,0.6) -- (1.5,-0.1) -- (1,-0.6);
\draw (0.75,0.6) circle (0pt) node[above]{$\circ$};
\draw (1.5,0.25) circle (0pt) node[left]{$\circ$};
\draw[green] (0,-0.6) -- (1,-0.6) -- (2,-0.6) -- (1.5,-0.1);
\filldraw[fill=white] (0,0.6) circle (2pt) node[above left]{$s$};
\filldraw[fill=white] (0,-0.6) circle (2pt) node[below left]{$r$};
\filldraw[fill=white] (1.5,0.6) circle (2pt) node[above right]{$w$};
\filldraw (1,-0.6) circle (2pt);
\filldraw (1.5,-0.1) circle (2pt);
\filldraw[fill=white] (2,-0.6) circle (2pt) node[below right]{$u$};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[every node/.style={align=center}, rect/.style={draw, inner sep=1em}]
\node[rect] (weak_existence) at (0, 0) {weak\\existence};
\node[rect] (strong_existence) at (4, 0) {strong\\existence};
\draw[latex-] (weak_existence) -- (strong_existence);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\Vertex[RGB,color={127,201,127}]{A}
\Vertex[x=1,RGB,color={190,174,212}]{B}
\Vertex[x=2,RGB,color={253,192,134}]{C}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{bayesnet}
\begin{document}
\begin{tikzpicture}
\node[obs](Q){$Q$};
\node[latent, right=0.6cm of Q](act_1){$\text{action}_1$};
\node[latent, right=0.6cm of Q](act_2){$\text{action}_{...}$};
\node[latent, right=0.6cm of Q](act_3){$\text{action}_n$};
\node[latent, rectangle](env1){$env_1$};
\node[latent, rectangle](env2){$env_2$};
\node[latent, rectangle](env3){$env_3$};
\end{tikzpicture}
\end{document}
\documentclass[border=0pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=-1:1,y domain=-1:1]
\addplot3[surf] {x*y*exp(x+2*y-9*x^2-9*y^2)};
\end{axis}
\end{tikzpicture}
\end{document}