AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{units}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
change x base,
x SI prefix=kilo,x unit=m,
y SI prefix=milli,y unit=N,
xlabel=Distance,ylabel=Force,
]
\addplot coordinates {
(1000,1)
(2000,1.1)
(3000,1.2)
(4000,1.3)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzset{
>=stealth,
place/.style={
circle,
draw=blue!50,
fill=blue!20,
thick,
minimum size=6mm
},
transition/.style={
rectangle,
draw=black!50,
fill=black!20,
thick,
minimum size=4mm
}
}
\begin{document}
\begin{tikzpicture}
\node[place] (waiting) {};
\node[place] (critical) [below=of waiting] {};
\node[place] (semaphore) [below=of critical] {};
\node[transition] (leave critical) [right=of critical] {};
\node[transition] (enter critical) [left=of critical] {};
\draw [->] (enter critical.east) -- (critical.west);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [
sharp plot,
] coordinates {
(0,0) (1,2) (2,3)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots, pgfplotstable, filecontents}
\pgfplotsset{compat=newest}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{amssymb}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[scale=0.29,font=\large]
\begin{axis}[
ybar,
title=\LARGE{CS},
legend style={at={(0.01,0.98)},anchor=north west},
symbolic x coords={$k=3$,$k=11$,$k=19$},
bar width=8pt,bar shift=-0.2cm,
legend entries={accuracy},
legend image code/.code={
\draw[#1] (0cm,-0.1cm) rectangle (0.3cm,0.1cm);
},
height = 7.5cm,
xtick=data,
axis y line*=left,
ylabel=accuracy,
ymin = 0.94,
ymax = 1.01,
every tick label/.append style={font=\Large}
]
\addplot[black,fill=red!50,postaction={pattern=north east lines},error bars/.cd,
y dir=both,
y explicit relative] coordinates {
($k=3$,0.98) +- (0,0.00424871)
($k=11$,0.99) +- (0,0.004773033)
($k=19$,0.989) +- (0,0.005196659)
};
\end{axis}
\begin{axis}[
ybar,
legend style={at={(0.01,0.88)},anchor=north west},
symbolic x coords={$k=3$,$k=11$,$k=19$},
bar width=8pt,bar shift=0.2cm,
legend entries={time},
legend image code/.code={
\draw[#1] (0cm,-0.1cm) rectangle (0.3cm,0.1cm);
},
height = 7.5cm,
xtick=data,
ylabel=seconds,
axis y line*=right,
ymin = 10,
ymax = 320,
every tick label/.append style={font=\Large}
]
\addplot[black,fill=green!50,error bars/.cd,
y dir=both,
y explicit relative] coordinates {
($k=3$, 62.3829773) +- (0,0.0179213872)
($k=11$, 180.1571909) +- (0,0.0193403171)
($k=19$, 310.6456102) +- (0,0.01800464576)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[symbolic x coords={A,B,C,D}]
\addplot coordinates {(A,0) (B,1) (C,1) (D,2)}
[left]
node [pos=0.3] {
\pgfplotspointplotattime
$(\pgfkeysvalueof{/data point/x},
\pgfmathprintnumber
{\pgfkeysvalueof{/data point/y}})$
}
node [pos=0.7,pin=180:{
\pgfplotspointplotattime{0.7}
$(\pgfkeysvalueof{/data point/x},
\pgfmathprintnumber
{\pgfkeysvalueof{/data point/y}})$
}] {}
;
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsthm,amsxtra}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage{graphicx,subfigure,bookmark,tikz,pgfplots,url,transparent,pdflscape}
\usetikzlibrary{matrix,positioning,decorations.markings,arrows,decorations.pathmorphing,backgrounds,fit,shapes.symbols,chains,shadings,fadings,calc}
\tikzset{->-/.style={decoration={markings, mark=at position #1 with {\arrow{>}
}},postaction={decorate}}}\tikzset{-<-/.style={decoration={markings, mark=at position #1 with {\arrow{<}
}},postaction={decorate}}}
\begin{document}
\begin{tikzpicture}[scale=.5,xscale=1,ar/.style={-,thick}]
\draw(0,0)node(v1){$s_1$}(2,0)node(v2){$s_2$}(4,0)node(v4){$s_4$}(6,0)node(v5){$s_5$}(8,0)node(v6){$\cdots$}(10,0)node(vn){$s_n.$}(4,2)node(v3){$s_3$};
\draw[ar](v2)edge(v1)edge(v4);
\draw[ar](v3)edge(v4);
\draw[ar](v5)edge(v6)edge(v4);
\draw[ar](v6)edge(vn);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{amsmath}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}[scale=.5]
\draw[->][black] (0,0) -- (10,0);
\draw[->][black] (0,0) -- (0,8);
\filldraw[gray!40!white,opacity=.5,draw=gray] (4,1) rectangle (6,3);
\filldraw[red!40!white,opacity=.5,draw=red] (5,5) rectangle (4,3);
\filldraw[green!40!white,opacity=.5,draw=green] (5,5) rectangle (6,3);
\filldraw[blue!40!white,opacity=.5,draw=blue] (8,7) rectangle (6,5);
\filldraw[draw=black,fill=red!70!white] (3.9,0.9) rectangle (4.1,1.1) (5.9,2.9) rectangle (6.1,3.1) (4.9,4.9) rectangle (5.1,5.1) (7.9,6.9) rectangle (8.1,7.1);
\filldraw[blue] (4,3) circle (3.5pt) (4,5) circle (3.5pt) (6,5) circle (3.5pt) (6,7) circle (3.5pt);
\draw[black](10.8,0.4)node[anchor=north]{Key} (0,9)node[anchor=north]{Time};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{A-[:25]B*4(----)}\vskip5pt
\chemfig{A=[:-30]*6(=-=-=-)}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{A-B([:60]-D-E)([::-30,1.5]-X-Y)-C}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\definecolor{teal}{rgb}{0.0, 0.5, 0.5}
\tkzSetUpColors[background=white,text=black]
\tkzSetUpPoint[size=2,color=teal]
\tkzSetUpLine[line width=.2pt,color=teal]
\tikzset{
every picture/.style={line width=.2pt},
new/.style={color=orange,line width=.2pt},
label style/.append style={below,color=teal,font=\scriptsize}
}
\begin{document}
\begin{tikzpicture}[scale=1]
\tkzDefPoint(0,0){O}
\tkzDefPoint(1,0){A}
\tkzDrawCircle(O,A)
\tkzDefPoint(-1.5,-1.5){z1}
\tkzDefPoint(1.5,-1.25){z2}
\tkzDefCircle[orthogonal through=z1 and z2](O,A)
\tkzGetPoint{c}
\tkzDrawCircle[new](tkzPointResult,z1)
\tkzDrawPoints[new](O,A,z1,z2,c)
\tkzLabelPoints[right](O,A,z1,z2,c)
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path ( 0,2) node [shape=circle,draw] {}
( 0,1) node [shape=circle,draw] {}
( 0,0) node [shape=circle,draw] {}
( 1,1) node [shape=rectangle,draw] {}
(-1,1) node [shape=rectangle,draw] {};
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=1pt]{standalone}
\begin{document}
\begin{tikzpicture}
\fill[blue!15, fill opacity=0.5]
(-1,0) -- (-1.8, 2.5) -- (0.9, 2.5) -- (1,0) -- (1.8, -2.5) -- (-0.9, -2.5);
\draw[thick] (-2.5, 0) -- (2.5, 0);
\draw[-latex] (0,0) -- (2.5, 0);
\draw[thick] (-1,0) -- (-1.8, 2.5) node[left] {$y=y_1+v_2t$};
\draw[thick] (-1,0) -- (-0.9, -2.5) node[left] {$y=y_1+v_1t$};
\draw[thick] (1,0) -- (0.9, 2.5) node[right] {$y=y_2+v_1t$};
\draw[thick] (1,0) -- (1.8, -2.5) node[right] {$y=y_2+v_2t$};
\node at (2.5, -0.3) {$y$};
\node at (-1.2, -0.3) {$y_1$};
\node at (1.35, -0.3) {$y_2$};
\node at (-0.2, 1.4) {$C$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{bending}
\newcommand{\Alg}{\mathcal{A}
}\newcommand{\Sig}{\varSigma}
\newcommand{\Blg}{\mathcal{B}
}\newcommand{\AlgFunc}[2]{\mathsf{A}
_{#1}#2}\newcommand{\SigFunc}[1]{\mathsf{S}
#1}\newcommand{\Clg}{\mathcal{C}
}
\begin{document}
\begin{tikzpicture}[scale=.8]
\draw (-1.8,1.5) circle (1cm and 1.3cm);
\draw (1.8,1.5) circle (1cm and 1.3cm);
\draw (-1.8,0) circle (1cm and 1.3cm);
\draw (1.8,0) circle (1cm and 1.3cm);
\draw (-3.2,1.5) node {$\Alg$};
\draw (-5.4,1.5) node {$\Sig$};
\draw (3.2,1.5) node {$\Blg$};
\draw (-3.4,0) node {$\AlgFunc{T}a$};
\draw (-5.4,0) node {$\SigFunc{T}$};
\draw (3.2,0) node {$\Clg$};
\draw (-5.4,-1.7) node {$\Sig'$};
\draw (-1.8,-1.7) node {$\Alg'$};
\draw (1.8,-1.7) node {$\Blg'$};
\path[->] (-0.8,1.5) edge node [above, font=\footnotesize]{$k$} (0.8,1.5);
\path[->] (-0.8,0) edge node [above, font=\footnotesize]{$h$} (0.8,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,mathtools}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\tikzstyle{hackennode}=[draw,circle,inner sep=0,minimum size=4pt]
\tikzstyle{hackenline}=[line width=3pt]
\draw[hackenline,black] (0,0) -- (4,0);
\node[hackennode][fill= white] (1) at (2,0) {};
\node[hackennode][fill= white] (2) at (0,2) {};
\node[hackennode][fill= white] (3) at (4,2) {};
\draw[hackenline,blue] (1) -- (2);
\draw[hackenline,red] (1) -- (3);
\draw[hackenline,blue] (2) -- (3);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{calc}
\tikzset{v/.style={to path={\pgfextra{\pgfinterruptpath\pgfmathanglebetweenpoints{\pgfpointanchor{\tikztostart}
{center}}{\pgfpointanchor{\tikztotarget}{center}}\let\a\pgfmathresult\coordinate(s)at(\tikztostart.\a);
\coordinate(t)at(\tikztotarget.\a+180);
\coordinate(m)at($(s)!.5!(t)$);
\draw[-stealth]($(s)!1mm!-90:(t)$)--($(t)!1mm!90:(s)$)coordinate[pos=.5](f);
\node[font=\tiny]at($(m)!2.5mm!(f)$){a};
\draw[-stealth]($(t)!1mm!-90:(s)$)--($(s)!1mm!90:(t)$)coordinate[pos=.5](o);
\node[font=\tiny]at($(m)!2.5mm!(o)$){b};
\endpgfinterruptpath}(\tikztostart)--(\tikztotarget)}}}
\begin{document}
\begin{tikzpicture}
\draw node[draw](a){large node}++(3,0)node[draw](b){other node}edge[v](a);
\draw(0,-1)node[draw](a2){large node}++(3,0)node[draw](b2){other node}edge[v](a2);
\draw(0,-2)node[draw](a3){large node}++(3,0)node[draw](b3){n}edge[v](a3);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
}
\begin{document}
\chemfig{A*4(-B-C-D-)}\qquad\chemfig{A*6(------)}
\end{document}
\documentclass[border=5mm,tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[<->](-.5,0)--(.5,0);
\draw[<->](0,.5)--(0,-.5);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\ctikzset{
logic ports=ieee,
logic ports/scale=0.7,
}
\begin{document}
\begin{circuitikz}

\ctikzset{logic ports/fill=cyan!30!white}


\draw[red] (-0.5,3) -- (-0.5, -1);
\draw[red] (1.5,3) -- (1.5, -1);


\draw
(0,2) node[and port](myand1){1}
(0,0) node[and port, fill=cyan, fill opacity=0.7](myand2){2}
(2,1) node[xnor port, circuitikz/logic ports/fill=none](myxnor){3}
(myand1.out) -| (myxnor.in 1)
(myand2.out) -| (myxnor.in 2);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=2mm]{standalone}
\usetikzlibrary{arrows}
\usepackage{datenumber}
\usepackage{xifthen}
\begin{document}
\setdatenumber{2013}{06}{19}
\begin{tikzpicture}
\draw[-stealth] (0,0) -- (16.3,0);
\foreach \x in {0,...,80}
{ \draw (\x/5,0) -- (\x/5,-0.05) node[left,rotate=90,font=\tiny] {\thedateday-\thedatemonth-\thedateyear};
\addtocounter{datenumber}{7}
\setdatebynumber{\thedatenumber}
}
\setdatenumber{2013}{06}{19}
\foreach \x in {0,...,560}
{ \ifthenelse{\thedateday = 1}
{ \ifcase\thedatemonth
\or \xdef\monthname{Jan}\or \xdef\monthname{Feb}\or \xdef\monthname{Mar}
\or \xdef\monthname{Apr}\or \xdef\monthname{May}\or \xdef\monthname{Jun}
\or \xdef\monthname{Jul}\or \xdef\monthname{Aug}\or \xdef\monthname{Sep}
\or \xdef\monthname{Oct}\or \xdef\monthname{Nov}\or \xdef\monthname{Dec}
\fi
\draw (\x/35,0) -- (\x/35,0.25) node[right,rotate=90,font=\tiny] {\monthname\ \thedateyear};
}{}
\addtocounter{datenumber}{1}
\setdatebynumber{\thedatenumber}
}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[small,title=Don't,samples=2]\addplot{4*x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsthm}
\usepackage{amssymb,amsfonts}
\usepackage{tikz}
\usepackage{xcolor}
\usetikzlibrary{arrows,matrix,calc,scopes,decorations.markings}
\begin{document}
\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1, baseline=(XXXX.south) ]
\path (0,80);
\path (27.99651336669922,0);
\draw ($(current bounding box.center)+(0,0.3em)$) node [anchor=south] (XXXX) {};
\draw (15,7) -- (15,39.54) ;
\draw [shift={(15,23.27)}, rotate = 90] [fill={rgb, 255:red, 0;
green, 0;
blue, 0 } ][line width=0.08] [draw opacity=0] (5.36,-2.57) -- (0,0) -- (5.36,2.57) -- cycle ;
\draw [fill={rgb, 255:red, 255;
green, 255;
blue, 255 } ,fill opacity=1 ] (5.65,48.88) .. controls (5.65,43.72) and (9.84,39.54) .. (15,39.54) .. controls (20.16,39.54) and (24.34,43.72) .. (24.34,48.88) .. controls (24.34,54.05) and (20.16,58.23) .. (15,58.23) .. controls (9.84,58.23) and (5.65,54.05) .. (5.65,48.88) -- cycle ;
\draw (15,58.23) -- (15,74.77) ;
\draw (1,23.4) node [anchor=north west][inner sep=0.75pt] {\small $\mu $};
\draw (10,43.4) node [anchor=north west][inner sep=0.75pt] {\small $g$};
\draw (5,-5.6) node [anchor=north west][inner sep=0.75pt] {\small $m_{\mu }$};
\draw (8,75) node [anchor=north west][inner sep=0.75pt] {\small $n_{\mu }$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path (1,1) node [draw=red](A){};
\draw (1,0) -- (A) -- (2,1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{tikz, tikz-cd}
\begin{document}
\begin{tikzpicture}[scale=.4]
\draw (0,0) circle (4) (0,0) circle (1);
\draw[fill] (0,1) circle (0.1) (0,4) circle (0.1) (4,0) circle (0.1) (-4,0) circle (0.1);
\draw[red] (4,0) to[out=-120,in=0] (0,-3) to[out=180,in=-90] (-3,0) to[out=90,in=-155] (0,4);
\draw[blue] (-4,0) to[out=-60,in=180] (0,-3) to[out=0,in=-90] (3,0) to[out=90,in=-25] (0,4);
\draw (0,4) to[out=-50,in=90] (2,0) to[out=-90,in=0] (0,-2) to[out=180,in=-90] (-2,0) to[out=90,in=-130] (0,4);
\node at (0,-5) {\( X_1 \)};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=.65]
\draw(-4.2,-4.2)rectangle(4.2,4);
\fill[pink](-4,0)rectangle(4,3.8);
\filldraw[white](0,0)--(2.2,0)arc(0:180:2.2);
\filldraw[pink](0,0)--(-2.2,0)arc(180:360:2.2);
\draw[thick,red,->](-4,0)--(4,0);
\draw(.5,0)node[below]{$\infty_{\mathrm{II}}$}(3.6,0)node[below]{$\mathrm{Re}z$};
\draw[thick,->](0,-4)--(0,4);
\draw(-.3,3.6)node[left]{$\mathrm{Im}z$};
\draw[red,thick](0,0)circle(2.2);
\draw[fill](0,2.2)circle(.05);
\draw(-.2,2.5)node[left]{$iq_0$};
\draw[fill](0,-2.2)circle(.05);
\draw(-.2,-2.5)node[left]{$-iq_0$};
\draw[thick,red,->](-4,0)--(-3,0);
\draw[thick,red,->](0,0)--(-1,0);
\draw[thick,red,->](2,0)--(1,0);
\draw[thick,red,->](2,0)--(3,0);
\draw[thick,red,->](-1.5,1.61)--(-1.49,1.621);
\draw[thick,red,->](-1.5,-1.61)--(-1.49,-1.621);
\draw[thick,red,->](1.49,1.621)--(1.5,1.61);
\draw[thick,red,->](1.49,-1.621)--(1.5,-1.61);
\draw[thick](-3,2.5)node[above]{$D_1$}--(-3,2.5);
\draw[thick](-3,-2.5)node[below]{$D_2$}--(-3,-2.5);
\draw[thick](1,-.8)node[below]{$D_3$}--(1,-.8);
\draw[thick](1,.8)node[above]{$D_4$}--(1,.8);
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=2pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.13, colormap/viridis}
\begin{document}
\begin{tikzpicture}
\begin{axis}[trig format=rad, view={40}{45}]
\addplot3+[
no marks,
mesh,
domain=-pi/2:pi/2,
y domain=0:2*pi,
samples=61,
samples y=61
] ({cos(x)*cos(y)}, {cos(x)*sin(y)}, {1 + 0.2*sin(x)*sin(y)});
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\tikz \datavisualization
[scientific axes,
x axis={attribute=people, length=2.5cm, ticks=few},
y axis={attribute=year, scaling=1900 at 0cm and 2000 at 5cm},
visualize as scatter]
data {
year, people
1900, 100
1910, 200
1950, 200
1960, 250
2000, 150
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot {x}
[left,/pgf/number format/relative=0]
node [pos=0.5] {
\pgfplotspointplotattime
$(\pgfmathprintnumber
{\pgfkeysvalueof{/data point/x}},
\pgfmathprintnumber
{\pgfkeysvalueof{/data point/y}})$
}
node [pos=0.25] {
\pgfplotspointplotattime
$(\pgfmathprintnumber
{\pgfkeysvalueof{/data point/x}},
\pgfmathprintnumber
{\pgfkeysvalueof{/data point/y}})$
}
node [pos=0.7,pin=180:{
\pgfplotspointplotattime{0.7}
$(\pgfmathprintnumber
{\pgfkeysvalueof{/data point/x}},
\pgfmathprintnumber
{\pgfkeysvalueof{/data point/y}})$
}] {}
;
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\setchemfig{cram width=5pt, bond join}
\chemfig{-[,,,,line width=3pt]>[:30]}\qquad
\chemfig{-[,,,,line width=3pt]>[:65]}
\end{document}
\documentclass[border=3pt,tikz]{standalone}
\tikzset{
>=latex,
block/.style={inner xsep=8,inner ysep=9,fill=red!60!black},
bin/.style={inner xsep=8,inner ysep=3,fill=white,above=1},
arrow/.style={->,thick,blue!50!black,shorten <=1,shorten >=4}
}
\begin{document}
\begin{tikzpicture}
\def\w{1}
\def\h{.8}
\def\bin{++ (\w/2,.3*\h) |-++ (-\w,-.4*\h) --++ (0,.4*\h)}
\node[block] (S1-1) at (0,0) {};
\node[block] (S2-1) at (-\w,-\h) {};
\node[block] (S2-2) at (\w,-\h) {};
\node[block] (S3-1) at (-2*\w,-2*\h) {};
\node[block] (S3-2) at (0,-2*\h) {};
\node[block] (S3-3) at (2*\w,-2*\h) {};
\node[bin] (S4-1) at (-3*\w,-3*\h) {0};
\node[bin] (S4-2) at (-\w,-3*\h) {1};
\node[bin] (S4-3) at (\w,-3*\h) {2};
\node[bin] (S4-4) at (3*\w,-3*\h) {3};
\fill[blue!40!black] (90:0.6*\h) circle (2pt);
\draw[arrow] (S1-1.110) to[out=110,in=80,looseness=1.5] (S2-1.85) node[midway,above left=15,blue!40!black] {L};
\draw[arrow] (S1-1.70) to[out=70,in=100,looseness=1.5] (S2-2.95) node[midway,above right=15,blue!40!black] {R};
\draw[arrow] (S2-1.110) to[out=110,in=80,looseness=1.2] (S3-1.85);
\draw[arrow] (S2-1.70) to[out=70,in=100,looseness=1.2] (S3-2.95);
\draw[arrow] (S2-2.110) to[out=110,in=80,looseness=1.2] (S3-2.85);
\draw[arrow] (S2-2.70) to[out=70,in=100,looseness=1.2] (S3-3.95);
\draw[arrow] (S3-1.110) to[out=110,in=70,looseness=1.2] (S4-1.85);
\draw[arrow] (S3-1.70) to[out=70,in=110,looseness=1.2] (S4-2.95);
\draw[arrow] (S3-2.110) to[out=110,in=70,looseness=1.2] (S4-2.85);
\draw[arrow] (S3-2.70) to[out=70,in=110,looseness=1.2] (S4-3.95);
\draw[arrow] (S3-3.110) to[out=110,in=70,looseness=1.2] (S4-3.85);
\draw[arrow] (S3-3.70) to[out=70,in=110,looseness=1.2] (S4-4.95);
\draw[line width=2] (S4-1.south) \bin;
\draw[line width=2] (S4-2.south) \bin;
\draw[line width=2] (S4-3.south) \bin;
\draw[line width=2] (S4-4.south) \bin;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[>=latex',line join=bevel]
\draw (115bp, 392bp) node {\huge Fractal Block (3 expansions)};
\node (1_1) at (117.0bp,209.44bp) [draw,rectangle] {\hspace*{40pt}$$};
\node (2_2) at (207.0bp,209.44bp) [draw,rectangle] {\hspace*{40pt}$$};
\node (1_2) at (117.0bp,77.941bp) [draw,rectangle] {\hspace*{40pt}$$};
\node (2_4) at (207.0bp,77.941bp) [draw,rectangle] {\hspace*{40pt}$$};
\node (0_1) at (27.0bp,77.941bp) [draw,rectangle] {\hspace*{40pt}$$};
\node (A) at (117.0bp,345.44bp) [draw,rectangle] {\LARGE Gameboard};
\node (2_1) at (206.0bp,275.44bp) [draw,rectangle] {\hspace*{40pt}$$};
\node (B) at (75.0bp,13bp) [draw,rectangle] {\LARGE Action Map};
\node (E) at (155.0bp,15bp) [draw,circle,dotted, line width=1] {\huge $S$};
\node (2_3) at (207.0bp,143.44bp) [draw,rectangle] {\hspace*{40pt}$$};
\draw [dashed] (1_1) ..controls (156.03bp,209.44bp) and (168.0bp,209.44bp) .. (2_2);
\draw [dashed] (1_2) ..controls (156.03bp,77.941bp) and (168.0bp,77.941bp) .. (2_4);
\draw [dashed] (0_1) ..controls (66.034bp,77.941bp) and (77.997bp,77.941bp) .. (1_2);
\definecolor{c1}{rgb}{0.55,0.34,0.29}
\draw [c1,-stealth'] (A) ..controls (57.346bp,323.13bp) and (28.0bp,304.34bp) .. (28.0bp,275.44bp) .. controls (28.0bp,275.44bp) and (28.0bp,275.44bp) .. (28.0bp,143.44bp) .. controls (28.0bp,127.08bp) and (27.684bp,108.42bp) .. (0_1);
\draw (49.5bp,209.44bp) node {\huge $f_{2,0}$};
\definecolor{c2}{rgb}{0.58,0.4,0.74}
\draw [c2,-stealth'] (A) ..controls (117.0bp,309.9bp) and (117.0bp,254.88bp) .. (1_1);
\draw (138.5bp,275.44bp) node {\huge $f_{1,0}$};
\definecolor{c3}{rgb}{0.84,0.15,0.16}
\draw [c3,-stealth'] (A) ..controls (190bp,321.56bp) and (200bp,302.07bp) .. (2_1);
\draw (220bp,308.44bp) node {\huge $f_{0,0}$};
\draw [dotted, line width = 1] (75bp,78bp) -- (B);
\draw [dotted, line width = 1] (155bp,78bp) -- (E);
\draw [c2,-stealth'] (1_1) ..controls (117.0bp,182.3bp) and (117.0bp,124.56bp) .. (1_2);
\draw (138.5bp,143.44bp) node {\huge $f_{1,1}$};
\draw [c3,-stealth'] (2_1) ..controls (206.26bp,258.51bp) and (206.53bp,240.27bp) .. (2_2);
\draw (227.5bp,242.44bp) node {\huge $f_{0,1}$};
\draw [c3,-stealth'] (2_2) ..controls (207.0bp,192.51bp) and (207.0bp,174.27bp) .. (2_3);
\draw (228.5bp,176.44bp) node {\huge $f_{0,2}$};
\draw [c3,-stealth'] (2_3) ..controls (207.0bp,126.73bp) and (207.0bp,108.89bp) .. (2_4);
\draw (228.5bp,110.44bp) node {\huge $f_{0,3}$};
\draw [step=0.2,blue, very thick] (0.59,1.39) grid (1.2,2);
\draw [step=0.2,blue, very thick] (3.59,1.19) grid (4.6,2.2);
\draw [step=0.2,blue, very thick] (6.39,0.59) grid (8.2,2.4);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.gates.logic.US,plotmarks}
\begin{document}
\Huge
\begin{tikzpicture}
\node(s)[shape=nand gate US,inner sep=0cm,logic gate inputs={in},logic gate inverted radius=.5cm]{Nand Gate\vrule width1pt height2cm};
\foreach\anchor/\placement in{center/above,text/above,30/above right,mid/right,mid east/left,mid west/above,base/below,base east/below,base west/left,north/above,south/below,east/above,west/above,north east/above,south east/below,south west/below,north west/above,output/right,input 1/above,input 2/below}\draw[shift=(s.\anchor)]plot[mark=x]coordinates{(0,0)}node[\placement]{\scriptsize\texttt{(s.\anchor)}};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{*5((-A=B-C)-(-D-E)-(=)-(-F)-(-G=)-)}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{
decorations.markings
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
title=Decorated Graphics,
xmin=-2, xmax=2, ymin=-2, ymax=2,
xtick={-1,1}, ytick={-1,1},
yticklabel=\ ,
extra description/.code={
\node [below left] at (axis cs:0,-1) {$-1$};
\node [above left] at (axis cs:0,1) {$1$};
},
axis line style={->},
]
\addplot[
blue,
samples=100,
domain=0:2*pi,
postaction={decorate},
decoration={
markings,
mark=at position 0.25 with {\arrow{stealth}},
mark=at position 0.5 with {\arrow{stealth}},
mark=at position 0.75 with {\arrow{stealth}}
}
] ({sin(deg(2*x))}, {sin(deg(x))});
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\tikz \draw (-1.5,0) -- (1.5,0) -- (0,-1.5) -- (0,1.5);
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[]
\draw(1,-1) to[short] (1,1)
(0,0) to[short] (2,0);
\draw(4,-1) to[short] (4,1)
(3,0) to[short] (5,0)
(4,0) node[circ]{};
\end{circuitikz}
\end{document}