AIGrounding/Diagram-MMU huggingface dataset:
\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=TeX code]{\pgfkeys{/data point/.cd,x=0,y=0}\pgfdatapoint\pgfkeys{/data point/.cd,x=1,y=1}\pgfdatapoint\pgfkeys{/data point/x=2}\pgfdatapoint\pgfkeyssetvalue{/data point/x}{3}\pgfkeyssetvalue{/data point/y}{0}\pgfdatapoint};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions,
}
\begin{document}
\tikz \datavisualization data group {function classes} = {
data [set=log, format=function] {
var x : interval [0.2:2.5];
func y = ln(\value x);
}
data [set=lin, format=function] {
var x : interval [-2:2.5];
func y = 0.5*\value x;
}
data [set=squared, format=function] {
var x : interval [-1.5:1.5];
func y = \value x*\value x;
}
data [set=exp, format=function] {
var x : interval [-2.5:1];
func y = exp(\value x);
}
};
\tikz \datavisualization [
scientific axes,
visualize as smooth line/.list=
{log, lin, squared, exp},
legend=west outside,
log= {label in legend={text=$\log x$}},
lin= {label in legend={text=$x/2$}},
squared={label in legend={text=$x^2$}},
exp= {label in legend={text=$e^x$}},
style sheet=strong colors]
data group {function classes};
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}
\datavisualization[scientific axes=clean, x axis={length=3cm, ticks=few}, visualize as smooth line] data [format=function] {var x : interval [-1.5:1.5] samples 7;
func y = \value x*\value x;
};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=10pt]{standalone}
\begin{document}
\begin{tikzpicture}
\coordinate (A) at (0,0);
\coordinate (B) at (3.2,0);
\coordinate (C) at (3.2,3.2);
\coordinate (D) at (0,3.2);
\coordinate (E) at (0.8,0.8);
\coordinate (F) at (2.4,0.8);
\coordinate (G) at (2.4,2.4);
\coordinate (H) at (0.8,2.4);
\draw (A) -- (B) -- (C) -- (D) -- cycle;
\draw (E) -- (F) -- (G) -- (H) -- cycle;
\foreach \c/\d in {A/E, B/F, C/G, D/H} {
\draw (\c) -- (\d);
}
\foreach \c in {A,B,C,D,E,F,G,H} {
\fill (\c) circle (2.5pt);
}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xfp}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tkz-base}
\usepackage{tkz-euclide}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}\tkzSetUpColors[background=white,text=black]\tkzSetUpPoint[size=2,color=black,fill=black]\tkzSetUpLine[line width=.2pt,color=black]\tikzset{every picture/.style={line width=.2pt}
,label style/.append style={below,color=teal,font=\scriptsize}}
\begin{document}
\begin{tikzpicture}[scale=1]
\tkzDefPoint(2,3){A}\tkzDefShiftPoint[A](30:3){B}\tkzDefShiftPoint[A](-30:3){C}\tkzDrawPolygon(A,B,C)\tkzDrawPoints(A,B,C)\tkzLabelPoints[right](B,C)\tkzLabelPoints[above left](A)\tkzMarkSegments[mark=|](A,B A,C B,C)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[thick,scale=0.5]
\node[red, circle, fill, inner sep=0pt, outer sep=0pt] (1) at (1,0){};
\node[red, circle, fill, inner sep=0pt, outer sep=0pt] (2) at (1,-1){};
\node[red, circle, fill, inner sep=0pt, outer sep=0pt] (3) at (0,-2){};
\node[red, circle, fill, inner sep=0pt, outer sep=0pt] (4) at (2,-2){};
\node[red, circle, fill, inner sep=0pt, outer sep=0pt] (5) at (0,-3){};
\node[red, circle, fill, inner sep=0pt, outer sep=0pt] (6) at (2,-3){};
\node[inner sep=0pt, outer sep=0pt] (7) at (6,-1.3){$\Delta: F \rightarrow F \otimes F$};
\draw [ultra thick, red, rounded corners] (1) -- (2);
\draw [ultra thick, red, rounded corners] (2) -- (3);
\draw [ultra thick, red, rounded corners] (2) -- (4);
\draw [ultra thick, red, rounded corners] (3) -- (5);
\draw [ultra thick, red, rounded corners] (4) -- (6);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\tikzset{splitter/.style={fill=black,circle,inner sep=0pt,minimum size=4pt}
,saturated/.style={very thick},fluid/.style={}}
\begin{document}
\begin{tikzpicture}[x=1cm,y=1cm,>=latex]
\draw(-1.5,0)node[anchor=east]{Network:};
\draw(-1.5,-2)node[anchor=east]{Residual graph:};
\begin{scope}[xshift=0cm]
\node[splitter](s)at(0,0){};
\draw[->,fluid](-1,0.5)--(s);
\draw[->,fluid](-1,-0.5)--(s);
\draw[<-,fluid](1,0.5)--(s);
\draw[<-,fluid](1,-0.5)--(s);
\draw[->,double](0,-0.5)--(0,-1.5);
\node[splitter](r)at(0,-2){};
\draw[->,fluid](-1,-1.5)--(r);
\draw[->,fluid](-1,-2.5)--(r);
\draw[<-,fluid,red](1,-1.5)--(r);
\draw[<-,fluid,red](1,-2.5)--(r);
\end{scope}
\begin{scope}[xshift=2.5cm]
\node[splitter](s)at(0,0){};
\draw[->,fluid](-1,0.5)--(s);
\draw[->,fluid](-1,-0.5)--(s);
\draw[<-,saturated](1,0.5)--(s);
\draw[<-,fluid](1,-0.5)--(s);
\draw[->,double](0,-0.5)--(0,-1.5);
\node[splitter](r)at(0,-2){};
\draw[->,fluid](-1,-1.5)--(r);
\draw[->,fluid](-1,-2.5)--(r);
\draw[->,fluid](1,-1.5)--(r);
\draw[<-,fluid,red](1,-2.5)--(r);
\end{scope}
\begin{scope}[xshift=5cm]
\node[splitter](s)at(0,0){};
\draw[->,fluid](-1,0.5)--(s);
\draw[->,fluid](-1,-0.5)--(s);
\draw[<-,saturated](1,0.5)--(s);
\draw[<-,saturated](1,-0.5)--(s);
\draw[->,double](0,-0.5)--(0,-1.5);
\node[splitter](r)at(0,-2){};
\draw[->,fluid](-1,-1.5)--(r);
\draw[->,fluid](-1,-2.5)--(r);
\draw[->,fluid](1,-1.5)--(r);
\draw[->,fluid](1,-2.5)--(r);
\end{scope}
\begin{scope}[xshift=7.5cm]
\node[splitter](s)at(0,0){};
\draw[->,fluid](-1,0.5)--(s);
\draw[->,saturated](-1,-0.5)--(s);
\draw[<-,saturated](1,0.5)--(s);
\draw[<-,saturated](1,-0.5)--(s);
\draw[->,double](0,-0.5)--(0,-1.5);
\node[splitter](r)at(0,-2){};
\draw[->,fluid](-1,-1.5)--(r);
\draw[<-,fluid,red](-1,-2.5)--(r);
\draw[->,fluid](1,-1.5)--(r);
\draw[->,fluid](1,-2.5)--(r);
\end{scope}
\begin{scope}[xshift=10cm]
\node[splitter](s)at(0,0){};
\draw[->,saturated](-1,0.5)--(s);
\draw[->,saturated](-1,-0.5)--(s);
\draw[<-,saturated](1,0.5)--(s);
\draw[<-,saturated](1,-0.5)--(s);
\draw[->,double](0,-0.5)--(0,-1.5);
\node[splitter](r)at(0,-2){};
\draw[<-,fluid,red](-1,-1.5)--(r);
\draw[<-,fluid,red](-1,-2.5)--(r);
\draw[->,fluid](1,-1.5)--(r);
\draw[->,fluid](1,-2.5)--(r);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[baseline={([yshift=-.5em] current bounding box.north)},scale=0.4]
\draw[dashed] (-2,0) -- (4,0) ;
\draw[dashed] (0,1.75) -- (0,-2)node[]{$\times$} ;
\draw[dashed] (0,-2) -- (6,-2);
\draw[dashed] (4,0) -- (4,-3.5);
\filldraw (0,0) circle (1mm);
\draw (4,0) circle (3.4mm);
\draw (5.5,-3) circle (3.4mm) node[] {$\times$};
\draw (4,0)node[anchor=south west]{$p_{\sigma(i)}$};
\draw (0,-2)node[anchor=north east]{$p_{\tau(i)}$};
\draw (0,0) node[anchor=south east] {$(\sigma,\tau)p_i$};
\draw (5.5,-3) node[anchor=north west]{$p_i$};
\node at (2,-5) {(I) $\alpha_{\sigma(i)}<\alpha_{\tau(i)}, \beta_{\tau(i)}<\beta_{\sigma(i)}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis x line=bottom,
axis x discontinuity=parallel,
axis y line=left,
xmin=360, xmax=600,
ymin=0, ymax=7,
enlargelimits=false,
]
\addplot coordinates {
(420,2)
(500,6)
(590,4)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsfonts,amsthm,amssymb}
\usepackage{tikz}
\tikzset{vertex/.style={draw,fill=black,circle,inner sep=2pt,minimum size=3pt}}
\tikzset{wvertex/.style={draw,fill=white,circle,inner sep=2pt,minimum size=3pt}}
\begin{document}
\begin{tikzpicture}
\tikzset{vertex/.style={draw,fill=black,circle,inner sep=2pt,minimum size=3pt}}
\tikzset{wvertex/.style={draw,fill=white,circle,inner sep=2pt,minimum size=3pt}}
\node[vertex] (a1) at (0,0) {};
\node[wvertex] (a2) at (4,0) {};
\node[vertex] (a3) at (8,0) {};
\node[vertex] (b1) at (0,2) {};
\node[wvertex] (b2) at (4,2) {};
\node[vertex] (b3) at (8,2) {};
\node[vertex] (c1) at (2,1) {};
\node[wvertex] (c2) at (6,1) {};
\node (x2) at (-1,0.5) {};
\node (x4) at (-1,1.5) {};
\node (y2) at (9,0.5) {};
\node (y4) at (9,1.5) {};
\draw (a1) to (b1); \draw (a1) to (c1); \draw (b1) to (c1); \draw (a2) to (b2); \draw (a2) to (c2); \draw (b2) to (c2); \draw (a3) to (b3);
\draw (c1) to (a2); \draw (c1) to (b2); \draw (c2) to (a3); \draw (c2) to (b3);
\draw (a1) to (x2); \draw (b1) to (x4);
\draw (a3) to (y2); \draw (b3) to (y4);
\node (cap) at (3,-0.5) {(a)};
\node (x0) at (-3,0) {};
\node (x1) at (-1,0) {}; \node (name_x) at (-0.8,0) {$x$};
\node (y0) at (-2.5,-0.5) {};
\node (y1) at (-2.5,1.5) {}; \node (name_y) at (-2.5,1.7) {$y$};
\draw[->,>=latex] (x0) to (x1);
\draw[->,>=latex] (y0) to (y1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture} [>=latex]
\filldraw[black] (0,4) circle (1pt) node[anchor=east]{$x_1$};
\filldraw[black] (0,3) circle (1pt) node[anchor=east]{$x_2$};
\filldraw[black] (0,2) circle (1pt) node[anchor=east]{$x_3$};
\filldraw[black] (0,1) circle (1.73pt) node[anchor=east]{$x_4$};
\filldraw[black] (0,0) circle (1.73pt) node[anchor=east]{$x_5$};
\filldraw[black] (6,4) circle (2pt) node[anchor=west]{$y_1$};
\filldraw[black] (6,3) circle (1pt) node[anchor=west]{$y_2$};
\filldraw[black] (6,2) circle (1.4pt) node[anchor=west]{$y_3$};
\filldraw[black] (6,1) circle (1pt) node[anchor=west]{$y_4$};
\filldraw[black] (6,0) circle (1pt) node[anchor=west]{$y_5$};
\filldraw[black] (3,0) circle (0pt) node[anchor=north]{$T$};
\filldraw[black] (0.55,0.6) circle (0pt) node[anchor=north]{$27$};
\filldraw[black] (0.27,1.1) circle (0pt) node[anchor=north]{$27$};
\filldraw[black] (0.3,2) circle (0pt) node[anchor=north]{$9$};
\filldraw[black] (0.45,3) circle (0pt) node[anchor=north]{$9$};
\filldraw[black] (0.3,3.65) circle (0pt) node[anchor=north]{$9$};
\filldraw[black] (1.5,2.4) circle (0pt) node[anchor=south]{$18$};
\filldraw[black] (0.85,1.35) circle (0pt) node[anchor=west]{$54$};
\filldraw[black] (1.4,1.7) circle (0pt) node[anchor=south]{$63$};
\filldraw[black] (3,1.75) circle (0pt) node[anchor=south]{$81$};
\filldraw[black] (4.5,2) circle (0pt) node[anchor=south]{$63$};
\filldraw[black] (4.6,1.35) circle (0pt) node[anchor=north]{$18$};
\filldraw[black] (4.95,3.35) circle (0pt) node[anchor=north]{$45$};
\filldraw[black] (5.9,3.85) circle (0pt) node[anchor=north]{$36$};
\filldraw[black] (5.65,3.3) circle (0pt) node[anchor=north]{$9$};
\filldraw[black] (5.4,2.3) circle (0pt) node[anchor=north]{$18$};
\filldraw[black] (5.9,0.85) circle (0pt) node[anchor=north]{$9$};
\filldraw[black] (5.65,0.35) circle (0pt) node[anchor=north]{$9$};
\filldraw[black] (2,1.75) circle (0pt) ;
\filldraw[black] (4.5,1.85) circle (0pt) ;
\filldraw[black] (5,2.5) circle (0pt) ;
\filldraw[black] (5.5,0.5) circle (0pt) ;
\filldraw[black] (5.5,3.5) circle (0pt) ;
\draw[->] (0,4)--(1,2.85);
\draw[->] (0,3)--(1,2.85);
\draw[->] (0,2)--(1,1.75);
\draw[thick,->] (0,1)--(0.75,1.15);
\draw[thick,->] (0,0)--(0.75,1.15);
\draw[very thick, ->] (0.75,1.15)--(1,1.75);
\draw[semithick, ->] (1,2.85)--(2,1.75);
\draw[very thick, ->] (1,1.75)--(2,1.75);
\draw[ultra thick, ->] (2,1.75)--(4.5,1.85);
\draw[very thick, ->] (4.5,1.85)--(5,2.5);
\draw[semithick, ->] (4.5,1.85)--(5.5,0.5);
\draw[line width=1pt, ->] (5,2.5)--(5.5,3.5);
\draw[semithick, ->] (5,2.5)--(6,2);
\draw[->] (5.5,3.5)--(6,3);
\draw[thick, ->] (5.5,3.5)--(6,4);
\draw[->] (5.5,0.5)--(6,1);
\draw[->] (5.5,0.5)--(6,0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{angles,quotes}
\newcommand{\xl}{{x_l}
}\newcommand{\xu}{{x_h}
}
\begin{document}
\begin{tikzpicture}[scale=7]
\draw[<->] (0,0.45)--(0,0)node[below]{$\xl$}--(1,0)--(1,-0.01)node[below]{$\xu$}--(1,0)--(1.1,0)node[below]{$x_D$};
\draw[densely dotted](0.2,0)node[below]{$a$}--(0.2,0.1);
\draw[densely dotted](0.7,0)node[below]{$b$}--(0.7,0.35);
\draw[densely dotted](0,0.35)node[left]{$\frac{b}{2}$}--(0.7,0.35);
\draw[blue,dashed](0,0.1)node[left,black]{$\frac{a}{2}$}--(0.2,0.1);
\draw[blue](0.2,0.1)--(0.7,0.35)--(1,0.35);
\draw[blue](0.9,0.3)node[]{$m(x_D)$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=2,thick]
\node at (0,0) (01) {$0$};
\node at (-1,0) (01s) {\Large$\color{violet}S_0=1$};
\node at (0,1) (02) {$1$};
\node at (-1.5,1) (02s) {\Large$\color{violet}S_1=1$};
\node at (0,2) (03) {$2$};
\node at (-2,2) (03s) {\Large$\color{violet}S_2=2$};
\node at (0,3) (04) {$3$};
\node at (-2.5,3) (04s) {\Large$\color{violet}S_3=2$};
\node at (0,4) (05) {$4$};
\node at (-3,4) (05s) {\Large$\color{violet}S_4=3$};
\node at (0,5) (06) {$5$};
\node at (-3.5,5) (06s) {\Large$\color{violet}S_5=3$};
\node at (-1,2) (12) {$2$};
\node at (-1,3) (13) {$3$};
\node at (-1,4) (14) {$4$};
\node at (-1,5) (15) {$5$};
\node at (-1,6) (16) {$6$};
\node at (-4,6) (16s) {\Large$\color{violet}S_6=3$};
\node at (-2,4) (23) {$4$};
\node at (-2,5) (24) {$5$};
\node at (-2,6) (25) {$6$};
\node at (-2,7) (26) {$7$};
\node at (-4.5,7) (26s) {\Large$\color{violet}S_7=2$};
\node at (-3,6) (34) {$6$};
\node at (-3,7) (35) {$7$};
\node at (-3,8) (36) {$8$};
\node at (-5,8) (36s) {\Large$\color{violet}S_8=2$};
\node at (-4,8) (45) {$8$};
\node at (-4,9) (46) {$9$};
\node at (-5.5,9) (46s) {\Large$\color{violet}S_9=1$};
\node at (-5,10) (56) {$10$};
\node at (-6,10) (56s) {\Large$\color{violet}S_{10}=1$};
\draw[line width=0.25mm](01) --(02) --(03) -- (04) --(05) --(06) -- (16) -- (26) -- (36) -- (46) -- (56);
\draw[line width=0.25mm](02) --(12) --(13) -- (14) -- (15) -- (16);
\draw[line width=0.25mm](03) --(13) --(23) -- (24) -- (25) -- (26);
\draw[line width=0.25mm](04) --(14) --(24) -- (34) -- (35) -- (36);
\draw[line width=0.25mm](05) --(15) --(25) -- (35) -- (45) -- (46);
\draw[line width=0.25mm, loosely dotted, violet] (01) -- (01s);
\draw[line width=0.25mm, loosely dotted, violet] (02) -- (02s);
\draw[line width=0.25mm, loosely dotted, violet] (03) -- (03s);
\draw[line width=0.25mm, loosely dotted, violet] (04) -- (04s);
\draw[line width=0.25mm, loosely dotted, violet] (05) -- (05s);
\draw[line width=0.25mm, loosely dotted, violet] (06) -- (06s);
\draw[line width=0.25mm, loosely dotted, violet] (16) -- (16s);
\draw[line width=0.25mm, loosely dotted, violet] (26) -- (26s);
\draw[line width=0.25mm, loosely dotted, violet] (36) -- (36s);
\draw[line width=0.25mm, loosely dotted, violet] (46) -- (46s);
\draw[line width=0.25mm, loosely dotted, violet] (56) -- (56s);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{
arrows.meta,
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
separate axis lines,
every outer x axis line/.append style=
{-stealth,red},
every outer y axis line/.append style=
{-stealth,green!30!black},
]
\addplot [
blue,
samples=100,domain=-15:15,
] {1.3*exp(0-x^2/10) - exp(0-x^2/20)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz,subcaption}
\usetikzlibrary{calc,intersections, through,arrows,decorations.markings}
\newcommand{\lsla}[3]{\draw (#1+0.5*#2,0.866*#2) -- +(0.5,0.866) -- +(1.5,0.866) -- +(1,0) -- cycle;
\node(A) at (#1+0.5*#2+0.75,0.866*#2+0.433){\small #3}
;
}\newcommand{\lbsla}[3]{\draw (#1+0.5*#2,0.866*#2) -- +(-0.5,0.866) -- +(0.5,0.866) -- +(1,0) -- cycle;
\node(A) at (#1+0.5*#2+0.25,0.866*#2+0.433){\small #3}
;
}\newcommand{\dia}[2]{\draw (#1+0.5*#2,0.866*#2) -- +(0.5,0.866) -- +(1,0) -- +(0.5,-0.866) -- cycle;
}
\begin{document}
\begin{tikzpicture}[fill=gray!50, scale=0.5,rotate=90, vertex/.style={circle,inner sep=2,fill=black,draw}]
\lsla{1}{0}{$c$}\lbsla{1}{1}{$b$}\lsla{0}{2}{$a$}\dia{-1}{3}\dia{1}{2}\dia{0}{1}\dia{2}{0}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[R, v=1<\volt>] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [data cs=polar,domain=0:360] (\x,1);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{calc}
\pgfkeys{dimline/.is family,dimline,dimcolor/.initial = black,start line/.initial=1cm,start line width/.initial=0.01,end line/.initial=1cm,end line width/.initial=0.01,label pos/.initial={},}\newcommand{\dimline}[4][]{\pgfkeys{dimline,#1,start line width/.get=\dimlinestartlinewidth,start line/.get=\dimlinestartline,end line/.get=\dimlineendline,end line width/.get=\dimlineendlinewidth,label pos/.get=\labelpos,}
\begin{scope}[dimrecall/.style={\pgfkeysvalueof{/dimline/dimcolor}},dimline/.style={\pgfkeysvalueof{/dimline/dimcolor}},]
\node (a) at #2 {};
\node (b) at #3 {};
\draw [/tikz/dimrecall, line width=\dimlinestartlinewidth](a.center) -- ($(a)!\dimlinestartline!-90:(b)$);
\draw [dimrecall, line width=\dimlineendlinewidth](b.center) -- ($(b)!\dimlineendline!90:(a)$);
\draw[|<->|, dimline,] (a.center) -- (b.center)node[fill=white, sloped, midway] {\tiny{#4}};
\end{scope}}
\begin{document}
\begin{tikzpicture}
\begin{axis} [xmin = -1,xmax = 8,ymin = -1,ymax = 8]\addplot[mark=none, color=black] coordinates {(0,0) (0,4) (.5,4) (.5,5) (1.,5) (1.,4) (1.5,4) (1.5,0) (0,0)};
\pgfplotsextra{\dimline[dimcolor=blue,start line=-0.25, end line=-0.25]{(axis cs: 3,0)}{(axis cs:3,4)}{4.0};
\dimline[dimcolor=red,start line=0.85, end line=0.85]{(axis cs: 0,6)}{(axis cs: 1.5,6)}{1.5};
}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[scale=0.55]
\tikzstyle{every node}=[draw, shape=circle, scale=0.5, fill=black!10]
;
\foreach \i in {1,...,5}{ \pgfmathsetmacro\startj{\i+1}\foreach \j in {\startj, ..., 6}{\draw[thick] ({1.5*cos(60*\i)},{1.5*sin(60*\i)})--({1.5*cos(60*\j)},{1.5*sin(60*\j)});
}}\foreach \i in {1,...,6}{\node (v_\i) at ({1.5*cos(60*\i)},{1.5*sin(60*\i)}){\i};
}\foreach \k in {7,...,10}{\pgfmathsetmacro\startl{\k+1}\foreach \l in {\startl, ..., 10}{\draw[thick] ({5+1.5*cos(90*(\k-6))},{1.5*sin(90*(\k-6))})--({5+1.5*cos(90*(\l-6))},{1.5*sin(90*(\l-6))});
}}\foreach \k in {7,...,10}{\node (v_\k) at ({5+1.5*cos(90*(\k-6))},{1.5*sin(90*(\k-6))}){\k};
}\foreach \k in {11,...,13}{\pgfmathsetmacro\startl{\k+1}\foreach \l in {\startl, ..., 13}{\draw[thick] ({9+1.5*cos(120*(\k-10))},{1.5*sin(120*(\k-10))})--({9+1.5*cos(120*(\l-10))},{1.5*sin(120*(\l-10))});
}}\foreach \k in {11,...,13}{\node (v_\k) at ({9+1.5*cos(120*(\k-10))},{1.5*sin(120*(\k-10))}){\k};
}\draw[thick](v_10) -- (v_12);
\tikzstyle{every node}=[scale=0.75, fill=black!0]
;
\node ($G_1$) at (0,-3){$G_1$};
\node ($G_i$) at (5,-3){$G_i$};
\node ($G_j$) at (9,-3){$G_j$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{trees}
\tikzset{
level distance=1cm,
sibling distance=1cm,
}
\begin{document}
\begin{tikzpicture}
\node {root}
child {node {left}}
child {node {right}
child {node {child}}
child {node {child}}
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{turtle}
\begin{document}
\tikz \filldraw [thick,blue,fill=blue!20]
[turtle=home]
\foreach \i in {1,...,5}
{
[turtle={forward,right=144}]
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\begin{document}
\tikz \datavisualization data group {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 {
legend example/.style={
scientific axes, all axes={length=1cm, ticks=none},
1={label in legend={text=1}},
2={label in legend={text=2}},
3={label in legend={text=3}},
4={label in legend={text=4}},
5={label in legend={text=5}},
6={label in legend={text=6}},
7={label in legend={text=7}},
8={label in legend={text=8}}
}
}
\tikz \datavisualization [
visualize as smooth line/.list={1,2,3,4,5,6,7,8},
legend example, style sheet=vary hue,
main legend={ideal number of rows=4}]
data group {sin functions};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=\texttt{tick scale
binop=\textbackslash times},
tick scale binop=\times,
]
\addplot [
mark=none,
blue,
samples=250,
domain=0:5,
] {exp(10*x)};
\end{axis}
\end{tikzpicture}
\end{document}