AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}
\foreach \angle in {0,45,...,315}
\node[rectangle,draw=black!50] (\angle) at (\angle:2) {\angle};
\foreach \from/\to in {0/45,45/90,90/135,135/180,
180/225,225/270,270/315,315/0}
\path (\from) edge [->,bend right=22,looseness=0.8] (\to)
edge [<-,bend left=22,looseness=0.8] (\to);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\usetikzlibrary{decorations.markings}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\catcode`_=11
\tikzset{nbond/.style args={#1}{
draw=none,
decoration={
markings,
mark=at position 0 with {\coordinate (CFstart@) at (0,0);},
mark=at position 1 with {
\foreach\CF_i in{0,1,...,\number\numexpr#1-1}{
\pgfmathsetmacro\CF_nbondcoeff{\CF_i-0.5*(#1-1)}
\draw ([yshift=\CF_nbondcoeff\CF_doublesep]CFstart@)--(0,\CF_nbondcoeff\CF_doublesep);
}
}
},
postaction={decorate}
}
}
\catcode`\_=8
\begin{document}
\catcode`_=11
\tikzset{nbond/.style args={#1}{
draw=none,
decoration={
markings,
mark=at position 0 with {\coordinate (CFstart@) at (0,0);},
mark=at position 1 with {
\foreach\CF_i in{0,1,...,\number\numexpr#1-1}{
\pgfmathsetmacro\CF_nbondcoeff{\CF_i-0.5*(#1-1)}
\draw ([yshift=\CF_nbondcoeff\CF_doublesep]CFstart@)--(0,\CF_nbondcoeff\CF_doublesep);
}
}
},
postaction={decorate}
}
}
\catcode`\_=8
\chemfig{A-[1,,,,nbond=4]B-[:-30,,,,nbond=5]C-[6,,,,nbond=6]D}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[colormap/viridis]
\addplot3 [
surf,
shader=flat,
draw=black,
samples=10,
domain=0:1,
] {x^2*y};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
cycle multiindex list={
red,blue,teal\nextlist
solid\\dotted,mark options={solid}\\only marks\\\nextlist
mark=*,mark=x,mark=oplus\nextlist
},
samples=3,
legend entries={0,...,20},
legend pos=outer north east,
]
\addplot {x};
\addplot {x-1};
\addplot {x-2};
\addplot {x-3};
\addplot {x-4};
\addplot {x-5};
\addplot {x-6};
\addplot {x-7};
\addplot {x-8};
\addplot {x-9};
\addplot {x-10};
\addplot {x-11};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
hide axis,
xlabel=$x$,ylabel=$y$,
mesh/interior colormap name=hot,
colormap/blackwhite,
]
\addplot3 [domain=-1.5:1.5,surf]
{-exp(-x^2-y^2)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb,amsmath,tikz}
\usetikzlibrary{topaths,calc}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\begin{document}
\begin{tikzpicture}
\tikzstyle{edge} = [->, line width=1pt]\tikzstyle{uedge} = [-, line width=1pt]\node (v3) at (0,2) {};
\node (e) at (10.5,3) {};
\node (v5) at (6,4.5) {};
\node (v6) at (6,3.5) {};
\node (v7) at (7.5,4.5) {};
\node (v8) at (7.5,3.5) {};
\node (u5) at (6,2.5) {};
\node (u6) at (6,1.5) {};
\node (u7) at (7.5,2.5) {};
\node (u8) at (7.5,1.5) {};
\node (v4) at (2,2) {};
\draw[edge] (v5) to (v6);
\draw[edge] (v6) to (v5);
\draw[edge] (v5) to (v7);
\draw[edge] (v7) to (v5);
\draw[edge] (v5) to (v8);
\draw[edge] (v8) to (v5);
\draw[edge] (v7) to (v6);
\draw[edge] (v8) to (v6);
\draw[edge] (v6) to (v8);
\draw[edge] (v7) to (v8);
\draw[edge] (v8) to (v7);
\draw[edge] (u6) to (u5);
\draw[edge] (u5) to (u7);
\draw[edge] (u7) to (u5);
\draw[edge] (u5) to (u8);
\draw[edge] (u8) to (u5);
\draw[edge] (u7) to (u6);
\draw[edge] (u8) to (u6);
\draw[edge] (u6) to (u8);
\draw[edge] (u7) to (u8);
\draw[edge] (u8) to (u7);
\draw[edge] (u5) to (e);
\draw[edge] (u6) to (e);
\draw[edge] (u7) to (e);
\draw[edge] (u8) to (e);
\draw[edge] (v5) to (e);
\draw[edge] (v6) to (e);
\draw[edge] (v7) to (e);
\draw[edge] (v8) to (e);
\draw[uedge] (v3) to (v4);
\filldraw[fill=yellow!70] (e) circle (0.2) node [right] {$~e$};
\foreach \v in {3,4,...,8} {\fill (v\v) circle (0.1);
}\foreach \u in {5,6,...,8} {\fill (u\u) circle (0.1);
}\filldraw[fill=red!70] (v3) circle (0.2) node [left] {$ ~u~ $};
\filldraw[fill=blue!70] (v4) circle (0.2) node [right] {$ ~v$};
\filldraw[fill=blue!70](v5) circle (0.1) node [above] {$v_1$};
\filldraw[fill=blue!70] (v6) circle (0.1) node[below] {$v_2$};
\filldraw[fill=blue!70] (v7) circle (0.1) node[above] {$v_3$};
\filldraw[fill=blue!70] (v8) circle (0.1) node [below] {$v_4$};
\filldraw[fill=red!70](u5) circle (0.1) node [above] {$u_1$};
\filldraw[fill=red!70] (u6) circle (0.1) node [below] {$u_2$};
\filldraw[fill=red!70] (u7) circle (0.1) node [above] {$u_3$};
\filldraw[fill=red!70] (u8) circle (0.1) node [below] {$u_4$};
\node at (1,2.2) {$e$};
\node at (1,1.5) {$G = (\{u,v\}, \{e\})$};
\node at (10,1.5) {$D_2(G)$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{quantikz}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}[scale = 1.8]
\draw[gray, thick] (0,1) -- (0,0);
\filldraw[black] (0,1) circle (2pt);
\draw[black] (0,0.12) circle (4pt);
\draw[gray, thick] (-0.14,0.13) -- (0.14,0.13);
\draw[gray, thick] (-1.14,1) -- (1.1,1);
\draw[gray, thick] (-1.14,0.13) -- (1.1,0.13);
\draw[gray, thick] (1.1,0.7) -- (1.1,1.3);
\draw[gray, thick] (1.9,0.7) -- (1.9,1.3);
\draw[gray, thick] (1.1,1.3) -- (1.9,1.3);
\draw[gray, thick] (1.1,0.7) -- (1.9,0.7);
\draw[gray, thick] (1.1,-0.17) -- (1.1, 0.43);
\draw[gray, thick] (1.9,-0.17) -- (1.9, 0.43);
\draw[gray, thick] (1.1, 0.43) -- (1.9, 0.43);
\draw[gray, thick] (1.1,-0.17) -- (1.9,-0.17);
\draw[gray, thick] (1.9,1) -- (2.3,1);
\draw[gray, thick] (1.9,0.13) -- (2.3,0.13);
\draw[gray, thick] (2.3,-0.17) -- (2.3, 0.43);
\draw[gray, thick] (3.1,-0.17) -- (3.1, 0.43);
\draw[gray, thick] (2.3, 0.43) -- (3.1, 0.43);
\draw[gray, thick] (2.3,-0.17) -- (3.1,-0.17);
\draw[gray, thick] (2.3,0.7) -- (2.3,1.3);
\draw[gray, thick] (3.1,0.7) -- (3.1,1.3);
\draw[gray, thick] (2.3,1.3) -- (3.1,1.3);
\draw[gray, thick] (2.3,0.7) -- (3.1,0.7);
\draw[gray, thick] (3.1,1) -- (3.5,1);
\draw[gray, thick] (3.1,0.13) -- (3.5,0.13);
\node at (-1.3,1) {j};
\node at (-1.3,0.13) {k};
\node at (1.5,1) {$R_y(\theta_1)$};
\node at (2.7,1) {$R_z(\theta_2)$};
\node at (1.5,0.13) {$R_y(\theta_3)$};
\node at (2.7,0.13) {$R_x(\theta_4)$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\begin{tikzpicture}
\datavisualization [school book axes, visualize as line]
data [format=named] {
x=0, y=0
x=1, y=1
x=2, y=1
x=3, y=0
};
\end{tikzpicture}
\end{document}
\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{automata,
fit,
positioning,
quotes,
shapes.multipart
}
\newcommand\greencirc{\tikz\node[circle, draw, thick, fill=green,
minimum size=3ex, node contents={}];}
\newcommand\whitecirc{\tikz\node[circle, draw, thick, fill=white,
minimum size=3ex, node contents={}];}
\begin{document}
\begin{tikzpicture}[
node distance = 8mm and 12mm,
MP/.style = {circle split, draw, inner sep=1pt,
align=center, font=\scriptsize},
state/.append style = {fill=#1, align=center},
state/.default = white,
every edge quotes/.append style={font=\scriptsize, align=center, auto}
]
\node (Neutral) [state, initial] {Neutral};
\node (UI Popup) [state, right=of Neutral] {Popped\\ UI};
\node (Sine) [state=gray!50, above right=of UI Popup] {sinecurve2};
\node (Digital Off) [MP, below right=of UI Popup]
{Digital\\ {[Off]} \nodepart{lower} \\ \whitecirc};
\node (Digital On) [MP, right=of Digital Off]
{Digital\\ {[On]} \nodepart{lower} \\ \greencirc};
\node (digital) [rounded corners, draw=red, label=75:Digital state,
fit=(Digital Off) (Digital On)] {};
\path[thick, ->]
(Neutral) edge ["Tap"] (UI Popup)
(UI Popup) edge [bend left, "Tap and\\ select analog"] (Sine)
edge [bend right, "Tap and\\ select digital" '] (Digital Off)
(Digital Off) edge [bend left, "Tap" '] (Digital On)
(Digital On) edge [bend left, "Tap" '] (Digital Off)
(digital) edge [bend right, "Long\\ click" '] (UI Popup)
(Sine) edge [bend left, "Long\\ click" '] (UI Popup);
\end{tikzpicture}
\end{document}
\documentclass[border=1cm]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}\foreach \i in {1,...,10}{\addplot[green,only marks,mark size=1pt]coordinates{(\i,2)};
}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[RPvoltages]{circuitikz}
\usepackage{amsmath}
\begin{document}
\begin{circuitikz}
\draw (0,0) node[en amp, xscale=-1, en amp text={
${\triangleright}$ \scalebox{-1}[1]{\small 200}}](E){}
(E.out) node[left] {$v_{\mathrm{out}}$}
(E.-) node[right] {$v_{\mathrm{in}-}$}
(E.+) node[right] {$v_{\mathrm{in}+}$} ;
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[colormap/viridis]
\addplot3 [
surf,
shader=faceted,
scatter,mark=*,
samples=10,
domain=0:1,
] {x^2*y};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.gates.logic.US}
\begin{document}
\begin{tikzpicture}[minimum height=1.5cm]
\node[xnor gate US, draw, gray!50,line width=2pt] (A) {};
\foreach \x/\y/\z in {false/blue/1pt, true/red/2pt}
\foreach \a in {north, south, east, west, north east,
south east, north west, south west}
\draw[logic gate anchors use bounding box=\x, color=\y]
(A.\a) circle(\z);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}[thick]
\def\Depth{4}
\def\DepthTwo{3}
\def\Height{2}
\def\Width{2}
\def\Sep{3}
\coordinate (O) at (\Depth/6,0,0);
\coordinate (A) at (\Depth/6,\Width,0);
\coordinate (B) at (\Depth/6,\Width,\Height);
\coordinate (C) at (\Depth/6,0,\Height);
\coordinate (D) at (\Depth,0,0);
\coordinate (E) at (\Depth,\Width,0);
\coordinate (F) at (\Depth,\Width,\Height);
\coordinate (G) at (\Depth,0,\Height);
\draw[black] (O) -- (D);
\draw[black] (A) -- (E);
\draw[black] (B) -- (F);
\draw[black] (C) -- (G);
\draw[black, fill=green!20,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;
\draw[below] (\Depth, 0*\Width, \Height) node{$I_{H,\nu_2}$};
\draw[midway] (\Depth/2,\Width-\Width/2,\Height/2) node {$B$ Gauge Theory};
\draw[midway] (\Depth/2+\Depth,\Width-\Width/2,\Height/2) node {$A$ Gauge Theory};
\coordinate (O2) at (\Depth,0,0);
\coordinate (A2) at (\Depth,\Width,0);
\coordinate (B2) at (\Depth,\Width,\Height);
\coordinate (C2) at (\Depth,0,\Height);
\coordinate (D2) at (\Depth+\DepthTwo,0,0);
\coordinate (E2) at (\Depth+\DepthTwo,\Width,0);
\coordinate (F2) at (\Depth+\DepthTwo,\Width,\Height);
\coordinate (G2) at (\Depth+\DepthTwo,0,\Height);
\draw[black] (O2) -- (D2);
\draw[black] (A2) -- (E2);
\draw[black] (B2) -- (F2);
\draw[black] (C2) -- (G2);
\coordinate (O3) at (\Depth+\DepthTwo+\Sep+\Depth/12,0,0);
\coordinate (A3) at (\Depth+\DepthTwo+\Sep+\Depth/12,\Width,0);
\coordinate (B3) at (\Depth+\DepthTwo+\Sep+\Depth/12,\Width,\Height);
\coordinate (C3) at (\Depth+\DepthTwo+\Sep+\Depth/12,0,\Height);
\coordinate (D3) at (\Depth+2*\DepthTwo+\Sep+\Depth/6+\Depth/12,0,0);
\coordinate (E3) at (\Depth+2*\DepthTwo+\Sep+\Depth/6+\Depth/12,\Width,0);
\coordinate (F3) at (\Depth+2*\DepthTwo+\Sep+\Depth/6+\Depth/12,\Width,\Height);
\coordinate (G3) at (\Depth+2*\DepthTwo+\Sep+\Depth/6+\Depth/12,0,\Height);
\draw[black, fill=green!20,opacity=0.8] (O3) -- (C3) -- (B3) -- (A3) -- cycle;
\draw[black] (O3) -- (D3);
\draw[black] (A3) -- (E3);
\draw[black] (B3) -- (F3);
\draw[black] (C3) -- (G3);
\draw[below] (\Depth+\DepthTwo+\Sep+\Depth/12, 0*\Width, \Height) node{$N_{H,\nu_2}$};
\draw[midway] (\Depth/2+\Depth+\DepthTwo+\Sep+5*\Depth/24,\Width-\Width/2,\Height/2) node {$A\times \bar{B}$ Gauge Theory};
\draw[->,decorate,decoration={snake,amplitude=.4mm,segment length=2mm,post length=1mm}] (\Depth+\DepthTwo+\Width/4+\Depth/24, \Width/2, \Height/2) -- (\Sep+\Depth+\DepthTwo-\Width/4+2*\Depth/24,\Width/2,\Height/2) node[midway, above] {Fold at $I_{H,\nu_2}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (l0) at (3,5){$\mathcal{R}_0$};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (l1) at (3,4){$\mathcal{R}_1$};
\draw (2.5, 2.75) rectangle node{$q_{i}$} ++(1,0.5);
\draw[] (l0) to (l1);
\draw[] (l1) to (3,3.25);
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (t0) at (3,2){$\mathbf{R}_0$};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (t1) at (1,1){\Huge +};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (t2) at (5,1){\Huge +};
\draw[] (t0) to (t1);
\draw[] (t0) to (t2);
\draw[] (3,2.75) to (t0);
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (x0) at (0,0){\Huge +};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (x1) at (2,0){\Huge +};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (x2) at (4,0){\Huge +};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (x3) at (6,0){\Huge +};
\draw[] (x0) to (t1);
\draw[] (x1) to (t1);
\draw[] (x2) to (t2);
\draw[] (x3) to (t2);
\draw (-1, -1.5) rectangle node{\footnotesize $q'^{(0)}_{4i}$} ++(1,0.5);
\draw (0, -1.5) rectangle node{\footnotesize$q'^{(1)}_{4i}$} ++(1,0.5);
\draw (1, -1.5) rectangle node{\footnotesize$q'^{(0)}_{4i+1}$} ++(1,0.5);
\draw (2, -1.5) rectangle node{\footnotesize$q'^{(1)}_{4i+1}$} ++(1,0.5);
\draw (3, -1.5) rectangle node{\footnotesize$q'^{(0)}_{4i+2}$} ++(1,0.5);
\draw (4, -1.5) rectangle node{\footnotesize$q'^{(1)}_{4i+2}$} ++(1,0.5);
\draw (5, -1.5) rectangle node{\footnotesize$q'^{(0)}_{4i+3}$} ++(1,0.5);
\draw (6, -1.5) rectangle node{\footnotesize$q'^{(1)}_{4i+3}$} ++(1,0.5);
\draw[] (x0) to (-0.5,-1);
\draw[] (x0) to (0.5,-1);
\draw[] (x1) to (1.5,-1);
\draw[] (x1) to (2.5,-1);
\draw[] (x2) to (3.5,-1);
\draw[] (x2) to (4.5,-1);
\draw[] (x3) to (5.5,-1);
\draw[] (x3) to (6.5,-1);
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (t1p) at (1,-3.5){$\mathbf{R}'_1$};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (t2p) at (5,-3.5){$\mathbf{R}'_2$};
\node[draw, circle,minimum size=0.8cm,inner sep=0pt] (t0p) at (3,-4.5){$\mathbf{R}'_0$};
\draw (-.5, -2.75) rectangle node{\footnotesize $q'_{4i}$} ++(1,0.5);
\draw (1.5, -2.75) rectangle node{\footnotesize $q'_{4i+1}$} ++(1,0.5);
\draw (3.5, -2.75) rectangle node{\footnotesize $q'_{4i+2}$} ++(1,0.5);
\draw (5.5, -2.75) rectangle node{\footnotesize $q'_{4i+3}$} ++(1,0.5);
\draw[] (0,-2.25) to (-0.5,-1.5);
\draw[] (0,-2.25) to (0.5,-1.5);
\draw[] (2,-2.25) to (1.5,-1.5);
\draw[] (2,-2.25) to (2.5,-1.5);
\draw[] (4,-2.25) to (3.5,-1.5);
\draw[] (4,-2.25) to (4.5,-1.5);
\draw[] (6,-2.25) to (5.5,-1.5);
\draw[] (6,-2.25) to (6.5,-1.5);
\draw[] (t1p) to (0,-2.75);
\draw[] (t1p) to (2,-2.75);
\draw[] (t2p) to (4,-2.75);
\draw[] (t2p) to (6,-2.75);
\draw[] (t0p) to (t1p);
\draw[] (t0p) to (t2p);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[]
\tikzset{amp symbol font={\color{blue}\small\boldmath}}
\draw (0,2.2) node[op amp, amp plus=$\oplus$]{};
\draw (0,0) node[op amp]{};
\ctikzset{amplifiers/plus={$\oplus$}}
\ctikzset{amplifiers/minus={$\ominus$}}
\draw (0,-2.2) node[fd op amp]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[title=RGB shading]
\addplot [
patch,
shader=interp,
mesh/color input=explicit,
mesh/colorspace explicit color output=rgb,
data cs=polar,
] coordinates {
(90,4) [color=red]
(210,4) [color=green]
(-30,4) [color=blue]
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0)--(1.4,0) (1.6,0)--(3,0);
\draw (-0.1,0) circle[radius=0.1cm] node[anchor=south]{$ q$} node[anchor=north]{$ r $}
(1.5,0) circle[radius=0.1cm] node[anchor=south]{$ q $}node[anchor=north]{$ r $}
(3.1,0) circle[radius=0.1cm] node[anchor=south]{$ q^2 $}node[anchor=north]{$ 2r $};
\draw (0.7,0) node[anchor=south]{$ q^{-1}$}node[anchor=north]{$ -r$};
\draw (2.3,0) node[anchor=south]{$ q^{-2}$} node[anchor=north]{$ -2r $};
\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
[scientific axes,
x axis={ticks={stack, many, major also at=
{(pi) as [{tick text padding=2.5em}] $\pi$}}},
visualize as smooth line]
data [format=function] {
var x : interval[0:(2*pi)];
func y = sin(\value x r);
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{circuitikz}
\ctikzset{tripoles/en amp/input height=0.45}
\draw (0,0) node[en amp, xscale=-1, noinv input up](E){}
(E.out) node[left] {$v_{\mathrm{out}}$}
(E.-) node[right] {$v_{\mathrm{in}-}$}
(E.+) node[right] {$v_{\mathrm{in}+}$};
\end{circuitikz}
\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 [scientific axes,
all axes={length=2.5cm},
x axis={ticks={stack=1.5em}},
visualize as smooth line]
data [format=function] {
var y : interval[-100:100];
func x = \value y*\value y;
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{A-B*5(-C-D*5(-X-Y-Z?)-E?-F-)}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amscd,amssymb,amsmath,multicol,tikz,float}
\begin{document}
\begin{tikzpicture}[scale=0.7]
\draw[gray, thick] (1,1) -- (-1,1);
\draw[gray, thick] (-1,1) -- (-1,-1);
\draw[gray, thick] (1,-1) -- (-1,-1);
\draw[gray, thick] (1,1) -- (1,-1);
\draw (-9,-1) -- (-7,-1) -- (-7,1) -- (-9,1) -- (-9,-1);
\draw[gray, thick] (-1,1) -- (-2.25,3.25);
\draw[gray, thick] (-1,1) -- (-3.25,-0.25);
\draw[gray, thick] (-3.25,-0.25)--(-1,-1);
\draw[gray, thick] (-1,-1)--(-1.75,-3.25);
\draw[gray, thick] (-2.25,3.25)--(-1,3);
\draw[gray, thick] (-1,3)--(-0.75,4.25);
\draw[gray, thick] (-0.75,4.25)--(1,1);
\draw [gray, thick,dash dot] (-1,-3) -- (-1,-1);
\draw [gray, thick,dash dot] (-1,3) -- (-1,1);
\draw[gray, thick] (-1.75,-3.25)--(-1,-3);
\draw[gray, thick] (-1,-3)--(-0.75,-3.75);
\draw[gray, thick] (-0.75,-3.75)--(1,-1);
\draw[gray, thick] (1,-1)--(3.75,-2.75);
\draw[gray, thick] (3.75,-2.75)--(3,-1);
\draw[gray, thick] (3,-1)--(4.75,-0.25);
\draw[gray, thick] (3,1)--(4.75,-0.25);
\draw [gray, thick,dash dot] (1,1) -- (3,1);
\draw [gray, thick,dash dot] (1,-1) -- (3,-1);
\draw[gray, thick] (3,1)--(4.25,2.75);
\draw[gray, thick] (4.25,2.75)--(1,1);
\coordinate[label={$1$}] (1) at (-1.5,0.75);
\coordinate[label={$2$}] (2) at (1.1,1.1);
\coordinate[label={$3$}] (2) at (1,-1.75);
\coordinate[label={$4$}] (3) at (-1.5,-1.5);
\coordinate[label={$5$}] (5) at (-1.25,3.0);
\coordinate[label={$6$}] (6) at (3.5,0.75);
\coordinate[label={$7$}] (7) at (3.5,-1.5);
\coordinate[label={$8$}] (8) at (-1.25,-3.75);
\coordinate[label={$P_1$}] (p_1) at (-3.75,-0.75);
\coordinate[label={$P_2$}] (p_2) at (-2.75,3);
\coordinate[label={$P_3$}] (p_3) at (-0.75,4.15);
\coordinate[label={$P_4$}] (p_4) at (4.5,2.75);
\coordinate[label={$P_5$}] (p_5) at (5.25,-0.75);
\coordinate[label={$P_6$}] (p_6) at (4,-3.5);
\coordinate[label={$P_7$}] (p_7) at (-0.75,-4.75);
\coordinate[label={$P_8$}] (p_3) at (-2.25,-3.5);
\draw[red, very thick](0.647,.529)--(-1,1);
\draw[red, very thick](0.647,0.529)--(-1,3);
\draw[red, very thick](0.333,-0.333)--(-1,-3);
\draw[red, very thick](0.333,-0.333)--(-1,-1);
\draw[red, very thick](0.895,0.649)--(1,1);
\draw[red, very thick](0.895,0.649)--(3,1);
\draw[red, very thick](0.805,-0.122)--(3,-1);
\draw[red, very thick](0.805,-0.122)--(1,-1);
\draw[red, very thick](0.805,-0.122)--(0.75,-0.0357);
\draw[red, very thick](0.333,-0.333)--(0.75,-0.0357);
\draw[red, very thick](0.647,0.529)--(0.75,0.4722);
\draw[red, very thick](0.75,-0.0357)--(0.75,0.4722);
\draw[red, very thick](0.895,0.649)--(0.75,0.4722);
\node at (.6,.2) {$I$};
\node at (-9.15,-1) {$5$};
\node at (-6.85,-1) {$6$};
\node at (-6.85,1) {$7$};
\node at (-9.15,1) {$8$};
\filldraw (-8.75,0.25) circle[radius=0.8pt];
\node at (-8.5,.25) {$P$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\tikz \graph {
a -> [red] b;
a -> [blue] c;
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows, shapes, shadows, calc, decorations.markings}
\tikzset{->-/.style={thick, postaction = {decorate}
, decoration = {markings, mark = at position #1 with {\arrow{stealth}}}}, ->-/.default = 0.5, -<-/.style={thick, postaction = {decorate}, decoration = {markings, mark = at position #1 with {\arrow{stealth reversed}}}}, -<-/.default = 0.5}\def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;
}
\begin{document}
\begin{tikzpicture}
\newcommand\XRoot{8}
\newcommand\YRoot{8}
\node (Top) at (\XRoot,\YRoot) {$\hat{A}_\top$};
\node (A12) at (\XRoot-1,\YRoot-1) {$\hat{A}_{12}$};
\node (A11) at (\XRoot+1,\YRoot-1) {$\hat{A}_{11}$};
\node (A23) at (\XRoot-2,\YRoot-2) {$\hat{A}_{23}$};
\node (A22) at (\XRoot,\YRoot-2) {$\hat{A}_{22}$};
\node (A21) at (\XRoot+2,\YRoot-2) {$\hat{A}_{21}$};
\node (A34) at (\XRoot-3,\YRoot-3) {$\hat{A}_{34}$};
\node (A33) at (\XRoot-1,\YRoot-3) {$\hat{A}_{33}$};
\node (A32) at (\XRoot+1,\YRoot-3) {$\hat{A}_{32}$};
\node (A31) at (\XRoot+3,\YRoot-3) {$\hat{A}_{31}$};
\node (All1) at (\XRoot-5,\YRoot-5) {$\hat{A}_{(R-1)R}$};
\node (All2) at (\XRoot-3,\YRoot-5) {$\cdots$};
\node (All3) at (\XRoot-1,\YRoot-5) {$\hat{A}_{(R-1)(m+1)}$};
\node (All4) at (\XRoot+1,\YRoot-5) {$\hat{A}_{(R-1)m}$};
\node (All5) at (\XRoot+3,\YRoot-5) {$\cdots$};
\node (All6) at (\XRoot+5,\YRoot-5) {$\hat{A}_{(R-1)1}$};
\node (Al1) at (\XRoot-6,\YRoot-6) {$\hat{A}_{R(R+1)}$};
\node (Al2) at (\XRoot-3,\YRoot-6) {$\cdots$};
\node (Al3) at (\XRoot,\YRoot-6) {$\hat{A}_{R(m+1)}$};
\node (Al4) at (\XRoot+3,\YRoot-6) {$\cdots$};
\node (Al5) at (\XRoot+6,\YRoot-6) {$\hat{A}_{R1}$};
\node (Bottom) at (\XRoot,\YRoot-8) {$A_\bot$};
\path (Bottom) edge[->-] (Al1) edge[->-] (Al3) edge[->-] (Al5);
\path (Top) edge[-<-] (A12) (Top) edge[-<-] (A11) (A12) edge[-<-] (A23) (A12) edge[-<-] (A22) (A11) edge[-<-] (A22) (A11) edge[-<-] (A21) (A23) edge[-<-] (A34) (A23) edge[-<-] (A33) (A22) edge[-<-] (A33) (A22) edge[-<-] (A32) (A21) edge[-<-] (A32) (A21) edge[-<-] (A31) (All1) edge[-<-] (Al1) (All3) edge[-<-] (Al3) (All4) edge[-<-] (Al3) (All6) edge[-<-] (Al5);
\draw[dotted] (Al2) -- (Bottom) -- (Al4) (A34) -- (All1) (A31) -- (All6) (All1) -- (Al2) -- (All3) (All4) -- (Al4) -- (All6);
\end{tikzpicture}
\end{document}