AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\begin{document}
\tikz \datavisualization data group {sin functions} = {
data [format=function] {
var set : {1,...,8};
var x : interval [0:50];
func y = sin(\value x * (\value{set}+10))/(\value{set}+5);
}
};
\tikzdatavisualizationset {
example visualization/.style={
scientific axes=clean,
y axis={ticks={style={
/pgf/number format/fixed,
/pgf/number format/fixed zerofill,
/pgf/number format/precision=2}}},
x axis={ticks={tick suffix=${}^\circ$}},
1={label in legend={text=$\frac{1}{6}\sin 11x$}},
2={label in legend={text=$\frac{1}{7}\sin 12x$}},
3={label in legend={text=$\frac{1}{8}\sin 13x$}},
4={label in legend={text=$\frac{1}{9}\sin 14x$}},
5={label in legend={text=$\frac{1}{10}\sin 15x$}},
6={label in legend={text=$\frac{1}{11}\sin 16x$}},
7={label in legend={text=$\frac{1}{12}\sin 17x$}},
8={label in legend={text=$\frac{1}{13}\sin 18x$}}
}
}
\tikz \datavisualization [
visualize as smooth line/.list={1,2,3,4,5,6,7,8},
example visualization,
style sheet=vary hue]
data group {sin functions};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\pgfplotsset{
every axis legend/.append style={
at={(1.02,1)},
anchor=north west,
},
}
\begin{tikzpicture}
\begin{axis}
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$l_1$,$l_2$,$l_3$}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
tiny,
title=With legend box,
]
\addplot [blue]{x};
\addplot [red]{2*x};
\legend{$x$,$2x$}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\tikz\datavisualization[school book axes,visualize as line/.list={a,b},style sheet=vary dashing,a={label in legend={text=a}},new legend entry={text=spacer,visualizer in legend={\draw[solid](0,0)circle[radius=2pt];
}},b={label in legend={text=b}}]data point[x=-1,y=-1,set=a] data point[x=1,y=0,set=a] data point[x=-1,y=1,set=b] data point[x=1,y=0.5,set=b];
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[R, f_=$i_1$] (3,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
legend style={
at={(1,0.5)},
anchor=east},
]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$l_1$,$l_2$,$l_3$}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{statistics}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ytick={1,2,3},yticklabels={Group A, Group B, Group C}]\addplot+ [boxplot prepared={lower whisker=42, lower quartile=45, median=47, upper quartile=47.5, upper whisker=48},] table [row sep=\\,y index=0] { 40\\ 34\\ 56\\ };
\addplot+[boxplot prepared={lower whisker=36, lower quartile=39, median=40, upper quartile=41, upper whisker=43},] coordinates {};
\addplot+[boxplot prepared={lower whisker=41, lower quartile=44, median=45, upper quartile=46, upper whisker=47},] coordinates {(0,35) (0,55)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[minor x tick num=1, minor y tick num=3]\addplot {x^3};
\addplot {-20*x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[width=7cm,height=5cm,xlabel={Ratio},xlabel style={yshift=0.2ex},ylabel={Success Rate (\%)},ylabel near ticks,ylabel style={xshift=-1ex},grid=both,xmin=1,xmax=5,ymin=2,ymax=25,xtick={1,2,3,4,5},xticklabels={0.2,0.4,0.6,0.8,1.0},ylabel style={font=\footnotesize},xticklabel style={font=\footnotesize},yticklabel style={font=\footnotesize},ymajorgrids=true,grid style=dashed,legend style={at={(1,1)},anchor=south east,xshift=-1.0mm,yshift=-9.0mm,font=\scriptsize}]\addplot[color=orange,mark=*,mark size=1.5pt,thick]coordinates{(1,10.26)(2,20.51)(3,12.82)(4,15.38)(5,15.38)};
\addlegendentry{\texttt{GPT-4V SoM}}\addplot[color=blue,mark=*,mark size=1.5pt,thick]coordinates{(1,2.56)(2,2.56)(3,5.13)(4,5.13)(5,7.71)};
\addlegendentry{\texttt{GPT-4V Screenshot}}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0,0.5,0.5}\tkzSetUpColors[background=white,text=black]\tkzSetUpLine[line width=.2pt]\tikzset{every picture/.style={line width=.2pt}
}
\begin{document}

\begin{tikzpicture}[scale=1]
\tkzDefPoint(0,0){P1}\tkzDefPoint(4,0){P2}\tkzDefPoint(4,4){P3}\tkzDefPoint(0,4){P4}\tkzDefPoint(1,1){Q1}\tkzDefPoint(3,1){Q2}\tkzDefPoint(3,3){Q3}\tkzDefPoint(1,3){Q4}\tkzDrawPolygon(P1,P2,P3,P4)
\begin{scope}
\tkzClipPolygon[out](Q1,Q2,Q3,Q4)\tkzFillPolygon[teal!20](P1,P2,P3,P4)
\end{scope}\tkzDrawPolygon(Q1,Q2,Q3,Q4)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\colorlet{myred}{red!70!black!70}
\begin{document}
\begin{tikzpicture}
\def\z#1#2#3{\draw[#3] (0,0) -- (#2*45:#1) arc (#2*45:#2*45+45:#1) -- cycle;}
\z{5}{2}{fill=myred}
\z{5}{4}{fill=myred}
\z{5}{5}{fill=myred}
\z{3}{0}{fill=myred}
\z{3}{2}{fill=white}
\z{3}{3}{fill=myred}
\z{3}{5}{fill=white}
\z{3}{7}{fill=myred}
\z{1}{0}{fill=white}
\z{1}{4}{fill=myred}
\z{1}{5}{fill=myred}
\z{1}{6}{fill=myred}
\foreach \r in {1, 3, 5}
\draw[black, thick] (0,0) circle (\r);
\foreach \a in {0, 45, ..., 315}
\draw[thick, black] (0,0) -- (\a:5);
\foreach \a/\t in {0/110, 45/010, 90/000, 135/001, 180/011, 225/111, 270/101, 315/100}
\draw (\a:5.5) node {$\t$};
\draw[fill=black] (0,0) circle(0.7mm);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}[grow via three points={
one child at (0,1) and two children at (-.5,1) and (.5,1)}]
\node at (0,0) {one} child;
\node at (0,-1.5) {two} child child;
\node at (0,-3) {three} child child child;
\node at (0,-4.5) {four} child child child child;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
legend style={
cells={anchor=east},
legend pos=outer north east,
},
]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{$l_1$, legend $2$,$l_3$}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{polar}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}
\addplot coordinates {
(0,1)
(90,1)
(180,1)
(270,1)
};
\end{polaraxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
minor tick num=3,
]
\addplot {x^3};
\addplot {-20*x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[scale=1.6,rotate=19,thick]
\draw[fill](1,0)circle(.05)node[right]{$D_1$}(.309,.951)circle(.05)node[above]{$D_2$}(-.809,.588)circle(.05)node[left]{$D_3$}(-.809,-.588)circle(.05)node[below left]{$D_4$}(.309,-.951)circle(.05)node[below right]{$D_5$};
\foreach\a in{0,72,...,288}{
\begin{scope}[rotate=\a]
\draw(1,0)--(.309,.951);
\draw[-triangle 45](1,0)->(.481,.713);
\draw[-triangle 45](.309,.951)->(.827,.238);
\end{scope}}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[xscale=1.5,yscale=-1.2]
\node (A0_1) at (1, 0) {$W$};
\node (A1_0) at (0, 1) {$X$};
\node (A1_2) at (2, 1) {$Y\, ,$};
\path (A1_0) edge [->,dashed]node [auto] {$\scriptstyle{f}$} (A1_2);
\path (A0_1) edge [->]node [auto] {$\scriptstyle{q}$} (A1_2);
\path (A0_1) edge [->]node [auto,swap] {$\scriptstyle{p}$} (A1_0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot3 [
surf,
shader=interp,
patch type=bicubic,
patch type sampling,
samples=5,
domain=-3:3,
] {exp(-x^2-y^2)};
\addplot3 [
mark=*,
mark size=1pt,
only marks,
scatter,
samples=5,
domain=-3:3,
patch type=bicubic,
patch type sampling,
point meta={exp(-x^2-y^2)},
] {1.1};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\begin{document}
  \begin{tikzpicture}[line width = .5pt, vtx/.style={circle,draw,black,very thick,fill=black, line width = 1pt, inner sep=0pt}]
    \def\step{0.65} \def\hzero{1.5} \def\hone{2} \def\htwo{2.5}
    
    % Define ForestGreen explicitly to ensure it is correctly recognized, 
    % as it appeared to fail in the previous version.
    \definecolor{ForestGreen}{RGB}{34, 139, 34}
    \foreach \i in {1,...,24}
    {
    \coordinate (\i) at (\i*\step,0);
    \coordinate (\i00) at (\i*\step,\hzero);
    \coordinate (\i01) at (\i*\step+\step/2,\hzero);
    \coordinate (\i10) at (\i*\step,\hone);
    \coordinate (\i11) at (\i*\step+\step/2,\hone);
    \coordinate (\i20) at (\i*\step,\htwo);
    \coordinate (\i21) at (\i*\step+\step/2,\htwo);
    }
    \coordinate (0) at (0.25,0);
    \coordinate (25) at (25*\step-0.25,0);
    %Blue
    \draw[line width=0.8mm, color=blue] plot [smooth, tension=2] coordinates {(1) (201) (4)};
    \draw[line width=0.5mm, color=blue] plot [smooth, tension=2] coordinates {(2) (500) (8)};
    \draw[line width=0.5mm, color=blue] plot [smooth, tension=2] coordinates {(3) (700) (11)};
    %Red
    \draw[line width=0.8mm, color=red, dash pattern=on 10pt off 3pt] plot [smooth, tension=2] coordinates {(5) (811) (12)};
    \draw[line width=0.5mm, color=red, dash pattern=on 10pt off 3pt] plot [smooth, tension=2] coordinates {(6) (1011) (15)};
    \draw[line width=0.5mm, color=red, dash pattern=on 10pt off 3pt] plot [smooth, tension=2] coordinates {(7) (1111) (16)};
    \draw[line width=0.5mm, color=red, dash pattern=on 10pt off 3pt] plot [smooth, tension=2] coordinates {(9) (1311) (18)};
    \draw[line width=0.5mm, color=red, dash pattern=on 10pt off 3pt] plot [smooth, tension=2] coordinates {(10) (1411) (19)};
    %Green
    \draw[line width=0.8mm, color=ForestGreen, densely dotted] plot [smooth, tension=2] coordinates {(13) (1720) (21)};
    \draw[line width=0.5mm, color=ForestGreen, densely dotted] plot [smooth, tension=2] coordinates {(14) (1820) (22)};
    \draw[line width=0.5mm, color=ForestGreen, densely dotted] plot [smooth, tension=2] coordinates {(17) (2020) (23)};
    \draw[line width=0.5mm, color=ForestGreen, densely dotted] plot [smooth, tension=2] coordinates {(20) (2220) (24)};
    \draw[line width=0.3mm, color=lightgray]  (0) -- (25);
    \foreach \i/\l/\c in {1/A/blue, 2/B/blue, 3/C/blue, 4/A/blue, 5/D/red, 6/E/red, 7/F/red, 8/B/blue, 9/G/red, 10/H/red, 11/C/blue, 12/D/red, 13/I/ForestGreen, 14/J/ForestGreen, 15/E/red, 16/F/red, 17/K/ForestGreen, 18/G/red, 19/H/red, 20/L/ForestGreen, 21/I/ForestGreen, 22/J/ForestGreen, 23/K/ForestGreen, 24/L/ForestGreen} {
    \fill[black] (\i) circle (0.1) node [below] {\textcolor{\c}{$\l$}};
    }
  \end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{calc,patterns}
\usetikzlibrary{positioning}
\pgfplotsset{width=10cm,compat=1.9}
\pgfplotsset{every tick label/.append style={font=\large}
}
\begin{document}
\begin{tikzpicture}[scale=0.6]
\pgfplotsset{scale only axis,}
\begin{loglogaxis}[legend pos=south west, xlabel = \Large{Step size (\AA)},ylabel=\Large{Gradient ($\mathrm{kJ\ mol}^{-1}\mbox{\AA}^{-1}$)},legend cell align ={left},x dir=reverse, title=\Large{1etn},legend style={nodes={scale=0.75, transform shape}}]
\addplot[color=blue, line width = 0.5mm, dashed]coordinates{(0.1, 1.7752884815201573)(0.01, 0.2038530764452945)(0.001, 0.09434903278409568)(0.0001, 0.0016189198461762366)(0.00001, 0.00017148158591639984)};
\addlegendentry{\Large{Max Diff}}\addplot[color=blue, line width = 0.5mm]coordinates{(0.1, 0.3357936377933055)(0.01, 0.044842366943884035)(0.001, 0.00906648627018726)(0.0001, 0.00033573815181759276)(0.00001, 3.8375485385430035e-05)};
\addlegendentry{\Large{RMSD} }
\end{loglogaxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{through}
\begin{document}
\begin{tikzpicture}[every pin edge/.style={<-}]
\node [draw,dashed,circle through=(0:2.5)] (c) {};
\foreach \i/\j in {0.15/0.85,1.15/1.85,2.15/2.85,4.15/4.85,5.17/5.85,6.15/6.85,8.15/8.85,9.15/9.85}
\draw [<-] (\i/10*360:2.5) arc[radius=2.5,start angle={\i/10*360},end angle={\j/10*360}] node at ({(\i+\j)/10*360/2}:2.75) {$H$};
\foreach \i/\j in {1/i,2/i-1,5/n,6/1,9/i+1}
\node [draw,circle,fill=white,pin={{\i/10*360}:$\mathsf{pk}_{\j}$,$r_{\j}$}] at (c.{\i/10*360}) {$v$};
\node [minimum height=4.5mm,fill=white,pin={0:$\mathsf{pk}_s$,$\mathsf{sk}$,$r_s$}] at (c.{10/10*360}) {};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[siunitx,RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw(0,0)to[R=1<\kilo\ohm>,i>_=1<\milli\ampere>,o-*](3,0);
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\ctikzset{bipoles/length=.8cm}
\begin{circuitikz}[scale=1.2]
\draw
(0,0) node[anchor=east] {B}
to[short, o-*] (1,0)
to[R=20<\ohm>, *-*] (1,2)
to[R=10<\ohm>, v=$v_x$] (3,2) -- (4,2)
to[cI=$\frac{\si{\siemens}}{5} v_x$, *-*] (4,0) -- (3,0)
to[R=5<\ohm>, *-*] (3,2)
(3,0) -- (1,0)
(1,2) to[short, -o] (0,2) node[anchor=east]{A};
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usepackage{siunitx}
\begin{document}
\begin{circuitikz}[scale=0.7, transform shape]
\draw (0,3) node[op amp]{OA1};
\draw (3,3) node[op amp, xscale=-1]{OA2};
\draw (0,0) node[op amp]{OA3};
\draw (3,0) node[op amp, xscale=-1]{
\scalebox{-1}[1]{OA4}};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.8]
\tikzstyle{f}=[->,>=latex,line width=.2mm]
\draw(-1.5,-1.5)rectangle(1.5,1.5);
\draw[domain=0:2*pi,samples=80,smooth]plot({-(1+.5*exp(-cos(\x r)))*cos(\x r)/2},{sin(\x r)/2});
\fill[gray!20,domain=0:2*pi,samples=80,smooth]plot({-(1+.5*exp(-cos(\x r)))*cos(\x r)/2},{sin(\x r)/2});
\fill[gray!60](0,0)circle(.2);
\draw(0,0)circle(.2)node{$\omega$};
\draw(-1.5,1.3)node[left]{D};
\draw(1.1,1.2)node{$\Omega_{0}^{c}$};
\draw(.5,0)node{$\Omega_{0}$};
\draw(0,.8)node{$\Gamma_{0}$};
\draw[f](.2,.7)to[bend left=20](.6,.39);
\draw(-.65,-.65)node{$\Gamma_{\omega}$};
\draw[f](-.58,-.58)to[bend left=20](-.16,-.13);
\draw(1.075,-.7)node{$n_{0}$};
\draw[f](.745,-.345)to(.9,-.7);
\begin{scope}[xshift=4cm]
\draw[domain=0:2*pi,samples=80,dashed]plot({-(1+.5*exp(-cos(\x r)))*cos(\x r)/2},{sin(\x r)/2});
\draw(-1.5,-1.5)rectangle(1.5,1.5);
\draw[domain=0:2*pi,samples=80,smooth]plot({-(1+.5*exp(-cos(\x r)))*cos(\x r)/2},{(1-.3*(exp(-10*(\x-3*pi/4)^2)+exp(-10*(\x-5*pi/4)^2)))*sin(\x r)/2});
\fill[gray!20,domain=0:2*pi,samples=80,smooth]plot({-(1+.5*exp(-cos(\x r)))*cos(\x r)/2},{(1-.3*(exp(-10*(\x-3*pi/4)^2)+exp(-10*(\x-5*pi/4)^2)))*sin(\x r)/2});
\fill[gray!60](0,0)circle(.2);
\draw(0,0)circle(.2)node{$\omega$};
\draw(-1.5,1.3)node[left]{D};
\draw(1.1,1.2)node{$\Omega_{F}$};
\draw(.5,0)node{$\Omega_{S}$};
\draw(0,.8)node{$\Gamma_{FS}$};
\draw[f](.25,.7)to[bend left=20](.6,.29);
\draw(1.1,-.6)node{$n_{FS}$};
\draw[f](.745,-.24)to(.8,-.62);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
polar
}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}[
xtick={0,90,180,270},
title=A polar axis,
]
\addplot coordinates {(0,1) (45,1)};
\addlegendentry{First}
\addplot coordinates {(180,0.5) (0,0)};
\addlegendentry{Second}
\end{polaraxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{calc}
\tikzset{vertex/.style={circle,fill=black,outer sep=2pt,inner sep=1pt}
}
\begin{document}
\begin{tikzpicture}[>=stealth]
\path[use as bounding box](-1.5,-0.5)rectangle(10.5,5);
\begin{scope}
\node[below]at(0,0){root};
\draw node[vertex](a)at(0,3){};
\draw node[vertex](b)at(0,4){};
\node[above]at(b){$v$};
\draw[->](0,0)--(a)(a)--(b);
\draw[blue,->](b)..controls(-1,4.5)..node[below right]{$e_1$}(0,2);
\draw[blue,->](b)..controls(1,4.5)and(-3,7)..node[below right]{$e_2$}(0,1);
\end{scope}
\begin{scope}[xshift=3cm]
\node[below]at(0,0){root};
\draw node[vertex](a)at(0,3){};
\draw node[vertex](b)at(0,4){};
\node[above]at(b){$v$};
\draw[->](0,0)--(a)(a)--(b);
\draw[blue,->](b)..controls(-1,4.5)..node[below right]{$e_1$}(0,1);
\draw[red,->](b)..controls(1,4.5)..node[below left]{$e_2$}(0,2);
\end{scope}
\begin{scope}[xshift=6cm]
\node[below]at(0,0){root};
\draw node[vertex](a)at(0,3){};
\draw node[vertex](b)at(0,4){};
\node[above]at(b){$v$};
\draw[->](0,0)--(a)(a)--(b);
\draw[blue,->](b)..controls(-1,4.5)..node[below right]{$e_1$}(0,2);
\draw[red,->](b)..controls(1,4.5)..node[below left]{$e_2$}(0,1);
\end{scope}
\begin{scope}[xshift=9cm]
\node[below]at(0,0){root};
\draw node[vertex](a)at(0,3){};
\draw node[vertex](b)at(0,4){};
\node[above]at(b){$v$};
\draw[->](0,0)--(a)(a)--(b);
\draw[red,->](b)..controls(1,4.5)..node[below left]{$e_1$}(0,2);
\draw[red,->](b)..controls(-1,4.5)and(3,7)..node[below left]{$e_2$}(0,1);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}[>=stealth]
\path[use as bounding box](-1,-0.5)rectangle(1.5,5.5);
\node[below]at(0,0){root};
\draw node[vertex](a)at(0,1){};
\draw node[vertex](b)at(0,2){};
\draw node[vertex](c)at(0,3){};
\draw node[vertex](d)at(0,4){};
\node[above]at(d){$v$};
\draw(d)node[left]{$e_1$}--(-0.5,4.5);
\filldraw[draw=blue,fill=blue!50](-0.5,4.5)..controls(-1,5)and(-0.75,4.5)..($(c)+(180:4pt)$)arc[start angle=180,end angle=270,radius=4pt]--($(b)+(90:4pt)$)..controls(-1,5)..(-0.5,4.5);
\draw(d)node[right]{$e_2$}--(0.5,4.5);
\filldraw[draw=red,fill=red!50](0.5,4.5)..controls(1,5)and(0.75,4.5)..($(c)+(0:4pt)$)arc[start angle=0,end angle=-90,radius=4pt]--($(b)+(90:4pt)$)arc[start angle=90,end angle=0,radius=4pt]($(b)+(0:4pt)$)..controls(1,5)..(0.5,4.5);
\draw[red,thick,->](0.5,4.5)..controls(1,5)..($(b)+(0:4pt)$);
\draw[->](-0.5,4.5)..controls(-1,5)and(3,7)..(a);
\draw[->](0,0)--(a)(a)--(b)(b)--(c)(c)--node[left]{$e$}(d);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{verbatim, enumitem, amsmath, amsthm, amsfonts}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}
\node[circle, draw=black, fill=white] (b) at (0,2) {$c$};
\node[circle, draw=black, fill=white] (a) at (0,0) {$b$};
\node[circle, draw=black, fill=white] (c) at (2,0) {$d$};
\node[circle, draw=black, fill=white] (d) at (2,2) {$a$};
\draw[-Latex] (b) -- (a);
\draw[-Latex] (d) edge (c);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
legend entries={$x$,[red]$x^2$,$x^3$},
]
\addplot {x};
\addplot {x^2};
\addplot {x^3};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
ylabel=$y$ \emph{decreasing} $\to$,
y dir=reverse,
]
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
statistics,
}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [
hist={bins=3},
] table [row sep=\\,y index=0] {
data\\
1\\ 2\\ 1\\ 5\\ 4\\ 10\\
7\\ 10\\ 9\\ 8\\ 9\\ 9\\
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{ternary}
\begin{document}
\begin{tikzpicture}
\begin{ternaryaxis}[
title=Sloped labels and minor ticks,
xlabel=Water,
ylabel=D-Threonine,
zlabel=L-Threonine,
label style={sloped},
minor tick num=2,
]
\addplot3 coordinates {
(0.82, 0.18, 0.00)
(0.75, 0.17, 0.08)
(0.77, 0.12, 0.11)
(0.75, 0.08, 0.17)
(0.81, 0.00, 0.19)
};
\addplot3 coordinates {
(0.75, 0.25, 0.00)
(0.69, 0.25, 0.06)
(0.64, 0.24, 0.12)
(0.655, 0.23, 0.115)
(0.67, 0.17, 0.16)
(0.66, 0.12, 0.22)
(0.64, 0.11, 0.25)
(0.69, 0.05, 0.26)
(0.76, 0.01, 0.23)
};
\end{ternaryaxis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\usepackage{amsmath,amssymb}
\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 [
school book axes,
x axis={label=$x$},
visualize as smooth line/.list={log, lin, squared, exp},
log= {label in data={text'=$\log x$, when=y is -1,
text colored}},
lin= {label in data={text=$x/2$, when=x is 2}},
squared={label in data={text=$x^2$, when=x is 1.1}},
exp= {label in data={text=$e^x$, when=x is -2,
text colored}},
style sheet=vary hue]
data group {function classes};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\begin{tikzpicture}
\graph [name separator=-] {
{ [name=first] 1, 2, 3} --
{ [name=second] 1, 2, 3}
};
\draw [red] (second-1) circle [radius=3mm];
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture} [scale=1.5]
\node (1) at (0,1) {$(p_k)_* + p_{k+1}$};
\node (a) at (-1.5,0) {$p_k$};
\node (x) at (-1.5,-1) {$(p_k)_*$};
\node (b) at (1,-1) {$p_{k+1}$};
\draw (x) -- (a) -- (1) -- (b);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[red] (2,0) -- (0,0.7) (2,0.7) -- (1,1);
\draw[red] (2,0) to[out=105,in=-15] (0,2);
\draw[blue] (0,0) -- (2,2);
\draw[dashed] (0,0) -- (2,0) -- (2,2) -- (0,2) -- (0,0);
\draw[fill] (0,0) circle (0.05)
(2,2) circle (0.05)
(0,2) circle (0.05)
(2,0) circle (0.05)
(1,1) circle (0.05);
\draw (0,2) -- (1,1);
\draw (0,0) to[out=75,in=-135] (0.7,1.3) to[out=45,in=-165] (2,2);
\end{tikzpicture}
\end{document}