AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,mathtools,bm,isomath,amsthm,color,soulutf8,longtable,colortbl,setspace,xspace,url,pdflscape,cite}
\usepackage{tikz}
\usetikzlibrary{positioning,calc,decorations.pathreplacing,matrix,fit}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\draw [thick](-4,-1) -- (-4,1);
\draw [thick](+4,-1) -- (+4,1);
\draw [thick](-4,-1) arc (180:360:4 and 1);
\draw[thick,dashed] (4,-1) arc (-1:180:4 and 1);
\draw [thick](-4,+1) arc (180:360:4 and 1);
\draw [thick](+4,+1) arc (-4:180:4 and 1);
\draw[thick,gray,dashed](0,-1) --(+4,-1);
\draw [thick](-1,-1) -- (-1,1);
\draw [thick](+1,-1) -- (+1,1);
\draw [thick](-1,-1) arc (180:360:1 and 0.25);
\draw[thick,dashed] (1,-1) arc (-1:180:1 and 0.25);
\draw [thick](-1,+1) arc (180:360:1 and 0.25);
\draw [thick](+1,+1) arc (-1:180:1 and 0.25);
\draw[thick,gray,dashed](0,-1) --(+1,-1);
\draw [thick,<->] (0,-1) -- node[fill=white,inner sep=1pt] {\scriptsize$0.25$} (1,-1);
\draw [thick,<->] (0,-2.5) -- node[fill=white,scale=0.9,inner sep=1pt] {$1$ } (4,-2.5);
\draw [thick,<->] (4.5,1) -- node[fill=white,scale=0.9, inner sep=1pt] {$0.25$ } (4.5,-1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{arrows}
\usetikzlibrary{decorations.markings}
\begin{document}
\begin{tikzpicture}[every node/.style={midway}]
\matrix[column sep={3em}, row sep={3em}]
{\node(1) {$P_{R}(M)$}; & \node(2) {$P_{R}(N)$}; \\
\node(3) {$M$}; & \node(4) {$N$};\\};
\draw[dashed,decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}},postaction={decorate},shorten >=0.5pt] (1) -- (2) node[anchor=south] {$\tilde{f}$};
\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}},postaction={decorate},shorten >=0.5pt] (1) -- (3) node[anchor=west] {$\pi_{M}$};
\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}},postaction={decorate},shorten >=0.5pt] (2) -- (4) node[anchor=west] {$\pi_{N}$};
\draw[decoration={markings,mark=at position 1 with {\arrow[scale=1.5]{>}}},postaction={decorate},shorten >=0.5pt] (3) -- (4) node[anchor=south] {$f$};
\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, i_<=$i_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{shapes.multipart}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{tikzpicture}
\node [circle solidus,draw,double,fill=red!20]
{
$q_1$
\nodepart{lower}
$00$
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz\graph[grow right sep,left anchor=east,right anchor=west]{start--{long text--{short,very long text}--more text,long--longer--longest}--end};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
symbolic x coords={a,$1 \pm 2$,c,d,1\&1,f,g,h,i},
xtick=data,
]
\addplot+ [smooth] coordinates {
(a,42)
($1 \pm 2$,50)
(c,80)
(1\&1,60)
(g,62)
(i,90)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xfp}
\usepackage[dvipsnames,svgnames]{xcolor}
\usetikzlibrary{
calc,
patterns,
patterns.meta,
arrows.meta,
decorations.pathreplacing,
decorations.markings,
backgrounds,
shapes.geometric,
positioning,
intersections,
through,
angles,
quotes,
}
\usepackage{tkz-base}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}
\providecolor{darkgray}{rgb}{0.4, 0.4, 0.4}
\providecolor{lightgray}{rgb}{0.8, 0.8, 0.8}
\tkzSetUpColors[background=white,text=black]
\tkzSetUpCompass[color=orange, line width=.2pt,delta=10]
\tkzSetUpArc[color=gray,line width=.2pt]
\tkzSetUpPoint[size=2,color=teal]
\tkzSetUpLine[line width=.2pt,color=teal]
\tikzset{every picture/.style={line width=.2pt}}
\tikzset{new/.style={color=orange,line width=.2pt}}
\tikzset{label angle style/.append style={color=teal,font=\footnotesize}}
\tikzset{label style/.append style={below,color=teal,font=\scriptsize}}
\tikzset{line style/.style={line width=.2pt}}
\begin{document}
  \begin{tikzpicture}[scale=1]
    \tkzDefPoint(0,0){O}\tkzDefPoint(1,0){A}
    \tkzDefPoint(-1.5,-1.5){z1}
    \tkzDefPoint(1.5,-1.25){z2}
    \tkzDefCircle[orthogonal through=z1 and z2](O,A)
    \tkzGetPoint{c}
    \tkzDrawCircle[new](c,z1)
    \tkzDefPointBy[inversion =  center O through A](z1)
    \tkzGetPoint{Z1}
    \tkzInterCC(O,A)(c,z1) \tkzGetPoints{I}{J}
    \tkzDefPointBy[inversion =  center O through A](I)
    \tkzGetPoint{I'}
    \tkzDrawCircle(O,A)
    \tkzDrawPoints(O,A,z1,z2)
    \tkzDrawPoints[new](c,Z1,I,J)
    \tkzLabelPoints(O,A,z1,z2,c,Z1,I,J)
  \end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node{${\color{green}(\kappa_1^1\dots\kappa^1_5)}$}
child{node{${\color{blue}(\kappa^2_1\dots\kappa^2_7)}$}
child{node{${\color{gray}(\kappa^6_1\dots\kappa^2_{12})}$}}
child{node{$(\kappa^7_1)$}}
}
child{node[xshift= 1cm]{${\color{red}(\kappa^3_1\dots\kappa^3_8)}$}
child{node{${\color{yellow}(\kappa^8_1\dots\kappa^8_{10})}$}}
}
child{node[xshift= 2cm]{${\color{magenta}(\kappa^4_1\dots\kappa^4_6)}$}
child{node{$(\kappa^9_1)$}}
}
child{node[xshift= 3cm]{${\color{cyan}(\kappa^5_1\dots\kappa^5_{13})}$}
};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
legend entries={$x$,$x^2$},
]
\addplot {x};
\addplot {x^2};
\end{axis}
\end{tikzpicture}
\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)},
title={\texttt{patch type=cubic spline}},
]
\addplot [
mark=*,
patch,
patch type=cubic spline,
] coordinates {
(-1,-1)
(1,1)
(-1/3,{(-1/3)^3})
(1/3,{(1/3)^3})
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath, amsthm, amssymb, color}
\usepackage{tikz,tikz-cd,tikz-3dplot}
\usepackage{amssymb}
\usetikzlibrary{matrix}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[main/.style = {draw, circle}]
\node[main] (1) {$1$};
\node[main] (2) [ right of=1] {$2$};
\node[main] (3) [below of=2] {$3$};
\node[main] (4) [left of=3] {$4$};
\draw (1) -- (2);
\draw (1) -- (3);
\draw (1) -- (4);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tkz-euclide}
\providecolor{teal}{rgb}{0,0.5,0.5}
\tkzSetUpLine[line width=.2pt,color=black]
\tikzset{every picture/.style={line width=.2pt}}
\begin{document}
\begin{tikzpicture}[scale=.25]
\tkzDefPoints{0/0/A,12/0/B,6/12*sind(60)/C}
\foreach \density in {20,30,...,240}{
\tkzDrawPolygon[fill=teal!\density](A,B,C)
\pgfnodealias{X}{A}
\tkzDefPointWith[linear,K=.15](A,B)\tkzGetPoint{A}
\tkzDefPointWith[linear,K=.15](B,C)\tkzGetPoint{B}
\tkzDefPointWith[linear,K=.15](C,X)\tkzGetPoint{C}}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[table]{xcolor}
\usepackage{amsmath,amsthm,amssymb,tikz,tikz-cd}
\usetikzlibrary{decorations.markings,calc}
\begin{document}
\begin{tikzpicture}
\path foreach\a[count=\i]in{0,45,...,315}{(\a:1.5)coordinate(\i)};
\begin{scope}[very thick]
\draw[blue](3)--(2)(4)--(1)(8)--(5)(7)--(6);
\draw[red](3)--(4)(2)--(1)(6)--(5)(7)--(8);
\draw[green](3)--(1)(7)--(5)(2)--(4);
\draw[color={rgb:red,1;
blue,2;
white,2}](3)--(7)(5)--(1)(2)--(6)(8)--(4);
\draw[color={rgb:cyan,1;
white,2}](3)--(5)(8)--(2)(6)--(4)(7)--(1);
\draw[yellow](8)--(3)(2)--(5)(6)--(1)(4)--(7);
\draw[brown](2)--(7)(6)--(3)(4)--(5)(8)--(1);
\end{scope}\foreach\i in{1,...,8}\filldraw[white](\i)circle(2.8pt);
\foreach\i in{1,...,8}\filldraw[black](\i)circle(2pt);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{pgf, tikz}
\usetikzlibrary{calc,shapes.geometric,snakes,backgrounds,quotes,angles,automata,positioning,shapes,decorations,arrows,arrows.meta,fit}
\tikzset{-Latex,auto,node distance =1 cm and 1 cm,semithick,state/.style ={ellipse, draw, minimum width = 0.7 cm}
,point/.style = {circle, draw, inner sep=0.04cm,fill,node contents={}},bidirected/.style={Latex-Latex,dashed},el/.style = {inner sep=2pt, align=left, sloped}}\usepackage{amssymb}
\usepackage{tcolorbox}
\usepackage[cmex10]{amsmath}
\begin{document}
\begin{tikzpicture}[scale=0.4]
\draw[thick,->] (0,0)--(8,0) node[right] {$x$};
\draw[thick, ->] (0, 0)--(0, 4) node[above] {$y$};
\draw[thin, -] (0, 2)--(3, 2);
\draw[-latex] (3, 1)--(7, 1);
\node[below] at (3,0) {$\tau$};
\draw[thin, -] (3, -0.1)--(3, 0.1);
\node[left] at (0,2) {$\alpha_u$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\def\myconnect#1{\tikzset{graphs/new ->={root}
{#1}{}{}}}
\begin{tikzpicture}
\node(root)at(-1,-1){root};
\graph{x,{[operator=\tikzgraphforeachcolorednode{all}{\myconnect}]a,b,c}};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [smooth, mark=*, blue] coordinates {
(0,2)
(2,3)
(3,1)
};
\addlegendentry{Case 1}
\addplot [smooth, color=red, mark=x]
coordinates {
(0,0)
(1,1)
(2,1)
(3,2)
};
\addlegendentry{Case 2}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{arrows,calc,decorations.pathreplacing,fadings,intersections}
\begin{document}
\begin{tikzpicture}[scale=.5,rotate=-35]
\draw[white,name path=secondedge] (0,0) -- (10,0);
\draw[thick] (0,0) -- (10,0);
\draw[white, name path=firstedge] (0,0) -- ({10*cos(250)},{10*sin(250)});
\draw[thick] (0,0) -- ({10*cos(250)},{10*sin(250)});
\draw (1,0) arc[start angle=360, end angle=250, radius=1];
\draw (3,0) arc[start angle=360, end angle=250, radius=3];
\draw[black!50] ({0*cos(300)},{0*sin(300)}) -- ({1*cos(300)},{1*sin(300)});
\draw ({1*cos(300)},{1*sin(300)}) -- ({3*cos(300)},{3*sin(300)}) node[near end,xshift=5pt]{$r$};
\node at (0,0) [xshift=1pt,yshift=-9pt] {$\alpha_i$};
\begin{scope}
\clip (0,0)--({10*cos(250)},{10*sin(250)})--(10,0)--(0,0);
\draw[name path=someline] ({3*cos(315)+10*cos(225)},{3*sin(315)+10*sin(225)}) -- ({3*cos(315)-10*cos(225)},{3*sin(315)-10*sin(225)});
\fill [name intersections={of=someline and firstedge, by=t}] (t) circle (.001);
\fill [name intersections={of=someline and secondedge, by=s}] (s) circle (.001);
\end{scope}\draw[thick] ($(t)-({.2*cos(340)},{.2*sin(340)})$) --($(t)+({.2*cos(340)},{.2*sin(340)})$);
\draw[decorate,decoration={brace,amplitude=5pt,raise=2pt,mirror}] (0,0) -- ($(t)$) node [midway,xshift=-8pt,yshift=8pt]{$ry$};
\draw[decorate,decoration={brace,amplitude=5pt,raise=2pt}] (0,0) -- ($(s)$) node [midway,xshift=35pt,yshift=8pt]{$rh(y,\alpha_{i})$};
\draw[thick] ($(s)-({.2*cos(90)},{.2*sin(90)})$) --($(s)+({.2*cos(90)},{.2*sin(90)})$);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
symbolic x coords={a,b,c,d,e,f,g,h,i},
xmin={[normalized]-1.7},
minor tick num=1,
]
\addplot+ [smooth] coordinates {
(a,42)
(b,50)
(c,80)
(f,60)
(g,62)
(i,90)};
\fill (axis cs:{[normalized]1.5},60)
circle (2pt) coordinate [pin={$1.5$}];
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5mm]{standalone}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[>=stealth]
\def\a{3.5}\def\b{4}\def\h{1.2}
\path[every node/.style={draw}] (0,0) node(A){A} (\a,0) node(B){B} (0,-\b) node(C){C} (\a,-\b) node(D){D};
\path[every node/.style={draw,ellipse}] (A)+(-90:\h) node(At){Some text} (B)+(-90:\h) node(Bt){More text} (C)+(90:\h) node(Ct){Weird stuff} (D)+(90:\h) node(Dt){I'm giving up};
\foreach \p in {A,B,C,D} \draw[->] (\p t)--(\p);
\draw[cyan] (current bounding box.south west) rectangle (current bounding box.north east);
\draw[thin,magenta,shorten >=-1.2cm,shorten <=-1.2cm] (A.base)--(B.base) (C.base)--(D.base) (At.base)--(Bt.base) (Ct.base)--(Dt.base);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}
[scale=.8,auto=left,every node/.style={circle,fill=blue!20}]
\node (a) at (-1,-2) {a};
\node (b) at ( 1,-2) {b};
\node (c) at ( 2,-1) {c};
\node (d) at ( 2, 1) {d};
\node (e) at ( 1, 2) {e};
\node (f) at (-1, 2) {f};
\node (g) at (-2, 1) {g};
\node (h) at (-2,-1) {h};
\foreach \from/\to in {a/b,b/c,c/d,d/e,e/f,f/g,g/h,h/a}
\draw [->] (\from) -- (\to)
node[midway,fill=red!20] {\from--\to};
\end{tikzpicture}
\end{document}
\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=strong colors]
data group {sin functions};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[
scale=0.7,
-,
>=stealth',
shorten >=1pt,
auto,
node distance=3cm,
thick,
main node/.style={circle, draw, font=\sffamily\small\bfseries}
]
\node[main node] (1) at (0,2) {1};
\node[main node] (2) at (2,4) {2};
\node[main node] (3) at (2,2) {3};
\node[main node] (4) at (2,0) {4};
\node[main node] (5) at (4,4) {5};
\node[main node] (6) at (4,2) {6};
\node[main node] (7) at (4,0) {7};
\node[main node] (8) at (6,4) {8};
\node[main node] (9) at (6,2) {9};
\node[main node] (10) at (6,0) {10};
\node[main node] (11) at (8,2) {11};
\path[every node/.style={font=\sffamily\small}]
(1) edge node[above] {} (2)
(1) edge node [left] {} (3)
(1) edge node [left] {} (4)
(2) edge node [above] {$a_1$} (5)
(4) edge node [above] {$a_3$} (7)
(5) edge node [above] {$b_1$} (8)
(6) edge node [above] {$b_2$} (9)
(8) edge node [left] {} (11)
(9) edge node [left] {} (11)
(10) edge node [left] {} (11);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\foreach \p in {1,2,3} {
\addplot {x^\p};
\addlegendentryexpanded{$x^\p$}
}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\tikzstyle{every node}=[draw,circle,fill=black,inner sep=0pt,minimum size=3pt]
\draw(0,4)node(6){}--(2,3)node(5){}--(2,1)node(4){}--(0,0)node(3){}--(-2,1)node(2){}--(-2,3)node(1){}--cycle;
\draw[color=red](1)--(3);
\end{tikzpicture}
\begin{tikzpicture}
\tikzstyle{every node}=[draw,circle,fill=black,inner sep=0pt,minimum size=3pt]
\draw[color=green](2,0)node(4){H4}--(7,-5)--(7,-7)--(6,-8)--(4,-8)--(3,-7)--(3,-6)node(44){H4};
\draw[color=red](0,-5)node(3){H3}--(12,-5)node(33){H3};
\draw[color=yellow](5,-1)node(1){H1}--(5,-10)node(11){H1};
\draw[color=orange](10,0)node(2){H2}--(2,-9)node(22){H2};
\draw[color=pink](12,-3)node(5){H5}--(8,-7)node(5){H5};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage{tikz-cd}
\usetikzlibrary{arrows.meta}
\usepackage{amsfonts,amssymb,latexsym,amscd,amsmath,euscript,enumerate,verbatim,calc}
\begin{document}
\begin{tikzpicture}[scale=1,every node/.style={circle,fill=black},inner sep=2.5pt, minimum size=6pt]
\node[label=left:$1$] (1) at (-1,0) {};
\node[label=left:$2$] (2) at (-0.5,0.866) {};
\node[style={circle,fill=green},label=right:$3$] (3) at (0.5,0.866) {};
\node[label=below:$4$] (4) at (1,0) {};
\node[label=below:$5$] (5) at (0.5,-0.866) {};
\node[style={circle,fill=green},label=below:$6$] (6) at (-0.5,-0.866) {};
\draw[-{Stealth[slant=0]}] (1) to (2);
\draw[-{Stealth[slant=0]}] (2) to (3);
\draw[-{Stealth[slant=0]}] (4) to (5);
\draw[-{Stealth[slant=0]}] (5) to (6);
\draw[-{Stealth[slant=0]}] (3) to (4);
\draw[-{Stealth[slant=0]}] (6) to (1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz \graph [empty nodes, nodes={circle, draw}] { a -> {b, c} };
\end{document}
\documentclass[border=0.2in]{standalone}
\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=2]
\fill[LightGray,domain=-2:0,samples=200]plot(\x,{exp(-2*\x*\x)})--(0,0)--(-2,0)--cycle;
\draw[thick,domain=-2:2,samples=200]plot(\x,{exp(-2*\x*\x)});
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions,
plotmarks
}
\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={exp},
exp= {label in data={text=$5$, index=5},
label in data={text=$10$, index=10},
label in data={text=$20$, index=20},
style={mark=x}},
style sheet=vary hue]
data group {function classes};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
clip=false,
small,
title=\texttt{near ticklabel align},
min=0, max=1,
/tikz/node style/.style={
draw=yellow,
anchor=near yticklabel,
font=\tiny,
},
]
\node [node style,/pgfplots/near ticklabel align=center]
(C) at (yticklabel cs:0) {\texttt{center}.};
\node [node style,/pgfplots/near ticklabel align=inside]
(I) at (yticklabel cs:1) {\texttt{inside}.};
\node [node style,/pgfplots/near ticklabel align=outside]
(O) at (yticklabel cs:1) {\texttt{outside}.};
\fill (yticklabel cs:0) circle(2pt);
\fill (yticklabel cs:1) circle(2pt);
\fill [blue] (C.center) circle(1pt);
\fill [blue] (I.south west) circle(1pt);
\fill [blue] (O.north east) circle(1pt);
\draw [green,-stealth] (yticklabel* cs:0) -- (yticklabel cs:0);
\draw [blue] (yticklabel cs:0) -- (C.center);
\draw [red,-stealth] (C.north west) -- (yticklabel cs:0);
\draw [green,-stealth] (yticklabel* cs:1) -- (yticklabel cs:1);
\draw [blue] (yticklabel cs:1) -- (O.north east);
\draw [red,-stealth] (O.north west) -- (yticklabel cs:1);
\draw [red,-stealth] (I.north west) -- (yticklabel cs:1);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[rectangle, rounded corners =5pt, minimum width =50pt, minimum height =20pt, inner sep=5pt, draw=black] (1) at(0,0) {Lemma~\ref{lemma2}};
\node[rectangle, rounded corners =5pt, minimum width =50pt, minimum height =20pt, inner sep=5pt, draw=black] (2) at(0,1.6) { Lemma~\ref{lemma3}};
\node[rectangle, rounded corners =5pt, minimum width =50pt, minimum height =20pt, inner sep=5pt, draw=black] (3) at(2.2,0) {Theorem~\ref{oneSetTheorem}};
\node[rectangle, rounded corners =5pt, minimum width =50pt, minimum height =20pt, inner sep=5pt, draw=black] (4) at(2.2,1.6) {Theorem~\ref{twoSetTheorem}};
\node[rectangle, rounded corners =5pt, minimum width =50pt, minimum height =20pt, inner sep=5pt, draw=black] (5) at(4.8,0.8) {Theorem~\ref{oneOddTheorem}};
\draw[->] (1) --(3);
\draw[->] (2) --(4);
\draw[->] (3) --(5);
\draw[->] (4) --(5);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{smithchart}
\begin{document}
\begin{tikzpicture}
\begin{smithchart}[
xtick={0.2,0.5,1,2,5},
ytick={
0,
0.2, 0.5, 1, 2, 5,
-0.2,-0.5,-1,-2,-5
},
ygrid each nth passes x={0.2,1:2},
]
\end{smithchart}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}
\begin{document}
\begin{tikzpicture}
\foreach \a in {3,...,7}{
\draw[red, dashed] (\a*2,0) circle(0.5cm);
\node[regular polygon, regular polygon sides=\a, draw,
inner sep=0.3535cm] at (\a*2,0) {};
}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
clip=false,
small,
title=\texttt{near ticklabel} (\texttt{opposite}),
min=0, max=1,
]
\node [draw=yellow,anchor=near xticklabel,font=\small]
(namex) at (xticklabel cs:0.2) {\texttt{near xticklabel}.};
\fill (xticklabel cs:0.2) circle(2pt);
\draw [green,-stealth] (xticklabel* cs:0.2) -- (xticklabel cs:0.2);
\draw [blue,-stealth] (xticklabel cs:0.2) -- (namex.center);
\draw [red,-stealth] (namex.north east) -- (xticklabel cs:0.2);
\node [draw=yellow,anchor=near xticklabel opposite,font=\small]
(namexx) at (xticklabel* cs:0.6) {\texttt{near xticklabel opposite}.};
\fill [red] (xticklabel* cs:0.6) circle(2pt);
\draw [blue,-stealth] (xticklabel* cs:0.6) -- (namexx.center);
\draw [red,thick,-stealth] (namexx.south west) -- (xticklabel* cs:0.6);
\node [draw=yellow,anchor=near yticklabel,font=\small]
(name) at (yticklabel cs:1) {\texttt{near yticklabel}.};
\fill (yticklabel cs:1) circle(2pt);
\draw [green,-stealth] (yticklabel* cs:1) -- (yticklabel cs:1);
\draw [blue,-stealth] (yticklabel cs:1) -- (name.center);
\draw [red,-stealth] (name.north west) -- (yticklabel cs:1);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\tikzstyle{every node}=[draw,shape=ellipse]
\node (node1) at (150:3) {x};
\node (node2) at ( 30:3) {y};
\node (node3) at ( 270:0) {z};
\path[->] (node1) edge [out=-20, in=100,draw=green,line width=2pt] (node3.north);
\path[->] (node2) edge [out=200, in=80] (node3.north);
\end{tikzpicture}
\end{document}