AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{color,soul}
\usepackage{amsmath}
\usepackage{tikz,pgfplots,adjustbox}
\tikzset{>=latex}
\pgfplotsset{compat=1.3}
\usetikzlibrary{patterns}
\usetikzlibrary{pgfplots.groupplots}
\usepgfplotslibrary{fillbetween}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\begin{document}
\begin{tikzpicture}
\begin{axis}[width=\linewidth,font=\footnotesize,ybar,bar shift=0,ymin=0,ymax=100,ytick={0,20,40,60,80,100},bar width=8pt,ylabel={Percentage (\%)},symbolic x coords={Geometric-AP,AP,kmedoids,zero1,kmeans,Spectral-g,HAC,GMM,DPGMM},x tick label style={font=\scriptsize},x tick label style={rotate=90,anchor=east,nodes near coords align={horizontal}},xtick={Geometric-AP,AP,kmedoids,kmeans,Spectral-g,HAC,GMM,DPGMM},after end axis/.code={\node(L1) at (axis cs:AP,1) {};
\node(L2) at (axis cs:HAC,1) {};
\node(XTL) at (xticklabel cs:0) {};
\node[anchor=east](A1) at (axis cs:Geometric-AP,-14) {};
\node[anchor=west](B1) at (axis cs:kmedoids,-14) {};
\draw (A1|- XTL) -- (B1|- XTL);
\node[anchor=center,below] at (L1 |- XTL) {\scriptsize{Exemplar-Based}};
\node[anchor=east](A2) at (axis cs:kmeans,-14) {};
\node[anchor=west](B2) at (axis cs:DPGMM,-14) {};
\draw (A2|- XTL) -- (B2|- XTL);
\node[anchor=center,below] at (L2 |- XTL) {\scriptsize{Non Exemplar-Based}};
}]\addplot[red!80!black,fill=red!30!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(Geometric-AP,71.82)+-(0,8.89)};
\addplot[blue!80!black,fill=blue!30!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(AP,28.85)+-(0,10.34)};
\addplot[green!60!black,fill=green!30!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(kmedoids,54.89)+-(0,7.14)};
\addplot[xtick=\empty, draw=none] coordinates {(zero1,0)};
\addplot[orange!80!black,fill=orange!30!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(kmeans,55.67)+-(0,6.89)};
\addplot[cyan!80!black,fill=cyan!30!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(Spectral-g,88.24)+-(0,0)};
\addplot[violet!80!black,fill=violet!30!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(HAC,55.95)+-(0,7.47)};
\addplot[yellow!80!black,fill=yellow!50!white,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(GMM,54.4)+-(0,6.87)};
\addplot[black,fill=lightgray,mark=none,error bars/.cd, y dir=both, y explicit] coordinates {(DPGMM,35.3)+-(0,0)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
statistics,
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
boxplot/draw direction=y,
x axis line style={opacity=0},
axis x line*=bottom,
axis y line=left,
enlarge y limits,
ymajorgrids,
xtick={1,2,3},
xticklabels={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[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 {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 dashing]
data group {sin functions};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath, amssymb, amsthm, mathtools} \usepackage{tabularx, array}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{graphs,trees,arrows,positioning,shapes.geometric}
\usepackage{tikzscale}
\begin{document}
\begin{tikzpicture}
\begin{scope}
\footnotesize
\draw (0.2,0) node[draw,circle,inner sep=2pt,fill=blue, label={[xshift=-0.3cm,yshift=-0.5cm]5}](5){};
\draw (0,0.7) node[draw,circle,inner sep=2pt,fill=blue, label={[xshift=-0.3cm,yshift=-0.2cm]1}](1){};
\draw (1,0) node[draw,circle,inner sep=2pt,fill=blue, label ={[xshift=0.3cm, yshift=-0.5cm]4}](4){};
\draw (1.2,0.7) node[draw,circle,inner sep=2pt,fill=blue, label ={[xshift=0.3cm,yshift=-0.2cm]3}](3){};
\draw (0.6,1.2) node[draw,circle,inner sep=2pt,fill=blue,label={2}](2){};
\draw[-] (1) edge[red,thick] (2);
\draw[-] (2) edge[red,thick] (3);
\draw[-] (3) edge[red,thick] (4);
\draw[-] (4) edge[red,thick] (5);
\draw[-] (5) edge[red,thick] (1);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{trees}
\tikzset{
level distance=1cm,
sibling distance=1cm,
}
\begin{document}
\begin{tikzpicture}
\node {root}
[edge from parent fork down]
child {node {left}}
child {node {right}
child[child anchor=north east] {node {child}}
child {node {child}}
};
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=7cm,compat=1.8}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
view={20}{40},
hide axis,
domain=0:1,
y domain=-1:1,
xmin=-1.5, xmax=1.5,
ymin=-1.5, ymax=1.5,
zmin=0.0
]
\addplot3[
surf,
domain=0:0.85,
domain y=-1:1,
mesh/interior colormap={blueblack}{color=(black) color=(blue)},
colormap/blackwhite,
samples=20,
samples y=40,
z buffer=sort,
]
({x*cos(deg((y+1)*pi))},{x*sin(deg((y+1)*pi))},{x});
\addplot3[
surf,
domain=-.5:1.2,
domain y=-1.5:1,
samples=2,
samples y=2,
opacity=0.5
] ({x},{y},{.85});
\addplot3[
surf,
domain=0.85:1,
domain y=-1:1,
mesh/interior colormap={blueblack}{color=(black) color=(blue)},
colormap/blackwhite,
samples=20,
samples y=40,
z buffer=sort,
]
({x*cos(deg((y+1)*pi))},{x*sin(deg((y+1)*pi))},{x});
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[circle,minimum size=0.2cm,draw=black,label={[blue]right:{$a$}}](a)at(0,0){};
\node[circle,minimum size=0.2cm,draw=black](b)at(1,1){};
\node[circle,minimum size=0.2cm,draw=black](c)at(-1,1){};
\node[circle,minimum size=0.2cm,draw=black,label={[blue]right:{$b$}}](d)at(0,2){};
\path(a)edge(b);
\path(c)edge(d);
\path(b)edge(d);
\path(a)edge(c);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[thick, scale=0.8, every node/.style={transform shape}]
\node[draw, circle, inner sep=2pt, minimum size=3mm] (1) at (-1.56,-1.25) {6};
\node[draw, circle, inner sep=2pt, minimum size=3mm] (2) at (0,-2) {5};
\node[draw, circle, inner sep=2pt, minimum size=3mm] (3) at (1.56,-1.25) {4};
\node[draw, circle, inner sep=2pt, minimum size=3mm] (4) at (1.95,0.45) {3};
\node[draw, circle, inner sep=2pt, minimum size=3mm] (5) at (0.87,1.80) {2};
\node[draw, circle, inner sep=2pt, minimum size=3mm] (6) at (-0.87,1.80) {1};
\node[draw, circle, inner sep=2pt, minimum size=3mm] (7) at (-1.95,0.45) {7};
\node at (-0.87,-1.80) {$4$};
\node at (0.87,-1.80) {$4$};
\node at (1.95,-0.45) {$6$};
\node at (1.56,1.25) {$4$};
\node at (0,2) {$\infty$};
\node at (-1.56,1.25) {$4$};
\node at (-1.95,-0.45) {$6$};
\draw (1) -- (2);
\draw (2) -- (3);
\draw (3) -- (4);
\draw (4) -- (5);
\draw (5) -- (6);
\draw (6) -- (7);
\draw (7) -- (1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5mm]{standalone}
\begin{document}
\begin{tikzpicture}
\def\R{2}
\pgfmathsetmacro{\r}{\R/2}
\path
(90:\R) coordinate (A) node[above]{$A$}
(210:\R) coordinate (B) node[below left]{$B$}
(-30:\R) coordinate (C) node[below right]{$C$};
\fill[red] (0,0) circle(1.5pt);
\draw[red] (0,0) circle(\r);
\draw (A)--(B)--(C)--cycle;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{patchplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
enlargelimits,
nodes near coords={(\coordindex)},
title=Single Triangle patch,
]
\addplot3 [
patch,
shader=interp,
] coordinates {
(0,0,1)
(1,0,0)
(1,1,0)
};
\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}[y=1cm]
\addplot+ [
boxplot prepared={
lower whisker=42,
lower quartile=45,
median=47,
upper quartile=47.5,
upper whisker=48,
draw relative anchor=0,
},
]
table [row sep=\\,y index=0] { 40\\ 34\\ 56\\ };
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{
statistics,
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[y=1cm]
\addplot+ [
boxplot prepared={
lower whisker=42, lower quartile=45,
median=47,
upper quartile=47.5, upper whisker=48,
draw relative anchor=0.5, }, ]
table [row sep=\\,y index=0] { 40\\ 34\\ 56\\ };
\end{axis}
\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=exp,
exp= {label in data={text=$.2$, pos=0.2},
label in data={text=$.5$, pos=0.5},
label in data={text=$.95$, pos=0.95},
style={mark=x}},
style sheet=vary hue]
data group {function classes};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath,amssymb}
\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,
style sheet=vary dashing]
data group {sin functions};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
area legend,
axis x line=bottom,
axis y line=left,
domain=0:1,
legend pos=north west,
axis on top,
xmin=0,
]
\addplot [
pattern=crosshatch dots,
pattern color=blue,
draw=blue,
samples=500
] {sqrt(x)} \closedcycle;
\addplot [
pattern=crosshatch,
pattern color=blue!30!white,
draw=blue!30!white
] {x^2} \closedcycle;
\addplot [red, line legend]
coordinates {(0,0) (1,1)};
\legend{$\sqrt x$,$x^2$,$x$}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz,pgfplots}
\usetikzlibrary{automata,positioning,shapes,fit,calc}
\usetikzlibrary{backgrounds}
\tikzset{tstate/.style={circle, draw=black, fill=white, inner sep=2pt}}
\tikzset{sstate/.style={circle, draw=black, fill=white, inner sep=1pt,font=\scriptsize}}
\tikzset{mstate/.style={rectangle, draw=black, fill=green!30, inner sep=1pt,font=\scriptsize, minimum height=4mm}}
\tikzset{tact/.style={rectangle, draw=black, fill=black, inner sep=1pt}}
\pgfplotsset{compat=1.15,
every axis/.append style={
font=\large,
line width=1pt,
tick style={line width=0.8pt}}}
\begin{document}
\begin{tikzpicture}[every node/.style={font=\scriptsize}]
\node[mstate,initial,initial text=,initial where=above] (start) {$M_0$};
\node[mstate,right=5mm of start] (deg1) {$1$};
\node[mstate,below=5mm of deg1] (deg2) {$2$};
\draw[->] (start) -- node[auto,sloped] {$0.5$} (deg1);
\draw[->] (start) -- node[auto,sloped] {$0.5$} (deg2);
\node[inner sep=1pt, fill, right=6mm of deg1] (a1) {};
\node[inner sep=1pt, fill,below=6mm of a1] (a2) {};
\node[inner sep=1pt, fill, below=6mm of a2] (a3) {};
\node[inner sep=1pt, fill,below=6mm of a3] (a4) {};
\node[mstate,right=6mm of a1] (m3) {$3$};
\node[mstate,right=6mm of m3] (m4) {$4$}; \node[mstate,right=5mm of a3] (m5) {$5$}; \node[mstate,right=5mm of m5] (m6) {$6$};
\draw[->] (deg1) -- node[auto,sloped] {$\alpha$/$0$} (a1);
\draw[->] (deg1) -- node[below,sloped] {$\alpha$/$10$} (a2);
\draw[->] (deg2) -- node[auto,sloped] {$\alpha$/$0$} (a3);
\draw[->] (deg2) -- node[below,sloped] {$\alpha$/$10$} (a4);
\draw[->] (a1) -- node[auto] {$1$} (m3);
\draw[->] (a2) -- node[auto] {$0.1$}(m3);
\draw[->] (a2) -- node[auto] {$0.9$}(m4);
\draw[->] (a3) -- node[auto] {$1$}(m5);
\draw[->] (a4) -- node[auto] {$0.1$} (m5);
\draw[->] (a4) -- node[auto] {$0.9$} (m6);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{amsmath}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\tikzstyle{place}=[circle,draw=black,minimum size=0.5cm,inner sep=0pt]
\node [place] (x1) at (0, 0) {$4$};
\node [place] (x2) at (1, 0) {$3$} edge (x1);
\node [place] (x3) at (1, 1) {$2$} edge (x2);
\node [place] (x4) at (0, 1) {$1$} edge (x3) edge (x1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{polar}
\begin{document}
\begin{tikzpicture}
\begin{polaraxis}
\addplot+ [
mark=none,
domain=0:720,
samples=600,
]
{sin(2*x)*cos(2*x)};
\end{polaraxis}
\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=Bilinear from $2\times 2$ matrix input,
]
\addplot3 [
surf,
shader=interp,
samples=2,
patch type=bilinear,
] {x*y};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[every node/.style={circle,fill=black,inner sep=1.5pt}]
\node[label=below:{\small0}](0)at(0,0){};
\node[label=below:{\small1}](1)at(.7,0){};
\node[label=below:{\small2}](2)at(1.4,0){};
\node[label=below:{\small3}](3)at(2.1,0){};
\draw[->](0)to[bend left=40](2);
\draw[->](2)to(3);
\draw[->](3)to[bend right=40](1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[baseline={([yshift=-2ex]current bounding box.center)}]
\draw[thick,->] (0,0) -- (0,3) node[left,Blue]{$\min(2\bar{s}_1,2s_2)$} -- (0,4) node[above]{$\bar{v}_0$};
\draw[thick,->] (0,0) -- (3,0) node[above right,Blue]{$\min(2s_1,2\bar{s}_2)$} -- (5.5,0) node[right]{$v_0$};
\draw[ultra thick,Blue] (3,0) -- (3,3) -- (0,3);
\draw[ultra thick,dashed,Maroon] (-1.5,0.5) -- (0,2) (1,3) -- (2,4);
\draw[ultra thick,dashed,Maroon] (0,-1) -- (1,0) (3,2) -- (4,3);
\draw[line width=0,white,fill=gray!20] (1,3) -- (3,3) -- (3,2) -- (1,0) -- (0,0) -- (0,2) -- cycle;
\draw[ultra thick,violet] (1,3) -- (3,3) -- (3,2) (0,2) -- (0,0) -- (1,0);
\draw[ultra thick,violet,dashed] (1,3) -- (0,2) (3,2) -- (1,0);
\foreach \x in {0,0.5,1,1.5,2,2.5,3}
{
\foreach \y in {0,0.5,1,1.5,2,2.5,3}
\draw[ultra thick, fill=black!60] (\x,\y) circle (.8pt);
};
\draw[ultra thick,fill=Maroon,Maroon] (0,2) node[left]{$S_3-s_1+\bar{s}_1+s_2-\bar{s}_2 \ $} circle (1.5pt);
\draw[ultra thick,fill=Maroon,Maroon] (1,0) node[below right=1pt]{$S_3+s_1-\bar{s}_1-s_2+\bar{s}_2$} circle (1.5pt);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb,amsmath,amsthm,amsfonts}
\usepackage{graphicx,color}
\usepackage{tikz}
\usetikzlibrary{plotmarks}
\usepackage[latin2]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[shorten >=1pt, auto, node distance=3cm, ultra thick]
\tikzstyle{node_style} = [circle,draw=black,fill=black!20!,font=\sffamily\Large\bfseries,minimum size=1cm]\tikzstyle{edge_style} = [draw=black, line width=2, ultra thick]\node[node_style, label=below:{$1$}] (v1) at (-2,0) {1};
\node[node_style, label=below:{$2$}] (v2) at (2,0) {.5};
\draw[->] (-1.4,0.1) -- (1.4,0.1);
\draw[->] (1.4,-0.1) -- (-1.4,-0.1);
\node[label=below:{$0.5$}] (v3) at (0,0.8) {};
\node[label=above:{$-2$}] (v4) at (0,-0.8) {};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=0,xmax=.1,ymin=0,ymax=2]\addplot expression[domain=0:1]{1};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs,graphs.standard}
\begin{document}
\tikz\graph[clockwise]{subgraph K_n[n=7]};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{xcolor}
\begin{document}
\begin{tikzpicture}[scale=2]
\draw[->] (-1.2,0) -- (1.2,0);
\draw[->] (0,-0.8) -- (0,1.2);
\fill (0:0) circle(0.5pt);
\node (P) at (0:1.3) {$x$};
\node (P) at (90: 1.3) {$y$};
\fill[color=red] (0,1) circle(0.8pt);
\fill[color=red] (1.7321/2,-0.5) circle(0.8pt);
\fill[color=red] (-1.7321/2,-0.5) circle(0.8pt);
\draw[color=black,thick] (0,1) -- (1.7321/2,-0.5);
\draw[color=black,thick] (0,1) -- (-1.7321/2,-0.5);
\draw[color=black,thick] (1.7321/2,-0.5) -- (-1.7321/2,-0.5);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,dsfont,bbm,epstopdf,pgfplots,mathtools,enumitem,mathrsfs, algpseudocode, graphicx, color, tikz}
\usetikzlibrary{shapes, arrows, decorations.markings, arrows.meta, patterns}
\begin{document}
\begin{tikzpicture}[scale=0.9]
\begin{axis}[
xlabel={\small {$n_1$ }},
ylabel={\small {$\epsilon_2, \epsilon_1$ }},
xlabel style={yshift=.5em},
ylabel style={yshift=0em},
xmin=4, xmax=20,
ymin=0, ymax=0.25,
xtick={4,8,12,16,20},
ytick={0,1e-9,1e-8,1e-7,1e-6,1e-5,1e-4,1e-3,1e-2,1e-1,1},
yticklabel style = {font=\small,xshift=0.25ex},
xticklabel style = {font=\small,yshift=0.25ex},
legend pos=south west,
ymode=log,
]
\addplot[ color=red, line width = 0.5mm] coordinates { (4,0.13060527692151)(8,0.051508342663946)(12,0.014328665066819)(16,0.002149441086310)(20,0.00045)};
\addplot[ color=black, line width = 0.5mm] coordinates { (4,0.031797749837211)(8,0.010954079530531)(12,0.003496016228159)(16,0.001045204309634)(20,0.00045)};
\addplot[ color=red, mark=diamond, line width = 0.5mm] coordinates { (4,0.00120983577087)(8,0.000040421691731)(12,0.000007196125933e-1)(16,0.00000021315578850624e-1)(20,0.922e-9)};
\addplot[ color=black, mark=diamond, line width = 0.5mm] coordinates { (4,0.0000556552184607e-1)(8,0.000015191722545e-1)(12,0.0000012297995561e-1)(16,0.00000006586198814945e-1)(20,0.922e-9)};
\addplot[ color=blue, dashed , line width = 0.5mm] coordinates { (4,0.500898338783796e-1)(8,0.206920410722971e-1)(12,0.0502842595317840e-1)(16,0.001149441086310)(20,0.00045)};
\addplot[ color=blue, dashed , line width = 0.5mm] coordinates { (4,0.0158516728095829e-2)(8,0.21372279230886e-4)(12,0.0141893571374336e-4)(16,0.00000005739265)(20,0.922e-9)};
\legend{ {\footnotesize $\epsilon_2, P_1= 1$}, {\footnotesize $\epsilon_1, P_1 = 1$}, {\footnotesize$\epsilon_2, P_1= 5$}, {\footnotesize$\epsilon_1, P_1 = 5$}, {\footnotesize Time-Sharing}}
\end{axis}
\vspace{-0.8cm}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[baseline=0mm]
\node at (50mm,30mm) {$X_{0}\prod\limits_{Y}X_{1}$};
\node at (35mm,15mm) {$X_{0}$};
\node at (65mm,15mm) {$X_{1}$};
\node at (50mm,0mm) {$Y$};
\draw[->] (54mm,28mm)--(64mm,18mm);
\draw[->] (46mm,28mm)--(36mm,18mm);
\draw[-] (43mm,23mm)--(50mm,18mm)--(57mm,23mm);
\draw[->] (36mm,13mm)--(47mm,2.5mm);
\draw[->] (63mm,13mm)--(52mm,2.5mm);
\node at (38mm,8mm) {$f_{0}$};
\node at (61mm,8mm) {$f_{1}$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tkz-euclide}

