AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,xcolor,tikz}
\newcommand{\tenS}{\ensuremath{\mathcal{S}}}
\newcommand{\tenP}{\ensuremath{\mathcal{P}}}
\newcommand{\tenQ}{\ensuremath{\mathcal{Q}}}
\newcommand{\tenN}{\ensuremath{\mathcal{N}}}
\begin{document}
\begin{tikzpicture}
\draw plot [smooth, tension=1.5] coordinates {(0,-1.5) (-0.75,0) (0,1.5)};
\node at (-1,0) {$d$};
\node[draw, circle, fill=white] (S) at (-4,0) {$\tenS$};
\node[draw, circle, fill=white] (P) at (0,-1.5) {$\tenP$};
\node[draw, circle, fill=white] (Q) at (0,1.5) {$\tenQ$};
\node[draw, circle, fill=white] (N) at (0,0) {$\tenN$};
\draw (P) -- (N) node[midway, right] {$D$};
\draw (N) -- (Q) node[midway, right] {$D$};
\draw (P) -- ++(1,0) node[right] {$p$};
\draw (Q) -- ++(1,0) node[right] {$q$};
\draw (N) -- ++(1,0) node[right] {$n(n+1)/2$};
\draw (S) -- ++(0,-1) node[below] {$p$};
\draw (S) -- ++(0,1) node[above] {$q$};
\draw (S) -- ++(-1,0) node[left] {$n(n+1)/2$};
\draw[->, very thick] (-3.25,0) -- (-1.5,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
grid,
grid style={densely dashed},
axis lines=center,
axis line style={->},
xlabel=$x$, ylabel=$y$,
xmin=-1, xmax=10,
ymin=-1, ymax=20,
axis on top,
domain=0:10
]
\addplot [red, thick, name path=A] {15-2*x};
\addlegendentry{$6x + 3y \leq 45$}
\addplot [blue, thick, name path=B] {16-4*x};
\addlegendentry{$4x + y \leq 16$}
\addplot [green, thick, name path=C] {3*x};
\addlegendentry{$3x \leq y$}
\addplot[olive!20] fill between[of=C and A, soft clip={domain=0:0.51}];
\addplot[olive!20] fill between[of=B and C, soft clip={domain=0.5:16/7}];
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{perspective,patterns.meta}
\makeatletter
\tikzset{pics/3d cylinder z/.style={code={
\tikzset{3d/cylinder/.cd,#1}
\def\pv##1{\pgfkeysvalueof{/tikz/3d/cylinder/##1}}
\edef\mylocalaz{\pgf@view@az}
\draw[/tikz/3d/cylinder/mantle,pic actions]
plot[domain=\pgf@view@az:\pgf@view@az-180,variable=\t,smooth]
({\pv{r}*cos(\t)},
{\pv{r}*sin(\t)},0)
--
plot[domain=\mylocalaz-180:\mylocalaz,variable=\t,smooth]
({\pv{r}*cos(\t)},
{\pv{r}*sin(\t)},
\pv{h})
-- cycle;
\draw[/tikz/3d/cylinder/top,pic actions]
plot[domain=0:360,variable=\t,smooth cycle]
({\pv{r}*cos(\t)},
{\pv{r}*sin(\t)},
\pv{h});
\pgfkeys{/tikz/3d/cylinder/extra}
}},
3d/.cd,cylinder/.cd,r/.initial=0.3,h/.initial=4,extra/.code={},
top/.style={fill=white,postaction={pattern={Lines[angle=-45,distance={3pt}]}}},
mantle/.style={fill=white}}
\makeatother
\begin{document}
\makeatletter
\tikzset{pics/3d cylinder z/.style={code={
\tikzset{3d/cylinder/.cd,#1}
\def\pv##1{\pgfkeysvalueof{/tikz/3d/cylinder/##1}}
\edef\mylocalaz{\pgf@view@az}
\draw[/tikz/3d/cylinder/mantle,pic actions]
plot[domain=\pgf@view@az:\pgf@view@az-180,variable=\t,smooth]
({\pv{r}*cos(\t)},
{\pv{r}*sin(\t)},0)
--
plot[domain=\mylocalaz-180:\mylocalaz,variable=\t,smooth]
({\pv{r}*cos(\t)},
{\pv{r}*sin(\t)},
\pv{h})
-- cycle;
\draw[/tikz/3d/cylinder/top,pic actions]
plot[domain=0:360,variable=\t,smooth cycle]
({\pv{r}*cos(\t)},
{\pv{r}*sin(\t)},
\pv{h});
\pgfkeys{/tikz/3d/cylinder/extra}
}},
3d/.cd,cylinder/.cd,r/.initial=0.3,h/.initial=4,extra/.code={},
top/.style={fill=white,postaction={pattern={Lines[angle=-45,distance={3pt}]}}},
mantle/.style={fill=white}}
\makeatother
\begin{tikzpicture}[line cap=round,line join=round,declare function={az=0;R=1.6;}]
\begin{scope}[3d view={az}{35}]
\draw plot[smooth,variable=\t,domain=00:180]
({R*cos(\t+az)},{R*sin(\t+az)},4);
\path foreach \Y in {1,2,3,4}
{ foreach \X in {1,-1}
{({cos(\Y*\X*45-\X*45/2+az+90)},{sin(\Y*\X*45-\X*45/2+az+90)},0)
pic{3d cylinder z}}
\ifnum\Y=2
(0,0,0) pic{3d cylinder z}
\fi
};
\draw[fill=white] plot[smooth,variable=\t,domain=00:-180]
({R*cos(\t+az)},{R*sin(\t+az)},4) --
plot[smooth,variable=\t,domain=-180:00]
({R*cos(\t+az)},{R*sin(\t+az)},0) -- cycle;
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsthm,amsmath,amssymb, verbatim}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=0.6]
\node[left] (P1) at (0, 0) {$2\mathsf{X}$};
\node[right] (P2) at (1, 0) {$3\mathsf{X}$};
\node[left] (P3) at (0,-1) {$\mathsf{X+Y}$};
\node[right] (P4) at (1,-1) {$2\mathsf{Y}$};
\node[left] (P5) at (0,-2) {$\mathsf{Y}$};
\node[right] (P6) at (1,-2) {$\mathsf{0}$};
\draw[->] (P1) to node[above] {\footnotesize $\kappa_1$} (P2);
\draw[->] (P3) to node[above] {\footnotesize $\kappa_2$} (P4);
\draw[->] (P5) to node[above] {\footnotesize $\kappa_3$} (P6);
\node at (8,-1) {$\begin{aligned}\dot{x} &= \kappa_1 x^2 - \kappa_2 xy, \\ \dot{y} &= \kappa_2 xy - \kappa_3 y, \\\end{aligned}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[every node/.style={above=2ex,anchor=base},every coordinate node/.style={above=-2ex,anchor=base}]
\coordinate (A) at (0,0);
\draw (0,0) node {\( O \)}-- (2,2) node {\( X \)};
\draw[very thick,red] (A) -- (1,1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\tikzset{
help lines/.style={gray,very thin}
}
\begin{document}
\begin{tikzpicture}
\draw[help lines] (0,0) grid (3,2);
\draw (0,0) -- (1,1) -- (1,0);
\draw[rotate=40,blue] (0,0) -- (1,1) -- (1,0);
\draw[rotate=-20,red] (0,0) -- (1,1) -- (1,0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{
graphs,
graphs.standard
}
\tikzset{>=stealth}
\begin{document}
\tikz \graph { subgraph K_n [<->, n=5, clockwise, radius=6mm] };
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usepackage{siunitx}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[cV=$k\cdot a_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{color, colortbl, xcolor}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=1.18}
\usetikzlibrary{shapes.callouts}
\begin{document}
\begin{tikzpicture}
\begin{axis}[legend pos=north west,xlabel={String Length $\ell$},ylabel={Runtime (s)},xtick distance = 2,ytick distance = 4^2,xmin=1, xmax=21,ymin=4^-4, ymax=4^12,ymajorgrids=true,grid style=dashed,/pgf/number format/.cd,1000 sep={},ymode=log,log basis y={4}]\addplot[color=blue, mark=*,] coordinates {(2,0.00589784)(3,0.00645251)(4,0.00805009)(5,0.00818167)(6,0.00974104)(7,0.03192200)(8,0.06803020)(9,0.09131590)(10,0.173263)(11,0.524698)(12,1.71853)(13,5.055211)(14,17.8179)(15,65.2633)(16,169.29)(17,850.775786)(18,2592.195)(19,183431)(20,1124200.26016)(21,2528289.71433)};
\addplot[color=orange, mark=*,] coordinates {(2,0.0116822)(3,0.0232844)(4,0.0272557)(5,0.0516464)(6,0.0640869)(7,0.197367)(8,0.825206)(9,4.30357)(10,16.2998)(11,72.604)(12,332.064)(13,960.543)(14,3546.34)(15,14390.7)};
\legend{Binary Feasible Triplet, Feasible Triplet}
\end{axis}\draw[black, thick] (7.5,3.5) -- (6.25,4.25);
\node[draw, align=center, font=\fontsize{10pt}{10pt}\selectfont] at (8.9,3.5) {switch to \\ external memory};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb,amsmath,amsthm,epsfig,verbatim,pstricks,url}
\usepackage{tikz,pgfplots,tikz-3dplot,makecell}
\usetikzlibrary{fit}
\newcommand{\ek}{e}
\newcommand{\addvmargin}[1]{\node[fit=(current bounding box),inner ysep=#1,inner xsep=0]{}
;
}
\begin{document}
\begin{tikzpicture}[scale=0.5,baseline=40]
\begin{axis}[axis equal,axis line style=thick,axis lines=center, xtick style ={draw=none}, ytick style ={draw=none}, xticklabels = {}, yticklabels = {}, xmin=-0.1, xmax = 2, ymin = -2, ymax = 2]\addplot[mark=*,color=blue,mark size=6pt] coordinates {(2,1)};
\draw[<->,line width=3pt,color=red] (axis cs:1.5,0.7) -- (axis cs:2.5,0.7);
\draw[thick,color=blue] (axis cs:-2,1) -- (axis cs:4,1);
\node at (axis cs:0.5,-0.3){\Large$\vec\ek_1$};
\node at (axis cs:-0.3,0.5){\Large$\vec\ek_2$};
\end{axis}\addvmargin{1mm}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[american]{circuitikz}
\usetikzlibrary{arrows.meta, positioning}
\begin{document}
\begin{tikzpicture}
\draw (0,0) node[nigfetebulk](T1){} ;
\draw (0,-2) node[sground]{} to (T1.S)coordinate(aux);
\draw (-2,-2) node[sground]{} to [V, invert]coordinate(vg) node[right=8pt of vg ](v2){$V_2$} node[below right=18pt and 10pt of vg]{$V_{gs}$} (-2,-1) |- (T1.G);
\draw (-4,0) node[sground]{} to [V, invert]coordinate(vd) node[right=12pt of vd ](v1){$V_1$} node[below right=12pt and 12pt of vd]{1.2} (-4,1) to [short]++(0,1) -| (T1.D);
\draw (T1.center) node[above right]{$M1$} node[below right]{$NMOS$} --++(2,0) |-(aux) to [short,-*](aux) ;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsthm, amscd, bm}
\usepackage{tikz}
\usetikzlibrary{arrows,calc,matrix,topaths,positioning,scopes,shapes,decorations,decorations.markings}
\usepackage{tikz-cd}
\usepackage[utf8x]{inputenc}
\begin{document}
\begin{tikzpicture}[baseline=-0.4ex,scale=0.5,>=stealth]
\draw [fill=gray!45,gray!45] (-.7,-.75) rectangle (.4,.75) ;
\draw[->] (0.4,-0.75) to (.4,.75);
\draw[line width=1.2] (0.4,-0.3) to (0,-.3);
\draw[line width=1.2] (0.4,0.3) to (0,.3);
\draw[line width=1.1] (0,0) ++(90:.3) arc (90:270:.3);
\draw (0.65,0.3) node {\scriptsize{$+$}};
\draw (0.65,-0.3) node {\scriptsize{$-$}};
\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 [no placement]
{
a[x=0,y=0] -> b[x=1,y=0] -> c[x=0,y=1];
};
\end{document}
\documentclass[tikz, border=2pt]{standalone}
\begin{document}
\begin{tikzpicture}
\foreach \y in {3,4,5} {
\foreach \x in {2,3,4,5}{\draw[thick] (\x,2) -- (\y,0);}
\foreach \x in {0,1}{\draw[dashed, blue, thick] (\x,2) -- (\y,0);}
}
\foreach \y in {0,1,2} {
\foreach \x in {0,1}{\draw[thick] (\x,2) -- (\y,0);}
}
\draw[red, thick] (4,2) -- (4,0) -- (3,2);
\draw[red, thick] (5,2) -- (5,0);
\node at (-0.5,2) {$B$};
\node at (-0.5,0) {$A$};
\foreach \x in {0,1,2,3,4,5} {
\draw[fill] (\x,2) circle (0.1);
\draw[fill] (\x,0) circle (0.1);
}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,intersections,through,backgrounds}
\begin{document}
\begin{tikzpicture}[thick,help lines/.style={thin, draw=black!50}]
\colorlet{input}{blue!80!black}
\colorlet{output}{red!70!black}
\colorlet{triangle}{orange}
\def\A{\textcolor{input}{$A$}}
\def\B{\textcolor{input}{$B$}}
\def\C{\textcolor{output}{$C$}}
\def\D{$D$}
\def\E{$E$}
\coordinate [label=left:\A] (A) at ($ (0,0) + .1*(rand,rand) $);
\coordinate [label=right:\B] (B) at ($ (1.25,0.25) + .1*(rand,rand) $);
\draw [input] (A) -- (B);
\node [name path=D,help lines,draw,label=left:\D] (D) at (A) [circle through=(B)] {};
\node [name path=E,help lines,draw,label=right:\E] (E) at (B) [circle through=(A)] {};
\path [name intersections={of=D and E, by={[label=above:\C]C}}];
\draw [output] (A) -- (C) -- (B);
\foreach \point in {A,B,C}
\fill [black, opacity=.25] (\point) circle (3pt);
\begin{pgfonlayer}{background}
\fill[triangle!80] (A) -- (C) -- (B) -- cycle;
\end{pgfonlayer}
\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 [
scientific axes, x axis={label=$x$},
visualize as smooth line/.list=
{log, lin, squared, exp},
legend={anchor=north west, at=
(data visualization bounding box.north east)},
log= {label in legend={text=$\log x$}},
lin= {label in legend={text=$x/2$}},
squared={label in legend={text=$x^2$}},
exp= {label in legend={text=$e^x$}},
style sheet=vary dashing]
data group {function classes};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{cd}
\usetikzlibrary{decorations.markings}
\usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.text}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{arrows}
\usetikzlibrary{positioning}
\usepackage{amssymb}
\usepackage{amsmath}
\newcommand{\embeds}{\hookrightarrow}
\begin{document}
\begin{tikzpicture}
\path[draw, ->] (-0.5, 0) ++(10:0.5) arc(10:350:0.5) node[midway, left] {$ a $};
\path[fill] (0, 0) circle[radius=0.05];
\path (1, 0) node {$ \embeds $};
\begin{scope}[shift={(3.5, 0)}]
\path[draw, ->] (-0.5, 0) ++(10:0.5) arc(10:350:0.5) node[midway, left] {$ a $};
\path[fill] (0, 0) circle[radius=0.05];
\path[draw, ->] (0.1, 0.1) to[out=30, in=150] node[midway, above] {$ b $} (0.9, 0.1);
\path[draw, ->] (0.9, -0.1) to[out=210, in=330] node[midway, below] {$ c $} (0.1, -0.1);
\path[fill] (1, 0) circle[radius=0.05];
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis x line=middle,
axis y line=right,
ymax=1.1, ymin=-1.1,
xlabel=$x$,ylabel=$\sin x$,
]
\addplot [
blue,mark=none,
domain=-10:0,samples=40,
] {sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[american voltages]
\draw (0,0) to[R, v_<=$v_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.7]
\draw[thick](0,0) arc (30:330:2);
\draw[thick,dashed] (0,-1.99) arc (330:390:2);
\fill (0,0) circle (.1);
\node at (0.5,0) [right]{the tail};
\fill (0,-2) circle (.1);
\node at (0.5,-2) [right]{the head};
\draw [thick,->](-1.7,1) -- (-1.7,-3);
\node [above] at(-1.5,1){sign($c$)};
\node [below]at(-1.5,-3){$-$sign($c$)};
\node [below]at(-1.5,-4){$G(D)$};
\node[right] at (-1.5,-1){$c$};
\draw [thick,->](-0.4,0.5) -- (-3.03,0.5);
\draw [thick,<-](-0.44,-2.5) -- (-3.075,-2.5);
\node [below]at(-1,0.5){$r_i(c)$};
\node [above] at(-1,-2.5){$l_j(c)$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[level distance=10mm,sibling distance=5mm]
\node {root} [grow=down]
child { node {1} }
child { node {2} }
child { node {3} }
child[missing] { node {4} }
child { node {5} }
child { node {6} };
\end{tikzpicture}
\end{document}