AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows,shapes,chains,matrix,positioning,scopes,patterns,calc,decorations.markings,decorations.pathmorphing}
\usepackage{pgfplots}
\pgfplotsset{compat=1.3}
\newcommand{\wv}{\ensuremath{\mathbf{w}
}}\newcommand{\Am}{\ensuremath{\mathbf{A}
}}\newcommand{\vv}{\ensuremath{\mathbf{v}
}}\newcommand{\sv}{\ensuremath{\mathbf{s}
}}\newcommand{\xv}{\ensuremath{\mathbf{x}
}}\newcommand{\ev}{\ensuremath{\mathbf{e}
}}
\begin{document}
\begin{tikzpicture}[font=\footnotesize, >=stealth', line width=1pt, check/.style={rectangle, minimum height=2.5mm, minimum width=2.5mm, draw=black}, varnode/.style={circle, minimum size=2mm, draw=black}, mmse/.style={rectangle, minimum height=7.5mm, minimum width=25mm, rounded corners, draw=black}, quantity/.style={rectangle, minimum height=8mm, minimum width=8mm, rounded corners, draw=black}, multiply/.style={trapezium, trapezium angle=75, draw=black, minimum width=10mm, minimum height=8mm, rounded corners}]
\node[rotate=90,anchor=west] (message) at (-0.25,0.25) {Message};
\node (bits) at (-0.25,0) {$\wv$};
\node[rotate=90,anchor=west] (ldpc) at (0.5,0.25) {LDPC};
\draw[draw=black, rounded corners] (0.75, -0.45) rectangle (2.25,1.65);
\foreach \s in {1,2,3,4,5} {\node[varnode] (var-\s) at (1,0.4*\s-0.6) {};
}\foreach \c in {1,2,3} {\node[check] (check-\c) at (2,0.65*\c-0.7) {};
}\draw (var-5) -- (check-3.west);
\draw (var-4) -- (check-3.west);
\draw (var-3) -- (check-3.west);
\draw (var-2) -- (check-2.west);
\draw (var-5) -- (check-2.west);
\draw (var-4) -- (check-1.west);
\draw (var-2) -- (check-1.west);
\draw (var-1) -- (check-1.west);
\foreach \v in {5.75} {\draw[line width=1pt] (\v-0.325,1) -- (\v-0.4,1) -- (\v-0.4,0.6) -- (\v-0.325,0.6);
\draw[line width=1pt] (\v+0.325,1) -- (\v+0.4,1) -- (\v+0.4,0.6) -- (\v+0.325,0.6);
\draw[line width=1pt] (\v+0.5,1) -- (\v+0.5,0.2) -- (\v+0.6,0.2) -- (\v+0.6,1) -- (\v+0.5,1);
\node at (\v,0.8) {$\Am$};
}\node[rotate=90,anchor=west] (codeword) at (3,0.25) {Codeword};
\node (symbols) at (3,0) {$\vv$};
\node (indexing) at (3.75,-0.25) {Index};
\node[rotate=90,anchor=west] (state) at (4.5,0.25) {State};
\node (index) at (4.5,0) {$\sv$};
\node (compression) at (5.75,-0.25) {Compress};
\node[rotate=90,anchor=west] (signal) at (7.25,0.25) {Signal};
\node (x) at (7.25,0) {$\xv$};
\draw[->] (bits) to (0.75,0);
\draw[->] (2.25,0) to (symbols);
\draw[->] (symbols) to node[above]{$\ev_{\phi(\cdot)}$} (index);
\draw[->] (index) to (x);
\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,1) to[D, l=$D$] ++(2,0)
node[npn, anchor=B]{};
\ctikzset{diodes/scale=0.6}
\draw (0,-1) to[D, l=$D$] ++(2,0)
node[npn, anchor=B]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb,mathtools,amsthm, amsmath, mathabx}
\usepackage{tikz-cd}
\newcommand{\Int}{{\mathsf{Int}
}\,}
\begin{document}
\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]
\draw (223,96) -- (267,133) ;
\draw (160,148) -- (204,185) ;
\draw (268,148) -- (225,186) ;
\draw (205,96) -- (163,133) ;
\draw (426,80) -- (394,103) ;
\draw (392,125) -- (358,149) ;
\draw (427,176) -- (395,198) ;
\draw (465,127) -- (426,151) ;
\draw (496,176) -- (465,198) ;
\draw (463,223) -- (432,245) ;
\draw (459,104) -- (426,80) ;
\draw (426,151) -- (392,125) ;
\draw (498,152) -- (465,127) ;
\draw (395,198) -- (360,176) ;
\draw (465,198) -- (427,176) ;
\draw (432,245) -- (399,221) ;
\draw (401,17.4) node [anchor=north west][inner sep=0.75pt] [font=\Large] {$\Int P$};
\draw (410,247.4) node [anchor=north west][inner sep=0.75pt] {$[ a,\ a]$};
\draw (374,200.4) node [anchor=north west][inner sep=0.75pt] {$[ a,\ b]$};
\draw (444,199.4) node [anchor=north west][inner sep=0.75pt] {$[ a,\ c]$};
\draw (407,155.4) node [anchor=north west][inner sep=0.75pt] {$[ a,\ d]$};
\draw (337,154.4) node [anchor=north west][inner sep=0.75pt] {$[ b,\ b]$};
\draw (477,155.4) node [anchor=north west][inner sep=0.75pt] {$[ c,\ c]$};
\draw (371,105.4) node [anchor=north west][inner sep=0.75pt] {$[ b,\ d]$};
\draw (443,105.4) node [anchor=north west][inner sep=0.75pt] {$[ c,\ d]$};
\draw (405,57.4) node [anchor=north west][inner sep=0.75pt] {$[ d,\ d]$};
\draw (210,188.4) node [anchor=north west][inner sep=0.75pt] {$a$};
\draw (147,130.4) node [anchor=north west][inner sep=0.75pt] {$b$};
\draw (268,135.4) node [anchor=north west][inner sep=0.75pt] {$c$};
\draw (209,78.4) node [anchor=north west][inner sep=0.75pt] {$d$};
\draw (208,20.4) node [anchor=north west][inner sep=0.75pt] [font=\Large] {$P$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\tikzset{
help lines/.style={gray,very thin}
}
\begin{document}
\begin{tikzpicture}
\draw[help lines] (0,0) grid (3,2);
\draw (0,0) -- (1,1) -- (1,0);
\draw[cm={1,1,0,1,(0,0)},blue] (0,0) -- (1,1) -- (1,0);
\draw[cm={0,1,1,0,(1cm,1cm)},red] (0,0) -- (1,1) -- (1,0);
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=1.5] % 放大比例，让色块更显眼
    % 坐标轴（x向右，y向上，刻度清晰）
    \draw[->] (0, 0) -- (3, 0) node[right] {$x$};
    \draw[->] (0, 0) -- (0, 2) node[above] {$y$};
    
    % X轴刻度
    \foreach \x in {0, 0.5, 1, 1.5, 2, 2.5, 3} {
        \draw (\x, 0) -- (\x, -0.08) node[below, font=\small] {$\x$};
    }
    % Y轴刻度
    \foreach \y in {0, 0.5, 1, 1.5, 2} {
        \draw (0, \y) -- (-0.08, \y) node[left, font=\small] {$\y$};
    }

    % 色块（核心修正：扩大宽度+调整位置，确保肉眼清晰可见，且不贴坐标轴）
    % 上半绿色块（x=0.1~1.2，y=1~2）
    \fill[green!70] (0.1, 1) rectangle (1.2, 2);
    % 下半橙色块（x=0.1~1.2，y=0~1）
    \fill[orange!90] (0.1, 0) rectangle (1.2, 1);

    % 蓝色线段（加粗，端点圆点放大，确保视觉突出）
    \draw[blue, thick] (0, 0) node[circle, fill=blue, inner sep=2pt] {} -- 
                       (3, 2) node[circle, fill=blue, inner sep=2pt] {};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{circuitikz}
