AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\begin{scope}[every node/.style={circle,draw,minimum size=2.4mm},xscale=0.9]
\node[thick,label={[shift={(0.2,-1.29)}]:$\alpha_{i}$}] (ai) at (1,0.5) {};
\node[thick,label={[shift={(-0.4,0)}]:$\alpha_{j_2}$}] (aj2) at (1,3.5) {};
\node[thick,label={[shift={(-0.55,0.0)}]:$\alpha_{j_1}$}] (aj1) at (0.5,2) {};
\node[thick,label={[shift={(-0.1,-1.3)}]:$\alpha_{j_3}$}] (aj3) at (1.3,2) {};
\node[thick,label={[shift={(0,-1.3)}]:$\alpha_{j_4}$}] (aj4) at (2.1,2) {};
\node[thick,label={[shift={(0.0,-1.4)}]:$\alpha_{y_1}$}] (ay1) at (0.2,0.5) {};
\node[thick,label={[shift={(0.4,-1.5)}]}] (s4) at (2.9,2) {};
\node[thick,label={[shift={(0.4,-1.5)}]}] (s5) at (3.7,2) {};
\node[thick,label={[shift={(0.4,-1.5)}]}] (s6) at (4.5,2) {};
\node[draw=none,inner sep=0.5mm] (dots1) at (5.3,2) {$\dots$};
\node[thick,label={[shift={(0.1,-0.1)}]:$S_{3d-2}$}] (s3d2) at (6.1,2) {};
\node[thick,label={[shift={(0.3,-0.1)}]:$S_{3d-1}$}] (s3d1) at (6.9,2) {};
\node[thick,label={[shift={(0.5,-0.1)}]:$S_{3d\phantom{-3}}$}] (s3d) at (7.7,2) {};
\node[draw=none,inner sep=0.5mm] (dots2) at (8.5,2) {$\dots$};
\node[thick,label={[shift={(0.1,-1.5)}]}] (s3c2) at (9.3,2) {};
\node[thick,label={[shift={(0.3,-1.5)}]}] (s3c1) at (10.1,2) {};
\node[thick,label={[shift={(0.4,-0.1)}]:$S_{3c\phantom{-1}}$}] (s3c) at (10.9,2) {};
\node[draw=none,inner sep=0,minimum size=0] (s3by) at (10.4,0.5]) {};
\draw [thick,rounded corners=4mm] (ai.east)--(s3by.center)--(s3c);
\node[rectangle,inner sep=0,minimum height=8mm,minimum width=20.7mm,rounded corners=3mm,densely dashed] (triple1) at (s4) {};
\begin{scope}
\clip(0,1) rectangle (5.05,4.0);
\node[rectangle,inner sep=0,minimum height=8mm,minimum width=27.6mm,rounded corners=3mm,densely dashed] (triple1) at ($(s6)!0.5!(s3d1)$) {};
\end{scope}
\begin{scope}
\clip(5.5,0.0) rectangle (12,4.0);
\node[rectangle,inner sep=0,minimum height=8mm,minimum width=27.6mm,rounded corners=3mm,densely dashed] (triple1) at ($(s6)!0.5!(s3d1)$) {};
\end{scope}
\begin{scope}
\clip(0,1) rectangle (8.25,4.0);
\node[rectangle,inner sep=0,minimum height=8mm,minimum width=27.6mm,rounded corners=3mm,densely dashed] (triple1) at ($(s3d)!0.5!(s3c1)$) {};
\end{scope}
\begin{scope}
\clip(8.7,0.0) rectangle (12,4.0);
\node[rectangle,inner sep=0,minimum height=8mm,minimum width=27.6mm,rounded corners=3mm,densely dashed] (triple1) at ($(s3d)!0.5!(s3c1)$) {};
\end{scope}
\begin{scope}[yscale=-1,yshift=-4.0cm]
\draw [rounded corners=3mm,densely dashed] (0.0,2.4)--(1.66,2.4)--(1.66,1.6)--(1.45,0.1)--(0.65,0.1)--cycle;
\draw [rounded corners=3mm,densely dashed] (-0.2,3.1)--(-0.2,3.9)--(10.7,3.9)--(11.3,2.4)--(11.3,1.6)--(10.5,1.6)--(10.5,2.4)--(10.0,3.1)--cycle;
\end{scope}
\end{scope}
\foreach \f/\t in {aj2/aj1,aj1/ai,aj1/aj3,aj3/aj4,aj4/s4,s4/s5,s5/s6,s6/dots1,dots1/s3d2,s3d2/s3d1,s3d1/s3d,s3d/dots2,dots2/s3c2,s3c2/s3c1,s3c1/s3c,ay1/ai}
\draw [thick] (\f) -- (\t);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[isource, l=$I_0$] (0,3)
to[short, -*, i=$I_0$] (2,3)
to[R=$R_1$, i=$i_1$] (2,0) -- (0,0);
\draw (2,3) -- (4,3)
to[R=$R_2$, i=$i_2$]
(4,0) to[short, -*] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
nodes near coords={(\coordindex)},
]
\addplot [
patch,
patch type=triangle,
] coordinates {
(0,0) (1,0) (0,1)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[12pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.92]
\draw[ultra thick,-latex](0,0)--(-2,-1);
\node[above]at(-2.4,-0.8){$\substack{17^2,17^3,\dotsc,17^{q-1}}$};
\draw(0,0)--(-1.125,-1)--(-0.875,-1)--(0,0);
\node[below]at(-1,-1){$\substack{\{7,3,5\}\times17\\8\text{ branches}}$};
\draw(0,0)--(0.875,-1)--(1.125,-1)--(0,0);
\node[below]at(1,-1){$\substack{\{7,3,5\}\\\times11\times19\times17\\8\text{ branches}}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\tikzstyle{block}=[rectangle,draw,fill=blue!20,minimum size=2em,text centered,rounded corners,minimum height=4em]
\tikzstyle{start}=[circle,draw=blue!80,fill=blue!20,minimum size=1.2cm,text centered]
\begin{tikzpicture}[scale=2,node distance=2cm,auto,every node/.style={midway,auto,font=\scriptsize,anchor=center}]
\node[start](start){start};
\node[below of=start,block,text width=4.5cm](buff){Add new measurement,\\ $y_k$ to buffer};
\draw[->](start)edge(buff);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
er,
shapes.geometric
}
\begin{document}
\begin{tikzpicture}
\node[entity] (sheep) at (0,0) {Sheep};
\node[entity] (genome) at (2,0) {Genome};
\node[relationship] at (1,1.5) {has}
edge (sheep)
edge (genome);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{graphicx}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=1.5cm,thick,main node/.style={circle,draw,font=\Large\bfseries},align=center]
\tikzstyle{every node}=[draw,shape=circle]
;
\node[draw=none, shape=circle,scale=0.02cm, fill=none] (n1) {} ;
\node[draw,shape=circle,scale=0.02cm, main node](n2) [left of=n1] {$M$} ;
\node[draw,shape=circle,scale=0.02cm, main node] (n4) [above of=n1] {1} ;
\node[draw,shape=circle,scale=0.02cm, main node] (n3) [below of=n1] {3} ;
\node[draw,shape=circle,scale=0.02cm, main node] (n5) [right of=n1] {2} ;
\draw[<->] (n2) to[bend left=30] (n4);
\draw[<->] (n2) to[bend right=30] (n3);
\draw[->] (n4) to[bend left=30] (n5);
\draw[<->] (n3) to (n4);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=10pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2.5em,
bond offset=1pt,
compound sep=5em,
arrow offset=6pt,
}
\providecommand*\bigskip{\vspace{12pt plus 4pt minus 4pt}}
\begin{document}
\schemestart
A\arrow[45]B\arrow[-20,2]C
\schemestop
\bigskip
\schemestart
A\arrow[90,,thick]B\arrow[,2]C
\arrow[-45,,dashed,red]D
\schemestop
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{graphicx,amssymb,colordvi,textcomp,latexsym}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes, positioning, matrix, patterns, decorations.pathmorphing, arrows.meta,automata}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}
[scale=.15,auto=left, node distance=1.5cm, ]
\node[fill=white,style={circle,draw}] (n1) at (4,6) {\small{2}};
\node[fill=black!30,style={circle,draw}] (n3) at (4,-6) {\small{3}};
\node[fill=white,style={circle,draw}] (n2) at (-4,0) {\small{1}};
\path (n2) [->,thick] edge[] node {{\tiny $b$}} (n1);
\path (n2) [->,thick] edge[loop left=90] node {} (n2);
\path (n2) [->,thick] edge[] node {} (n3);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{shapes.arrows, fadings,calc}
\pgfmathdeclarefunction{std_norm}{1}{\pgfmathparse{1/(sqrt(2*pi))*exp(-((#1)^2)/(2))}}
\begin{document}
\begin{tikzpicture}[scale=0.6]
\begin{axis}[no markers, domain=-4:4, samples=100, xlabel=\textbf{z}, every axis x label/.style={at={(axis description cs:1.0, 0.0)}, anchor=west}, height=5cm, width=12cm, xtick=\empty, ytick=\empty, enlargelimits=false, clip=false, axis on top=true, hide y axis, axis x line*=middle, axis line style ={thick,latex-latex}]\addplot [very thick,draw=cyan!50!black] {std_norm(x)};
\draw [thick] (axis cs:-1.75,0) -- (axis cs:-1.75,{std_norm(-1.75)}) coordinate[pos=1] (L);
\draw [thick] (axis cs:1.75,0) -- (axis cs:1.75,{std_norm(1.75)}) coordinate[pos=1] (R);
\draw [thick] (axis cs:-1.75,0.53) -- (axis cs:-1.75,{std_norm(-1.75)+0.03});
\draw [thick] (axis cs:1.75,0.53) -- (axis cs:1.75,{std_norm(1.75)+0.03});
\path let \p1=($(R)-(L)$) in (axis cs:0, 0.5) node [draw=gray, left color=white, right color=green!30, double arrow, minimum height=\x1, minimum width=1cm, double arrow head extend=0.05cm,inner xsep=0pt ] {Confidence Interval};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5]{standalone}
\usepackage{pgfplots}
\pgfmathdeclarefunction{myfunct}{1}{\pgfmathparse{(#1-5)^2+20}}
\begin{document}
\begin{tikzpicture}
\begin{axis}[axis lines=left,xtick=\empty,ytick=\empty]\addplot[samples=100,domain=0:10]{myfunct(x)};
\pgfplotsinvokeforeach{1,...,9}{\addplot coordinates{(#1,0)(#1,40)};
}
\end{axis}
\end{tikzpicture}\qquad
\begin{tikzpicture}
\begin{axis}[axis lines=left,xtick=\empty,ytick=\empty]\addplot[samples=100,domain=0:10]{myfunct(x)};
\pgfplotsinvokeforeach{1,...,9}{\addplot coordinates{(#1,0)(#1,{myfunct(#1)})};
\node[above=5pt]at(axis cs:#1,{myfunct(#1)}){\pgfmathprint{myfunct(#1)}};
}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\providecommand*\medskip{\vspace{6pt plus 2pt minus 2pt}}
\begin{document}
\chemfig{H_3C-C(=[:30]O)-[:-30]OH}
\vflipnext
\chemfig{H_3C-C(=[:30]O)-[:-30]OH}\medskip
\chemfig{H_3C-C(=[:30]O)-[:-30]OH}
\hflipnext
\chemfig{H_3C-C(=[:30]O)-[:-30]OH}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[s/.style={->,shorten >=5pt,thick}]
\draw[<->](0,3)--node[left]{$E(\mathbf{s})$}(0,0)--node[below]{$\mathbf{s}$}(7,0);
\draw plot[smooth]coordinates{(0,1.5)(.2,3)(.4,.8)(.5,1.2)(1,.6)(1.5,1.9)(1.7,1.7)(2,2.2)(2.2,2.1)(2.6,2.8)(2.9,2.2)(3.5,1.8)(4,2.4)(4.5,1.7)(5,2.5)(5.5,.6)(6,1.7)(6.2,1.6)(6.4,1.8)(6.7,.4)(6.9,1.4)(7,1.5)};
\fill(1,.6)circle(.05)node(a){};
\node[above=.5cm,blue]at(a){Local};
\draw[s,blue](a)--(.5,1.2);
\draw[s,gray](a)--(4.5,1.7)node[midway,below,sloped]{Uniform};
\draw[s,red](a)to[bend right=10](5.5,.6);
\node[red]at(3.2,.15){Quantum};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{[:-30]HO--[:30](<[2]OH)-(<:[6]OH)
-[:30](<:[2]OH)-(<:[6]OH)-[:30](=[2]O)-H}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,euscript,color}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.4]
\draw [white](-3, -0.2)-- node[midway, sloped, below,black]{$P$}(3, -0.2);
\draw [white](-3, -5.2)-- node[midway, sloped, below,black]{$Q$}(3, -5.2);
\draw [white](-14.6, -9.5)-- node[midway, sloped, below,black]{$A$}(-7, -9.5);
\draw [white](-6, -12.7)-- node[midway, sloped, below,black]{$B$}(-9.5, -12.7);
\draw [white](14.6, -9.5)-- node[midway, sloped, below,black]{$A'$}(7, -9.5);
\draw [white](6, -12.7)-- node[midway, sloped, below,black]{$B'$}(9.5, -12.7);
\draw [white](-3, 0)-- node[midway, sloped, above,black]{$\mathcal{S}$}(3, 0);
\draw [white](0, -5)-- node[midway, sloped, below,black]{$u=\tilde{U}$}(-7.5, -12.5);
\draw [white](0, -5)-- node[midway, sloped, below,black]{$v=\tilde{V}$}(7.5, -12.5);
\draw [white](7.5,-12.5)-- node[midway, sloped, below,black]{$u=U'$}(10, -10);
\draw [white](-7.5, -12.5)-- node[midway, sloped, below,black]{$v=V'$}(-10, -10);
\draw [white](0, 0)-- node[midway, sloped, above, black]{$u=U_0=0$}(-10,-10);
\draw [white](0, 0)-- node[midway, sloped, above, black]{$v=V_0=0$}(10,-10);
\draw[thick] (0,0)--(-10,-10);
\draw[thick] (0,0)--(10, -10);
\draw[thick] (0,-5)--(-7.5,-12.5);
\draw[thick] (0,-5)--(7.5,-12.5);
\draw[thick] (-10, -10)--(-7.5, -12.5);
\draw[thick] (10, -10)--(7.5, -12.5);
\draw [thick] (-5,0) to [out=10,in=-170] (0,0);
\draw [thick] (0,0) to [out=10,in=-170] (5,0);
\draw [thick] (-5, 0)--(0,-5);
\draw [thick] (5, 0)--(0,-5);
\draw[fill] (0,0) circle [radius=0.15];
\draw[fill] (0,-5) circle [radius=0.15];
\draw[fill] (-10, -10) circle [radius=0.15];
\draw[fill] (-7.5,-12.5) circle [radius=0.15];
\draw[fill] (10, -10) circle [radius=0.15];
\draw[fill] (7.5,-12.5) circle [radius=0.15];
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\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 around={40:(1,1)},blue] (0,0) -- (1,1) -- (1,0);
\draw[rotate around={-20:(1,1)},red] (0,0) -- (1,1) -- (1,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=10pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2.5em,
bond offset=1pt,
compound sep=5em,
arrow offset=6pt,
}
\begin{document}
\schemestart A\arrow B\arrow C\schemestop
\setchemfig{arrow angle=15,arrow coeff=1.5,
arrow style={red, thick}}
\schemestart A\arrow B\arrow C\schemestop
\setchemfig{arrow coeff=2.5,arrow style=dashed}
\schemestart A\arrow B\arrow C\schemestop
\setchemfig{arrow angle={},arrow coeff={},arrow style={}}
\schemestart A\arrow B\arrow C\schemestop
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\newcommand{\ol}{\overline}
\newcommand{\mc}{\mathcal}
\begin{document}
\begin{tikzpicture}[scale=1.5]
\filldraw[fill=gray!30](4.325,1.325) -- (3,0) -- (1.675,1.325) -- (2,1.65).. controls (2.75,1.25) and (3.25,1.25) .. (4,1.65) -- cycle;
\draw (0,3) -- (1.675,1.325);
\draw (4.325,1.325) -- (6,3);
\draw[dashed] (0,3) .. controls (2.5,2.5) and (3.5,2.5) .. (6,3);
\draw (3,1.8) node[below]{$\Sigma_{r_0}^T$};
\draw (2,1.65) .. controls (1.4,2) .. (0,3);
\draw (4,1.65) .. controls (4.6,2) .. (6,3);
\filldraw (2,1.65) circle (0.035cm);
\filldraw (1.675,1.325) circle (0.035cm);
\filldraw (4,1.65) circle (0.035cm);
\filldraw (4.325,1.325) circle (0.035cm);
\filldraw (3,0) circle (0.035cm);
\draw (2,1.55) node[below]{$C_T^c$};
\draw (3.95,1.55) node[below]{$\ol{C_T^c}$};
\draw[->] (1.75,1.55) -- (0.95,2.2);
\draw[->] (4.25,1.55) -- (5.05,2.2);
\draw (3,2.8) node{$\Sigma^+$};
\draw (1.95,0.9) node[below]{$\mc{C}^+$};
\draw (4,0.9) node[below]{$\ol{\mc{C}}^+$};
\filldraw[fill=white] (0,3) circle (0.035cm);
\filldraw[fill=white] (6,3) circle (0.035cm);
\draw (0,3) node[above]{$\iota^+$};
\draw (6,3) node[above]{$\ol{\iota}^+$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}[scale = 0.5]
\tikzstyle{point}=[circle,thick,draw=black,fill=black,inner sep=0pt,minimum width=4pt,minimum height=4pt]
\node (a)[point,label=left:$1$] at (-0.5,2.5) {};
\node (b)[point,label=left:$2$] at (-0.5,0.9) {};
\node (c)[point,label=left:$5$] at (2,3.4) {};
\node (d)[point,label=above:$3$] at (1,1.7) {};
\node (e)[point,label=above:$4$] at (3,1.7) {};
\node (f)[point,label=left:$6$] at (2,0) {};
\begin{scope}[on background layer]
\draw[fill=gray, fill opacity = .8] (a.center) -- (b.center) -- (d.center) -- cycle;
\draw[fill=gray, fill opacity = .8] (c.center) -- (d.center) -- (e.center) -- cycle;
\draw[fill=gray, fill opacity = .8] (d.center) -- (e.center) -- (f.center) -- cycle;
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw
(0,0) node[inst amp] (opamp) {}
(opamp.+) node[left] {$v_+$}
(opamp.-) node[left] {$v_-$}
(opamp.out) node[right] {out}
(opamp.up) node[vcc]{}
(opamp.down) node[vee] {}
(opamp.refv down) node[ground]{}
(opamp.refv up) to[short, -o] ++(0,0.3);
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\begin{tikzpicture}
\datavisualization
[scientific axes,
x axis={logarithmic, length=2cm, ticks={step=1.5}},
y axis={logarithmic, ticks={step=1, minor steps between steps=9}},
visualize as scatter]
data {
x, y
1, 10
1000, 1000000
};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{colorbrewer, colormaps}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
colormap={brewer}{
color=(RdPu-B) color=(RdPu-E)
color=(RdPu-G) color=(RdPu-I)
color=(RdPu-K)
},
enlargelimits=false,
colorbar as palette,
]
\addplot [
matrix plot,
nodes near coords,
mark=*,
point meta=explicit,
colormap access=direct,
] coordinates {
(0,0) [0] (1,0) [1] (2,0) [2] (3,0) [NaN]
(0,1) [3] (1,1) [4] (2,1) [5] (3,1) [99]
(0,2) [3.5] (1,2) [-1] (2,2) [2.99] (3,2) [3]
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=Axis wide color mapping,
colorbar,
samples=50,
point meta rel=axis wide,
point meta=y,
]
\addplot [mesh,thick] {sin(deg(x))};
\addplot [mesh,thick] {3*tanh(x)};
\end{axis}
\end{tikzpicture}
~
\begin{tikzpicture}
\begin{axis}[
title=Per Plot color mapping,
colorbar,
samples=50,
point meta rel=per plot,
point meta=y,
]
\addplot [mesh,thick] {sin(deg(x))};
\addplot [mesh,thick] {3*tanh(x)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\foreach \x in {0,4.25}
{
\draw[fill] (\x,0) circle (0.1);
\draw[fill] (\x-0.75,1.75) circle (0.1);
\draw[fill] (\x+0.75,1.75) circle (0.1);
\draw[thick] (\x+0.75,1.75)--(\x,0) -- (\x-0.75,1.75);
}
\draw[thick] (0,0)--(4.25,0);
\node at (0,-0.3) {$u$};
\node at (4.25,-0.3) {$v$};
\node at (-1.4,1.75) {$\begin{pmatrix} 1\\ 2\\ 3\\ 4\\ \end{pmatrix}$};
\node at (1.25,1.75) {$\begin{pmatrix} 1\\ 3\\ 4\\ 2\\ \end{pmatrix}$};
\node at (2.85,1.75) {$\begin{pmatrix} 1\\ 2\\ 3\\ 4\\ \end{pmatrix}$};
\node at (5.5,1.75) {$\begin{pmatrix} 1\\ 3\\ 4\\ 2\\ \end{pmatrix}$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[domain=0:4]
\draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
\draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};
\draw[color=red] plot (\x,\x) node[right] {$f(x) =x$};
\draw[color=blue] plot (\x,{sin(\x r)}) node[right] {$f(x) = \sin x$};
\draw[color=orange] plot (\x,{0.05*exp(\x)}) node[right] {$f(x) = \frac{1}{20} \mathrm e^x$};
\end{tikzpicture}
\end{document}
\documentclass[10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds, fit, decorations.pathreplacing, calc}
\newcommand{\ket}[1]{\ensuremath{\left|#1\right\rangle}}
\begin{document}
\begin{tikzpicture}[thick]
\tikzstyle{operator} = [draw, fill=white, minimum size=1.5em]
\tikzstyle{phase} = [draw, fill, shape=circle, minimum size=5pt, inner sep=0pt]
\tikzstyle{surround} = [fill=blue!10, thick, draw=black, rounded corners=2mm]
\matrix[row sep=0.4cm, column sep=0.8cm] (circuit) {
\node (q1) {\ket{0}}; &[-0.5cm]
\node[operator] (H11) {H}; &
\node[phase] (P12) {}; &
\node[phase] (P13) {}; &
&[-0.3cm]
\coordinate (end1); \\
\node (q2) {\ket{0}}; &
\node[operator] (H21) {H}; &
\node[phase] (P22) {}; &
&
\node[operator] (H24) {H}; &
\coordinate (end2);\\
\node (q3) {\ket{0}}; &
\node[operator] (H31) {H}; &
&
&
\node[operator] (H34) {H}; &
\coordinate (end3); \\
};
\node[fit=(H11.north-|P13.east) (H21.south-|P22.west), operator, inner sep=0pt, label=center:F]{};
\draw[decorate, decoration={brace}, thick]
($(circuit.north east)-(0cm,0.3cm)$)
to node[midway, right] (bracket) {$\displaystyle\frac{\ket{000}+\ket{111}}{\sqrt{2}}$}
($(circuit.south east)+(0cm,0.3cm)$);
\begin{pgfonlayer}{background}
\node[surround] (background) [fit = (q1) (H31) (bracket)] {};
\draw[thick] (q1) -- (end1)
(q2) -- (end2)
(q3) -- (end3)
(P12) -- (P22);
\end{pgfonlayer}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{amsthm,amsfonts,amsmath,amscd,amssymb}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro{\A}{.866}\draw[thick] (-1/2,\A) -- (0,0) -- (-1/2,-\A);
\draw[thick] (0,0) -- (2,0);
\draw[thick] (2.5,\A) -- (2,0) -- (2.5,-\A);
\node at (1,.6) {$a$};
\node at (-.5,0) {$b$};
\node at (1,-.6) {$c$};
\node at (2.5,0) {$d$};
\node[blue] at (.7,.15) {$e$};
\draw[purple,thick] (1,0) ellipse (2 and 1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=Example of before with fine-tuning,
xlabel=$x$,
ylabel=$y$,
]
\addplot3 [
surf,
mesh/interior colormap={blueblack}{
color=(black) color=(blue)
},
samples=31,
miter limit=1,
mesh/interior colormap thresh=0.1,
colormap/blackwhite,
domain=0:1,
] {
sin(deg(8*pi*x))* exp(-20*(y-0.5)^2)
+ exp(-(x-0.5)^2*30
- (y-0.25)^2 - (x-0.5)*(y-0.25))
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz,pgf}
\usetikzlibrary{decorations.markings, decorations.pathmorphing}
\usetikzlibrary{arrows,decorations,backgrounds,scopes,plotmarks}
\usepackage{stmaryrd,mathrsfs,amsmath,amssymb,bm,amsfonts}
\usepackage{amsmath,amsthm,amssymb,amscd}
\begin{document}
\begin{tikzpicture}[scale=0.7]
\node (v2) at (2.5,-2) {};
\node (v1) at (2.5,-0.5) {};
\node (v3) at (2.5,-3.5) {};
\node (v5) at (3.5,-2) {};
\node (v4) at (3.5,-0.5) {};
\node (v6) at (3.5,-3.5) {};
\node at (5.5,-2) {$\Rightarrow$};
\node (v8) at (7.5,-2) {};
\node (v7) at (6.75,-0.5) {};
\node (v9) at (8.25,-0.5) {};
\node (v10) at (6.75,-3.5) {};
\node (v11) at (8.25,-3.5) {};
\draw (v1) --(2.5,-2)[postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (2.5,-2)-- (v3)[postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (v4) --(3.5,-2)[postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (3.5,-2)-- (v6)[postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (v7) -- (7.5,-2) [postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (v9) -- (7.5,-2) [postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (v10) -- (7.5,-2) [postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\draw (7.5,-2) -- (v11)[postaction={decorate, decoration={markings,mark=at position .55 with {\arrow[black]{stealth}}}}];
\node [scale=0.7]at (2,-2) {$f$};
\node [scale=0.7]at (4,-2) {$g$};
\node [scale=0.7]at (8.85,-2) {$f\otimes g/g\otimes f$};
\draw [fill](v2) circle [radius=0.06];
\draw [fill](v5) circle [radius=0.06];
\draw [fill](v8) circle [radius=0.06];
\end{tikzpicture}
\end{document}