\begin{document}
\begin{tikzpicture}
    % 1. 定义点 (O为顶点)
    \tkzDefPoints{0/0/O, 5/0/A, 3/4/B}

    % 2. 填充角度颜色 (径向渐变效果)
    % inner color 是顶点处的颜色，outer color 是圆弧边缘处的颜色
    % size 控制扇形的大小，这里设为 4 以匹配您的线条长度
    \begin{scope}
        \tkzFillAngle[size=4, inner color=white, outer color=red!50](A,O,B)
    \end{scope}

    % 3. 绘制两条边 (黑色线段)
    \tkzDrawSegments[color=black, line width=0.4pt](O,A O,B)

    % 4. 仅在顶点和端点绘制极小的点 (参考图中似乎有微小的黑点)
    \tkzDrawPoints[size=1, color=black](O,A,B)

    % 注意：这里没有使用 \tkzLabelPoints，所以不会显示 O, A, B 字母
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsfonts,amsthm,amsmath}
\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows, intersections, calc, matrix}
\begin{document}
\begin{tikzpicture}[scale=.6]
\node (v1) at (-0.5,0) {\small $\frac{19}{8}$};
\node (v2) at (1,0) {\small $\frac{19}{4}$};
\node (v3) at (1,-1.5) {\small $\frac{19}{8}$};
\node (v4) at (2.5,0) {\small $\frac{19}{4}$};
\node (v6) at (2.5,-1.5) {\small $\frac{19}{8}$};
\node (v45) at (4,0) {\small $\frac{19}{8}$};
\node (v7) at (5.5,0) {\small $\frac{11}{4}$};
\node (v8) at (5.5,-1.5) {\small $\frac{11}{8}$};
\node (v9) at (7,-1.5) {\small $\frac{11}{8}$};
\node (v5) at (7,0) {\small $\frac{17}{8}$};
\node (v11) at (8.5,-0.5) {\small $\frac{17}{16}$};
\node (v10) at (8.5,0.5) {\small $\frac{25}{16}$};
\node (v12) at (10,1) {\small $\frac{25}{32}$};
\node (v13) at (10,0) {\small $\frac{25}{32}$};
\draw (v1) edge (v2);
\draw (v2) edge (v3);
\draw (v2) edge (v4);
\draw (v4) edge (v45);
\draw (v45) edge (v7);
\draw (v5) edge (v7);
\draw (v4) edge (v6);
\draw (v7) edge (v8);
\draw (v7) edge (v9);
\draw (v5) edge (v10);
\draw (v5) edge (v11);
\draw (v10) edge (v12);
\draw (v10) edge (v13);
\node at (4,1) {\small $Z_K$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[voltage dir=EF]
\draw (0,0) to[V=10V, i_=$i_1$] (2,0);
\end{circuitikz}
\end{document}