\tikzset{noratorW/.style={voosource,bipoles/oosource/width=0.6,bipoles/oosource/height=0.3}
,nullatorW/.style={esource,sources/scale=0.5}}
\begin{document}
\tikzset{noratorW/.style={voosource,bipoles/oosource/width=0.6,bipoles/oosource/height=0.3}
,nullatorW/.style={esource,sources/scale=0.5}}
\begin{tikzpicture}
\draw(0,0)to[nullatorW]++(2,0)to[noratorW]++(0,-2);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz \graph [put node text on incoming edges,
math nodes, nodes={circle,draw}]
{ a -> b -> {c, d} };
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{tikzpicture}[main/.style = {draw, circle,inner sep=0pt, text width=4.5mm, align=center, node distance=8mm, baseline=(3.base)}]
\node[main] (a0) {0};
\node[main] (a1) [right of=a0] {1};
\node[main] (a4) [right of=a1] {4};
\node[main] (a7) [right of=a4] {7};
\node[main] (a10) [right of=a7] {10};
\node[main] (a12) [right of=a10] {12};
\node[main] (a15) [right of=a12] {15};
\node[main] (a18) [right of=a15] {18};
\node[main] (a21) [right of=a18] {21};
\node[main] (a23) [right of=a21] {23};
\node[main] (a6) [above of=a7] {6};
\node[main] (a17) [above of=a18] {17};
\node[main] (a2) [below of=a1] {2};
\node[main] (a13) [below of=a12] {13};
\node[main] (a24) [below of=a23] {24};
\node[main] (a3) [below of=a2] {3};
\node[main] (a5) [right of=a3] {5};
\node[main] (a8) [right of=a5] {8};
\node[main] (a9) [below of=a8] {9};
\node[main] (a11) [right of=a8] {11};
\node[main] (a14) [right of=a11] {14};
\node[main] (a16) [right of=a14] {16};
\node[main] (a19) [right of=a16] {19};
\node[main] (a22) [right of=a19] {22};
\node[main] (a25) [right of=a22] {25};
\node[main] (a26) [right of=a25] {26};
\node[main] (a20) [below of=a19] {20};
\draw (a0) -- (a1);
\draw (a1) -- (a4);
\draw (a4) -- (a7);
\draw (a7) -- (a10);
\draw (a10) -- (a12);
\draw (a12) -- (a15);
\draw (a15) -- (a18);
\draw (a18) -- (a21);
\draw (a18) -- (a21);
\draw (a21) -- (a23);
\draw (a7) -- (a6);
\draw (a18) -- (a17);
\draw (a1) -- (a2);
\draw (a2) -- (a3);
\draw (a12) -- (a13);
\draw (a13) -- (a14);
\draw (a23) -- (a24);
\draw (a24) -- (a25);
\draw (a3) -- (a5);
\draw (a5) -- (a8);
\draw (a8) -- (a11);
\draw (a11) -- (a14);
\draw (a14) -- (a16);
\draw (a16) -- (a19);
\draw (a19) -- (a22);
\draw (a22) -- (a25);
\draw (a25) -- (a26);
\draw (a8) -- (a9);
\draw (a19) -- (a20);
\node (alable) [above of=a0] {\textbf{(a)}};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=8.5cm,
title={Prediction set 3, stddev=0.1},
xlabel={$\mu$},
ylabel={energy consumption},
ymin=0, ymax=3500000000,
xtick={0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
legend style={nodes={scale=0.5, transform shape}},
]
\addplot[
color=black,
mark=square,
]
coordinates {
(0.1, 11119169852.588633)(0.2, 3629321670.747347)(0.30000000000000004, 2261840172.913717)(0.4, 1854525358.878197)(0.5, 1729371524.119441)(0.6000000000000001, 1717177348.892627)(0.7000000000000001, 1751324635.929418)(0.8, 1842245801.109186)(0.9, 2050140413.864959)(1.0, 3101125184.987737)
};
\addlegendentry{SwP, $\lambda = 0$}
\addplot[
color=green,
mark=square,
]
coordinates {
(0.1, 1059337962.833822)(0.2, 976548487.583714)(0.30000000000000004, 1016676750.464443)(0.4, 1065393011.979906)(0.5, 1122478925.305598)(0.6000000000000001, 1194772783.318888)(0.7000000000000001, 1290947931.190356)(0.8, 1434170751.525954)(0.9, 1703677598.912743)(1.0, 3101136078.389686)
};
\addlegendentry{SwP, $\lambda = 0.1$}
\addplot[
color=orange,
mark=square,
]
coordinates {
(0.1, 958659612.241536)(0.2, 1027928593.055258)(0.30000000000000004, 1082410598.291959)(0.4, 1131365106.115680)(0.5, 1184008106.089633)(0.6000000000000001, 1251749102.497711)(0.7000000000000001, 1339260849.393518)(0.8, 1473558285.954850)(0.9, 1737944712.729144)(1.0, 3101125903.818738)
};
\addlegendentry{SwP, $\lambda = 0.2$}
\addplot[
color=yellow,
mark=square,
]
coordinates {
(0.1, 1273578479.620560)(0.2, 1322178707.810232)(0.30000000000000004, 1342100448.506997)(0.4, 1364924742.185967)(0.5, 1391524858.245256)(0.6000000000000001, 1432116551.018006)(0.7000000000000001, 1491966331.702830)(0.8, 1599678008.800989)(0.9, 1837872497.424757)(1.0, 3101137878.949682)
};
\addlegendentry{SwP, $\lambda = 0.3$}
\addplot[
color=red,
no marks,
ultra thick,
]
coordinates {
(0.1, 967518127.858653)(0.2, 967518127.858653)(0.3, 967518127.858653)(0.4, 967518127.858653)(0.5, 967518127.858653)(0.6, 967518127.858653)(0.7, 967518127.858653)(0.8, 967518127.858653)(0.9, 967518127.858653)(1.0, 967518127.858653)
};
\addlegendentry{qOA}
\addplot[
color=blue,
no marks,
ultra thick,
]
coordinates {
(0.1, 612314285.007689)(0.2, 612314285.007689)(0.3, 612314285.007689)(0.4, 612314285.007689)(0.5, 612314285.007689)(0.6, 612314285.007689)(0.7, 612314285.007689)(0.8, 612314285.007689)(0.9, 612314285.007689)(1.0, 612314285.007689)
};
\addlegendentry{YDS}
\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}\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{label style/.append style={below,color=teal,font=\scriptsize}
}\tikzset{line style/.style={line width=.2pt}
}
\begin{document}

  \begin{tikzpicture}
    \tkzDefPoint(0,0){A}\tkzDefPoint(3,0){B}\tkzDefPointBy[rotation= center A angle 60](B)\tkzGetPoint{C}
    \begin{scope}
      \tkzDefPointBy[symmetry= center C](A)\tkzGetPoint{D} \tkzDrawSegments(A,B A,D)\tkzDrawLine(B,D)\tkzSetUpCompass[color=orange]\tkzDrawArc[orange,delta=10](A,B)(C)\tkzDrawArc[orange,delta=10](B,C)(A)\tkzDrawArc[orange,delta=10](C,D)(D)
    \end{scope}\tkzDrawPoints(A,B,C,D)\tkzLabelPoints[below right](A,B,C,D)\tkzMarkRightAngle(D,B,A)
  \end{tikzpicture}
\end{document}
\documentclass[varwidth=true, border=2pt]{standalone}
\usepackage{tikz}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{110}{50}
\begin{tikzpicture}
[tdplot_main_coords,
grid/.style={very thin,gray},
axis/.style={->,blue,thick}]
\foreach \x in {-0.5,0,...,2.5}
\foreach \y in {-0.5,0,...,2.5}
{
\draw[grid] (\x,-0.5) -- (\x,2.5);
\draw[grid] (-0.5,\y) -- (2.5,\y);
}
\draw[axis] (-1,0,0) -- (3,0,0) node[anchor=west]{$y$};
\draw[axis] (0,-1,0) -- (0,3,0) node[anchor=west]{$x$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=\texttt{tick scale
binop=\textbackslash cdot},
]
\addplot [
mark=none,
blue,
samples=250,
domain=0:5,
] {exp(10*x)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{plotmarks}
\begin{document}
\tikz\draw plot[polar comb,mark=pentagon*,mark options={fill=white,draw=red},mark size=4pt]coordinates{(0:1cm)(30:1.5cm)(160:.5cm)(250:2cm)(-60:.8cm)};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\Vertex[color = blue]{A}\Vertex[x=1,color=red]{B}\Vertex[x=2,color=green!70!blue]{C}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{graphs}
\begin{document}
\tikz \graph [chain shift=(45:7mm), group shift=(-45:7mm)] {
a -> b -> c;
d -> e;
f -> g -> h;
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=center,
axis y line shift=2,
axis x line shift=100,
grid=major,
]
\addplot+ [samples=3] {30*x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{siunitx}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to[sV, bipole/is voltage=false, v=$V_s$] ++(2,0)
to[sV=$V_B$ , bipole/is voltage=false] ++(2,0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xmin=-3,xmax=1, ymin=0,ymax=20, xtick={-3,-2.5,...,1}, grid=major, ]
\addplot[-,blue,thick,domain=-3:1]{x^2} node[pos=0.9,anchor=south] {$y=x^2$ \eqref{eq:x2}};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usetikzlibrary{patterns}
\tikzset{bullet/.style={circle, fill,minimum size=4pt,inner sep=0pt, outer sep=0pt}
}
\begin{document}
\begin{tikzpicture}[scale=1, interface/.style={postaction={draw,decorate,decoration={border,angle=-45, amplitude=0.15cm,segment length=1mm}}}, ]
\draw[black,line width=.5pt,interface](1,0)--(-1,0);
\draw[dotted, thin] (0,0) -- (0,-2.5);
\coordinate (m) at (-65:2);
\draw[thin] (0,0) -- (m);
\begin{scope}
\clip(-1,0) rectangle (1,-2.5);
\draw[thin] (0,0) circle[radius=2];
\end{scope}\node[bullet, minimum size=4pt] at (m) {};
\draw[->, very thin] (m) -- ++(-155:{1*sin(65)});
\draw[->, very thin] (m) -- ++(-90:1);
\draw[->, very thin] (m) -- ++(-65:{1*cos(65)});
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,amsthm,amsfonts,mathtools,mathrsfs}
\usepackage{tikz, graphicx, subcaption, caption}
\usepackage{xcolor}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[fillednode/.style={circle, draw=black!100, fill=gray!75, thick, scale=0.75},unfillednode/.style={circle, draw=black!100, fill=black!0, thick, scale=0.75}, scale=2]
\node[unfillednode] (v0) at (0,0) {};
\node[unfillednode] (v1) at (0.5,0.87) {};
\node[unfillednode] (v2) at (1,0) {};
\node[unfillednode] (v3) at (0.5,-0.87) {};
\node[unfillednode] (v4) at (-0.5,-0.87) {};
\node[unfillednode] (v5) at (-1,0) {};
\node[unfillednode] (v6) at (-0.5,0.87) {};
\draw[thick] (v0) to (v1);
\draw[thick] (v0) to (v2);
\draw[thick] (v0) to (v3);
\draw[thick] (v0) to (v4);
\draw[thick] (v0) to (v5);
\draw[thick] (v0) to (v6);
\draw[thick] (v1) to (v2);
\draw[thick] (v3) to (v4);
\draw[thick] (v5) to (v6);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphs, quotes}
\tikzset{>=stealth}
\begin{document}
\tikz
\graph [edge quotes={fill=white,inner sep=1pt},
grow down, branch right] {
/ -> h [>"9"] -> {
c [>"4" text=red,] -> {
a [>"2", >thick],
e [>"0"]
},
j [>"7"]
}
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\Vertex[label=foo]{A} \Vertex[x=1,label=bar]{B} \Vertex[x=2,label=$u_1$]{C}
\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}
\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}[vect/.style={->,
shorten >=1pt,>=latex'}]
\tkzDefPoints{0/0/A,5/0/B,1/2/C}
\tkzDefPointWith[colinear=at C](A,B)
\tkzGetPoint{G}
\tkzDefPointWith[colinear=at C, K=0.5](A,B)
\tkzGetPoint{H}
\tkzLabelPoints(A,B,C,G,H)
\tkzDrawPoints(A,B,C,G,H)
\tkzDrawSegments[vect](A,B C,H)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
unbounded coords=jump,
x filter/.expression={
x<0 && y<0 ? nan : x
},
]
\addplot3 [surf] {exp(-sqrt(x^2 + y^2))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot [mesh] {x + sin(deg(x))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw (0,0) to[R, *-d] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis lines=left,
axis line style={|-stealth},
axis line shift=10pt,
grid=major,
]
\addplot+ [samples=3] {x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning, arrows}
\begin{document}
\begin{tikzpicture}[scale=1, every node/.style={transform shape}, node distance = 2cm, auto]
\footnotesize
\tikzstyle{block} = [rectangle, draw, thick, fill=gray!20, text width=7em, text centered, rounded corners=1mm, minimum height=3em]
\tikzstyle{block2} = [rectangle, draw, fill=olive!10, text width=6em, text centered, rounded corners, minimum height=2em]
\tikzstyle{line} = [draw, -latex']
\node [block] (init) {Elastoplasticity};
\node [block, below left = .5cm and .8cm of init] (elastic) {Elastic\\response};
\node [block2, node distance = 1.6cm, below left of=elastic] (DataEl) {Data-Driven};
\node [block2, node distance = 1.6cm, below right of=elastic] (ModelEl) {Phen. Model};
\node [block, below right = 0.5cm and .8cm of init] (plastic) {Plastic \\ contributions};
\node [block, node distance = 2.8cm, below of=plastic] (hardening) {Hardening\\ components};
\node [block2, node distance = 1.6cm, below left of=hardening] (Datahard) {Data-Driven};
\node [block2, node distance = 1.6cm, below right of=hardening] (Modelhard) {Phen. Model};
\node [block, node distance = 4.6cm, left of=hardening] (initYield) {Yield / Potential \\ function};
\node [block2, node distance = 1.6cm, below left of=initYield] (DataYield) {Data-Driven};
\node [block2, node distance = 1.6cm, below right of=initYield] (ModelYield) {Phen. Model};
\node [block, node distance = 4.6cm, right of=hardening] (initflow) {Flow\\ direction};
\node [block2, node distance = 1.6cm, below left of=initflow] (DataFlow2) {Data-Driven};
\node [block2, node distance = 1.6cm, below right of=initflow] (ModelFlow2) {Phen. Model};
\path [line] (init) -- (elastic);
\path [line] (init) -- (plastic);
\path [line] (elastic) -- (DataEl);
\path [line] (elastic) -- (ModelEl);
\path [line] (plastic) -- (initYield);
\path [line] (initYield) -- (ModelYield);
\path [line] (initYield) -- (DataYield);
\path [line] (plastic) -- (hardening);
\path [line] (hardening) -- (Datahard);
\path [line] (hardening) -- (Modelhard);
\path [line] (plastic) -- (initflow);
\path [line] (initflow) -- (DataFlow2);
\path [line] (initflow) -- (ModelFlow2);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[american]
\draw (0,0) to[I=1A, v_=$u_1$] (2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[transpose legend,legend columns=2,legend style={at={(0.5,-0.1)},anchor=north},cycle multi list={color list\nextlist [2 of]mark list},]\addplot {-x};
\addlegendentry{A1}\addplot {-x+1};
\addlegendentry{A2}\addplot {-1.2*x + 4};
\addlegendentry{B1}\addplot {-1.2*x + 5};
\addlegendentry{B2}\addplot {-1.3*x + 9};
\addlegendentry{C1}\addplot {-1.4*x + 10};
\addlegendentry{C2}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{animations}
\begin{document}
\tikz[very thick]{
\node at(1,1.2)[fill=blue!20,draw=blue,circle]{1};
\node(X)at(1,0.4)[fill=orange!20,draw=orange,circle]{2};
\node:rotate={0s="0",2s="90",begin on={click,of=X}}[fill=red!20,draw=red]{Anim};
\node at(1,-0.4)[fill=blue!20,draw=blue,circle]{3};
\node at(1,-1.2)[fill=blue!20,draw=blue,circle]{4};
}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\begin{document}
\begin{tikzpicture}
\datavisualization [
school book axes,
visualize as smooth line,
x axis={grid, ticks and grid={major={also at={0.5}}}}
]
data [format=function] {
var x : interval [-1.25:2];
func y = \value x * \value x / 2;
};
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{mindmap}
\begin{document}
\begin{tikzpicture}[concept color=blue!50, blue!50, outer sep=0pt]
\node (n1) at (0,0) [circle, minimum size=2cm, fill, draw, thick] {};
\node (n2) at (2.5,0) [circle, minimum size=1cm, fill, draw, thick] {};
\path (n1) to[circle connection bar] (n2);
\end{tikzpicture}
\end{document}