AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [
error bars/.cd,
x dir=both, x explicit,
y dir=both, y explicit,
] table [
x error plus=ex+,
x error minus=ex-,
y error plus=ey+,
y error minus=ey-,
] {
x y ex+ ey+ ex- ey-
1.1 0.9 0.4 0.2 0.1 0.1
2.7 2 0 0 1 0
3 3 0 0 0 0
3.8 4.2 0.3 0.2 0.3 0.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+ [
error bars/.cd,
x dir=both, x explicit,
y dir=both, y explicit,
] table [y error=error] {
x y error
1 0.9 0.4
2 2.1 0.2
3 3 0.1
4 4.2 0.3
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\tikzset{My Line Style/.style={ultra thick, blue, fill=yellow!10, fill opacity=0.5,join=round}
}
\begin{document}
\begin{tikzpicture}[rotate around x=5]
\foreach \x in {0,1,2,3,4,5,6}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,0,\z) circle(0.5);
} }
\foreach \x in {0.5,1.5,2.5,3.5,4.5,5.5}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,{sqrt(0.74)},\z) circle(0.5);
} }
\foreach \x in {0,1,2,3,4,5,6}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,{2*sqrt(0.74)},\z) circle(0.5);
} }
\foreach \x in {0.5,1.5,2.5,3.5,4.5,5.5}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,{3*sqrt(0.74)},\z) circle(0.5);
} }
\foreach \x in {0,1,2,3,4,5,6}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,{4*sqrt(0.74)},\z) circle(0.5);
} }
\foreach \x in {0.5,1.5,2.5,3.5,4.5,5.5}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,{5*sqrt(0.74)},\z) circle(0.5);
} }
\foreach \x in {0,1,2,3,4,5,6}{
\foreach \z in {0,1,2,3,4,5,6}{
\shade[ball color=gray] (\x,{6*sqrt(0.74)},\z) circle(0.5);
} }
\draw [My Line Style] (6,{4*sqrt(0.74)},6) -- (4,{4*sqrt(0.74)},6) -- (4,{6*sqrt(0.74)},6) -- (6,{6*sqrt(0.74)},6) -- cycle;
\draw [My Line Style] (4,{6*sqrt(0.74)},6) -- (4,{6*sqrt(0.74)},4) -- (6,{6*sqrt(0.74)},4) -- (6,{6*sqrt(0.74)},6) -- cycle;
\draw [My Line Style] (6,{4*sqrt(0.74)},6) -- (6,{4*sqrt(0.74)},4) -- (6,{6*sqrt(0.74)},4) -- (6,{6*sqrt(0.74)},6) -- cycle;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[x=1ex,y=1ex,baseline={([yshift=-.5ex]
current bounding box.center)}]
\coordinate (v);
\coordinate [above=1.2 of v] (vm1);
\coordinate [left=.75 of vm1] (v01);
\coordinate [right=.75 of vm1] (v11);
\coordinate [left=.7 of v01] (i01);
\coordinate [right=.7 of v11] (o01);
\draw (v01) -- (v11);
\filldraw (v01) circle (1pt);
\filldraw (v11) circle (1pt);
\draw (i01) circle(.7);
\draw (o01) circle(.7);
\coordinate [below=1.2 of v] (vm2);
\coordinate [left=.7 of vm2] (v02);
\coordinate [right=.7 of vm2] (v12);
\draw (v02) circle(.7);
\draw (v12) circle(.7);
\filldraw (vm2) circle (1pt);
\end{tikzpicture}
\end{document}
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.95]
\tikzset{whitenode/.style={draw,circle,fill=white,minimum size=8pt,inner sep=0pt}}
\draw (2,-3) node[whitenode] (v) [label=right:$v$] {}
-- ++(60:1.04cm) node[whitenode] (x1) {}
-- ++(150:0.6cm) node[whitenode] (v1) {\tiny{$3$}}
-- ++(210:0.6cm) node[whitenode] (x2) {}
-- ++(300:1.04cm) node[whitenode] (u2) {}
-- ++(240:1.04cm) node[whitenode] (x3) {}
-- ++(330:0.6cm) node[whitenode] (v2) {\tiny{$3$}}
-- ++(30:0.6cm) node[whitenode] (x4) {};
\draw (1,-3) node[whitenode] (v3) {};
\draw (1.13,-3.5) node[whitenode] (v4) {};
\draw (1.13,-2.5) node[whitenode] (v5) {};
\draw (v1) edge (v);
\draw (v2) edge (v);
\draw [dashed] (v3) edge (v);
\draw [dashed] (v4) edge (v);
\draw [dashed] (v5) edge (v);
\draw (x4) edge (v);
\draw (x4) edge (v2);
\draw (x1) edge (v1);
\draw (x2) edge (v1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb, tikz}
\begin{document}
\begin{tikzpicture}[scale=0.8]
\node [left] at(5.5,-0.2) {$2$};
\node [left] at(9.5,-0.2) {$4$};
\node [left] at(7.5,2.3) {$6$};
\draw[fill=black](5.5,0)circle(.06);
\draw[fill=black](8.5,0)circle(.06);
\draw[fill=black](7.0,2)circle(.06);
\draw (5.5,0)--(8.5,0);
\draw (8.5,0)--(7.0,2);
\node [left] at(9,-1) {Figure (a) $\Gamma^{*}(\mathbb Z_{8})=\Gamma(\mathbb Z_8)$ };
\node [left] at(12.5,-0.2) {$2$};
\node [left] at(16.5,-0.2) {$4$};
\node [left] at(14.5,2.3) {$6$};
\draw[fill=black](12.5,0)circle(.06);
\draw[fill=black](15.5,0)circle(.06);
\draw[fill=black](14.0,2)circle(.06);
\draw (12.5,0)--(15.5,0);
\draw (15.5,0)--(14.0,2);
\draw (12.5,0)--(14.0,2);
\node [left] at(16,-1) {Figure (b) $ \Gamma^{'}(\mathbb Z_{8})$ };
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\begin{scope}\node[shape=circle,draw=black] (0) at (0,0) {$0$};
\node[shape=circle,draw=black] (1) at (5,0) {$1$};
\node[shape=circle,draw=black] (2) at (10,0) {$2$};
\node[shape=circle,draw=black] (3) at (15,0) {$3$};
\end{scope}
\begin{scope}[every node/.style={fill=white}]
\path [->, solid] (0) edge[bend left=0] node {$r_{1} D^{01}_{j}$} (1);
\path [->, dotted] (0) edge[bend left=20] node {$r_{2} D^{01}_{j}$} (1);
\path [->, dotted] (0) edge[bend left=30] node {$r_{1} D^{02}_{j}$} (2);
\path [->, dotted] (0) edge[bend left=50] node {$r_{2} D^{02}_{j}$} (2);
\path [->, dotted] (0) edge[bend right=10] node {$0$} (3);
\path [->, solid] (1) edge[bend left=0] node {$r_{1} D^{12}_{j}$} (2);
\path [->, dotted] (1) edge[bend left=20] node {$r_{2} D^{12}_{j}$} (2);
\path [->, dotted] (1) edge[bend left=30] node {$0$} (3);
\path [->, solid] (2) edge[bend left=0] node {$0$} (3);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{psfrag,amsmath,amssymb,mathrsfs,color,amscd,amsthm,bm,url,tikz}
\begin{document}
\begin{tikzpicture}[scale = 1.2]
\tikzstyle{vertex}=[circle,fill=black,minimum size=0.38em,inner sep=0pt]
\node[vertex] (G_0) at (0,0)[label=right:$v_0$]{};
\node[vertex] (G_1) at (-0.5,0.5)[label=left:$v_1$]{};
\node[vertex] (G_2) at (0.5,0.5)[label=right:$v_{n-\tau-1}$]{};
\node[vertex] (G_3) at (-0.8,1){};
\node[vertex] (G_4) at (-0.2,1){};
\node[vertex] (G_5) at (0.2,1){};
\node[vertex] (G_6) at (0.8,1){};
\node[vertex] (G_7) at (-0.6,-0.5){};
\node[vertex] (G_8) at (0.6,-0.5){};
\draw[thick] (G_3) -- (G_1)--(G_0)--(G_8);
\draw[thick] (G_4)--(G_1);
\draw[thick] (G_0) -- (G_7);
\draw[thick] (G_5)--(G_2)--(G_0);
\draw[thick] (G_6) -- (G_2);
\draw (0,0.5)node{$\ldots$};
\draw (0,-0.5)node{$\ldots$};
\node[below] at (0,-0.5){$\underbrace{\hspace{1.5cm}}$};
\node[below] at (0,-0.8){$3\tau-2n+2$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title=Black draw color and varying fill color,
scatter/use mapped color={
draw=black,
fill=mapped color,
},
]
\addplot+ [
scatter,
scatter src=y,
] {2*x+3};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}[scale=1,font=\footnotesize]
\tikzstyle{leader}=[regular polygon,regular polygon sides=50,draw,inner sep=1.2,minimum size=12]
;
\tikzstyle{follower}=[regular polygon,regular polygon sides=50, rotate=180,draw,inner sep=1.2, minimum size=12, fill=gray!65]
;
\tikzstyle{terminal}=[draw,inner sep=1.2]
;
\tikzstyle{level 1}=[level distance=7mm,sibling distance=20mm]
\tikzstyle{level 2}=[level distance=3mm,sibling distance=12mm]
\node(0)[follower, label=center:{$s$}]{}child{node(1)[leader, label=center:{$s'$}]{}child{node(3)[terminal, label=below:{$(0,0)$}]{}}child{node(4)[terminal, label=below:{$(-1,-1)$}]{}}edge from parent node[above left]{refuse}}child{node(2)[terminal, label=below:{$(q_1,-q_2)$}]{}edge from parent node[above right]{accede}};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions,
}
\begin{document}
\tikz [scale=.55] \datavisualization
[scientific axes=clean, all axes={ticks=few},
visualize as smooth line=my data, my data={straight line}]
data [format=function] {
var t : interval [0:4] samples 5;
func x = cos(\value t r);
func y = sin(\value t r);
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\tikzstyle{vertex}=[circle,draw=black,fill=black,inner sep=0,minimum size=3pt,text=white,font=\footnotesize]
\begin{document}
\begin{tikzpicture}
\node[] (z){};
\node[vertex, label=above right:$u_1$] (u1) [above right=1.2cm and 2.3cm of z] {};
\node[vertex, label=below right:$v_1$] (v1) [below right=1.2cm and 2.3cm of z] {};
\node[vertex, label=below:$u_2$] (u2) [below=2.5cm of z] {};
\node[vertex, label=below left:$v_2$] (v2) [below left=1.2cm and 2.3cm of z] {};
\node[vertex, label=above left:$u_3$] (u3) [above left=1.2cm and 2.3cm of z] {};
\node[vertex, label=above:$v_3$] (v3) [above=2.5cm of z] {};
\node[vertex, label=above:$x_3$] (x3) [above left=0.7cm and 1cm of z] {};
\node[vertex, label=above: {\small $x_1$}] (x1) [above right= 1.2cm and 0.8cm of z]{};
\node[vertex] (x12) [below right= 0.2cm and 0.1cm of x1]{};
\node[vertex] (x13) [below right= 0.2cm and 0.1cm of x12]{};
\node[vertex, label=left:{\small $x_2$}] (x2) [below left=1.3cm and 0.6cm of z] {};
\node[vertex] (x22) [right=0.2cm of x2] {};
\node[vertex] (x23) [right=0.2cm of x22] {};
\node[] at (0,2.2) {$R_3$};
\node[] at (1.4,-0.8) {$R_1$};
\node[] at (-2,-0.8) {$R_2$};
\draw (u1) -- (v1) -- (u2) -- (v2) -- (u3) -- (v3) -- (u1);
\draw (u3) -- (x3);
\draw (u1) -- (x1) -- (x3) -- (x2) -- (u2);
\draw (u1) -- (x12) -- (x3) -- (x22) -- (u2);
\draw (u1) -- (x13) -- (x3) -- (x23) -- (u2);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{atom sep=2em, bond offset=1pt, cram width=2pt}
\begin{document}
\chemfig{[:75]R-C(=[::+60]O)-[::-60]O-[::-60]C(=[::+60]O)-[::-60]R}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\coordinate (j+1) at (-0.5,-0.5,-1.2);
\coordinate (j) at (-0.8,0,1);
\coordinate (i+1) at (0,1,0);
\coordinate (k) at (-1.915,0.425,0);
\filldraw[black] (k) circle (0.2pt);
\coordinate (i) at (-3,0,-2);
\coordinate (i+2) at (-3.5,0,0.2);
\filldraw[red] (j+1) circle (0.5pt) node[anchor=south west]{$j+1$};
\filldraw[color=blue!0, fill=blue!40, rounded corners=0.5pt,opacity=0.5] (i) -- (j+1) -- (i+1) -- cycle;
\filldraw[color=blue!0, fill=blue!40, rounded corners=0.5pt,opacity=0.5] (i) -- (j+1) -- (j) -- cycle;
\draw [dashed, color=blue!80] (i) -- (j+1);
\filldraw[color=blue!0, fill=blue!40, rounded corners=0.5pt,opacity=0.5] (i) -- (j) -- (i+1) -- cycle;
\draw [color=blue!80] (i) -- (i+1);
\draw [dashed, color=blue!80] (j) -- (k);
\draw [color=blue!80] (k) -- (i);
\filldraw[color=blue!0, fill=blue!40, rounded corners=0.5pt,opacity=0.5] (i+2) -- (j+1) -- (i+1) -- cycle;
\filldraw[color=blue!0, fill=blue!40, rounded corners=0.5pt,opacity=0.5] (i+2) -- (j+1) -- (j) -- cycle;
\draw [dashed, color=blue!80] (i+2) -- (j+1);
\filldraw[color=blue!0, fill=blue!40, rounded corners=0.5pt,opacity=0.5] (i+2) -- (j) -- (i+1) -- cycle;
\draw [color=blue!80] (i+2) -- (i+1);
\draw [color=blue!80] (i+2) -- (j);
\filldraw[color=red!90, fill=red!50, thick, rounded corners=0.5pt, opacity=0.5] (j+1) -- (j) -- (i+1) -- cycle;
\filldraw[red] (i+1) circle (0.5pt) node[anchor=south]{$i+1$};
\filldraw[red] (j) circle (0.5pt) node[anchor=north]{$j$};
\filldraw[blue] (i) circle (0.5pt) node[anchor=east]{$i$};
\filldraw[blue] (i+2) circle (0.5pt) node[anchor=east]{$i+2$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amssymb, amsmath, amsthm}
\usepackage{enumitem, graphicx, cite, color}
\usepackage{tikz, float, subfig}
\usetikzlibrary{automata}
\begin{document}
\begin{tikzpicture}[scale=0.6]
\node[state, minimum size=0.8cm, thick, white] (6) at (-4, -4) {};
\node[state, minimum size=0.8cm, thick, white] (7) at (4, -4) {};
\node[state, minimum size=0.8cm, thick] (1) at (0, 0) {$+$};
\node[state, minimum size=0.8cm, thick] (2) at (-1, -2) {$a$};
\node[state, minimum size=0.8cm, thick] (3) at (1, -2) {$b$};
\draw[thick] (1) to (2);
\draw[thick] (1) to (3);
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{forest}
\begin{document}
\begin{forest}
for tree={
draw,
fill=gray!30,
s sep+=3ex,
l sep+=4ex,
math content,
edge={semithick}
}
[{
a_{0}~~
a_{1}~~
a_{2}~~
a_{3}~~
a_{4}~~
a_{5}~~
a_{6}~~
a_{7}
}
[{
a_{0}~~
a_{2}~~
a_{4}~~
a_{6}
}
[{
a_{0}~~
a_{4}
}
[a_{0}]
[a_{4}]
]
[{
a_{2}~~
a_{6}
}
[a_{2}]
[a_{6}]
]
]
[{
a_{1}~~
a_{3}~~
a_{5}~~
a_{7}
}
[{
a_{1}~~
a_{5}
}
[a_{1}]
[a_{5}]
]
[{
a_{3}~~
a_{7}
}
[a_{3}]
[a_{7}]
]
]
];
\end{forest}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{dateplot}
\begin{document}
\begin{tikzpicture}
\begin{axis}[date coordinates in=x,xtick=data,xticklabel style={rotate=90,anchor=near xticklabel},xticklabel=\day. \hour:\minute]\addplot coordinates{(2009-08-18 09:00,050)(2009-08-18 12:00,100)(2009-08-18 15:00,100)(2009-08-18 18:35,100)(2009-08-18 21:30,040)(2009-08-19,020)(2009-08-19 3:00,000)(2009-08-19 6:0,035)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsfonts}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{xparse,amssymb}
\begin{document}
\begin{tikzpicture}[scale=0.4]
\draw[rotate=45, line width=0.6pt] (-0.95, -0.95) rectangle (0.95, 0.95)node[label={[label distance=-2.5cm, xshift=2.2cm]above:\textcolor{black}{$F_2(\theta) = \lVert \theta \rVert_1$}}] {};
\draw[rotate=-45, line width=0.6pt] (-1.9, -1.9) rectangle (1.9, 1.9);
\draw[rotate=-45, line width=0.6pt] (-2.85, -2.85) rectangle (2.85, 2.85);
\draw[rotate=-45, line width=0.6pt] (-3.8, -3.8) rectangle (3.8, 3.8);
\draw[->, line width=0.8pt] (-7, 0) -- (7, 0) node[right] {$\theta_2$};
\draw[->, line width=0.8pt] (0, -6) -- (0, 8) node[above] {$\theta_1$};
\begin{scope}[xslant=-0.4]
\draw[line width=0.6pt] (-0.5, 3.5) circle (0.875);
\draw[line width=0.6pt] (-0.5, 3.5) circle (1.75) node[label={[above=1.2cm, xshift=-1.8cm]above:\textcolor{black}{$F_1(\theta) = \frac{1}{2}\lVert A \theta - b \rVert_2^2 $}}] {};
\draw[line width=0.6pt] (-0.5, 3.5) circle (2.625);
\draw[line width=0.6pt] (-0.5, 3.5) circle (3.5);
\coordinate (ellipseIntersection) at (-0.5, 3.5);
\coordinate (squareIntersection) at (0, 0);
\draw[red, line width=2.0pt ] (ellipseIntersection) -- node[above right = 0.65cm, red] {$\left\lbrace \theta^*(\lambda) \, : \, \lambda \ge 0 \right\rbrace $} (0.8, 2) -- (squareIntersection);
\end{scope}\draw[red, fill=red] (0,0) circle (.07);
\draw[red, fill=red] (-1.9, 3.5) circle (.07);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb,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,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}
,new/.style={color=orange,line width=.2pt},label angle style/.append style={color=teal,font=\footnotesize},label style/.append style={below,color=teal,font=\scriptsize},line style/.style={line width=.2pt}}
\begin{document}

\begin{tikzpicture}[scale=.75]
\tkzDefPoints{0/0/A,5/0/B,1/4/C}\tkzDefTriangleCenter[centroid](A,B,C)\tkzGetPoint{G}\tkzDrawPolygon(A,B,C)\tkzDrawLines[add = 0 and 2/3,new](A,G B,G C,G)\tkzDrawPoints(A,B,C,G)\tkzLabelPoint(G){$G$}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[nodes near coords,enlargelimits=0.2]
\addplot+ [
only marks,
point meta=explicit symbolic,
] coordinates {
(0.5,0.2) [(1)]
(0.2,0.1) [(2)]
(0.7,0.6) [(3)]
(0.35,0.4) [(4)]
(0.65,0.1) [(5)]
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsfonts,amssymb,graphics,epsfig,verbatim,bm,latexsym,amsmath,url,float,amsbsy,multirow,multicol,rotating,enumerate,graphicx,pgf,tikz,subfig,color,xcolor,lscape}
\usetikzlibrary{positioning}
\usetikzlibrary[shapes.misc]\usetikzlibrary{arrows,automata}
\begin{document}
\begin{tikzpicture}
\node[color=black!40!gray] (m) at (-2.40,1.50) {M$_Y$};
\node[fill=black!20!yellow] (v0) at (-0.40,1.50) {Y};
\node[fill=black!20!green] (v1) at (1.40,-1.65) {X};
\node[fill=black!20!green] (v2) at (-2.20,-1.65) {A};
\draw[color=black!40!gray] [->] (v0) edge (m);
\draw [->] (v1) edge (v0);
\draw [->] (v2) edge (v0);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
3d box=background,
title={3d box=background},
samples=5,
domain=-4:4,
xtick=data,
ytick=data,
]
\addplot3 [surf] {x*y};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz-cd}
\usepackage{tikz-network}
\begin{document}
\begin{tikzpicture}
\tikzset{VertexStyle/.style = {shape = circle,fill = black,minimum size = 1.5mm,inner sep=0pt}
}\Vertex[y=1,color=blue]{A2} \Vertex[x=4,y=1,color=black]{C2} \Vertex[x=9,y=1,color=orange]{E2} \Vertex[x=13,y=1,color=red]{F2} \Edge[Direct](A2)(C2) \Edge[Direct](C2)(E2) \Edge[Direct](E2)(F2) \Vertex[y=2,color=blue]{A3} \Vertex[x=3,y=2,color=orange]{B3} \Vertex[x=6,y=2,color=black]{C3} \Vertex[x=10,y=2,color=black]{D3} \Vertex[x=11,y=2,color=orange]{E3} \Vertex[x=13,y=2,color=red]{F3} \Edge[Direct](A3)(B3) \Edge[Direct](B3)(C3) \Edge[Direct](C3)(D3) \Edge[Direct](D3)(E3) \Edge[Direct](E3)(F3) \Edge[Direct](B3)(C2) \Edge[Direct](E2)(D3) \Vertex[y=3,color=blue]{A4} \Vertex[x=5,y=3,color=orange]{B4} \Vertex[x=12,y=3,color=black]{C4} \Vertex[x=13,y=3,color=red]{D4} \Edge[Direct](A4)(B4) \Edge[Direct](B4)(C4) \Edge[Direct](C4)(D4) \Edge[Direct](B4)(C3) \Edge[Direct](E3)(C4) \Text[x=13.5,y=1]{i} \Text[x=13.5,y=2]{i+1} \Text[x=13.5,y=3]{i+2}
\end{tikzpicture}
\end{document}
\documentclass[12pt, border=2pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[fill=black] (0,0) circle (2pt);\draw[fill=black] (2,0) circle (2pt);\draw[fill=black] (4,0) circle (2pt);
\draw[fill=black] (-1,-1) circle (2pt);\draw[fill=black] (1,-1) circle (2pt);\draw[fill=black] (3,-1) circle (2pt);
\draw[fill=black] (2.9,-2.3) circle (2pt);
\draw[thin] (0,0)--(2.9,-2.3);\draw[thin] (2,0)--(2.9,-2.3);\draw[thin] (3,-1)--(2.9,-2.3);
\draw[thin] (2,0)--(2.9,-2.3); \draw[thin] (4,0)--(2.9,-2.3);\draw[thin] (-1,-1)--(2.9,-2.3);
\draw[thin] (0,0)--(-1,-1); \draw[thin] (0,0)--(1,-1);\draw[thin] (2,0)--(-1,-1);
\draw[thin] (2,0)--(3,-1); \draw[thin] (4,0)--(1,-1);\draw[thin] (4,0)--(3,-1);
\node at (0,.3) {$ p $};\node at (2,.3) {$ q $};\node at (4,.3) {$ r $};
\node at (-1,-1.3) {$ pq $};\node at (1,-1.3) {$ pr $};\node at (3,-0.7) {$ qr $}; \node at (2.9,-2.7) {$ K_{1} $};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{
atom sep=2em,
bond offset=1pt,
cram width=2pt,
}
\begin{document}
\chemfig{[:-45]A-B([:60]-D-E)([::-30,1.5]-X-Y)-C}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot+ [name path=A,domain=0:5] {x^2};
\path [name path=B]
(\pgfkeysvalueof{/pgfplots/xmin},0) --
(\pgfkeysvalueof{/pgfplots/xmax},0);
\addplot [orange] fill between [of=A and B];
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{chemfig}
\setchemfig{atom sep=2em,bond offset=1pt,cram width=2pt,}
\begin{document}
\chemfig{A-B(-[1]W-X?)(-[7]Y-Z)-C?}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[red] (2,2) circle (0.2cm);
\fill[blue] (0,2) circle (0.2cm);
\draw[green,thick] (2,2.2) arc (10:170:1cm);
\draw[thick] (0,1.8) arc (190:350:1cm);
\draw[thick] (3.1,2) circle (0.2cm);
\fill[red] (4.6,2.85) circle (0.2cm);
\fill[blue] (4.6,1.1) circle (0.2cm);
\draw[thick] (3.1,2.2) arc (170:70:1cm);
\draw[thick] (3.1,1.8) arc (190:290:1cm);
\draw[green,thick] (4.8,1.2) arc (-50:50:1cm);
\draw[thick] (6.3,2) circle (0.2cm);
\draw[thick] (7.3,1) circle (0.2cm);
\fill[red] (7.3,3) circle (0.2cm);
\fill[blue] (8.3,2) circle (0.2cm);
\draw[thick] (6.3,2.2) arc (170:100:1cm);
\draw[thick] (6.3,1.8) arc (190:260:1cm);
\draw[thick] (8.3,1.8) arc (-10:-80:1cm);
\draw[green,thick] (8.3,2.2) arc (10:80:1cm);
\draw[thick] (9.6,2) circle (0.2cm);
\draw[thick] (10.3,2.95) circle (0.2cm);
\draw[thick] (10.3,1.05) circle (0.2cm);
\fill[red] (11.5,2.6) circle (0.2cm);
\fill[blue] (11.5,1.3) circle (0.2cm);
\draw[thick] (9.6,2.2) arc (170:118:1cm);
\draw[thick] (9.6,1.8) arc (190:242:1cm);
\draw[thick] (10.5,3) arc (102:50:1cm);
\draw[thick] (10.5,1) arc (255:307:1cm);
\draw[green,thick] (11.6,1.5) arc (-26:26:1cm);
\draw[thick] (13,2) circle (0.2cm);
\draw[thick] (13.5,2.85) circle (0.2cm);
\draw[thick] (13.5,1.15) circle (0.2cm);
\draw[thick] (14.5,1.15) circle (0.2cm);
\fill[red] (14.5,2.85) circle (0.2cm);
\fill[blue] (15,2) circle (0.2cm);
\draw[thick] (13,2.2) arc (170:130:1cm);
\draw[thick] (13,1.8) arc (190:230:1cm);
\draw[green,thick] (15,2.2) arc (10:50:1cm);
\draw[thick] (15,1.8) arc (-10:-50:1cm);
\draw[thick] (13.65,1.04) arc (250:290:1cm);
\draw[thick] (13.65,2.96) arc (110:70:1cm);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz}
\node[jump crossing](X)at(1,1){};
\draw(X.west)--++(-1,0);
\draw(X.east)to[R]++(2,0);
\draw(X.north)node[vcc]{};
\draw(X.south)to[C]++(0,-1.5);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
[12pt,letter]\usepackage{amssymb}
\usepackage[utf8]{inputenc}
\usepackage{color,soul}
\usepackage{tikz-cd}
\begin{document}

\begin{tikzpicture}[scale=.8,v/.style={draw,shape=circle, fill=black, minimum size=1.3mm, inner sep=0pt, outer sep=0pt},vred/.style={draw,shape=circle, fill=red, minimum size=1mm, inner sep=0pt, outer sep=0pt},]

\draw[dashed] (-1.5, 0) -- (1.5,0);
\draw[color=black, ->] (-1.5,0) to[out=90, in=90] (-0.5, 1.5);
\draw[color=black] (-0.5,1.5) to[out=270, in=90] (-1.2, 0);
\draw[color=black, -<] (-1.5,0) to[out=-90, in=-90] (-0.5, -1.5);
\draw[color=black] (-0.5,-1.5) to[out=-270, in=-90] (-1.2, 0);
\draw[color=black, ->] (0,0) to[out=90, in=90] (1, 1.5);
\draw[color=black] (1,1.5) to[out=270, in=90] (0, 0);
\draw[color=black, -<] (0,0) to[out=-90, in=-90] (1, -1.5);
\draw[color=black] (1,-1.5) to[out=-270, in=-90] (-0, 0);
\draw[color=black, ->] (1.5,0) to[out=90, in=90] (2.5, 1.5);
\draw[color=black] (2.5,1.5) to[out=270, in=90] (1.2, 0);
\draw[color=black, -<] (1.5,0) to[out=-90, in=-90] (2.5, -1.5);
\draw[color=black] (2.5,-1.5) to[out=-270, in=-90] (1.2, 0);
\node[v] at (-1.5, 0) {};
\node[v] at (-0, 0) {};
\node[vred] at (-0, 0) {};
\node[v] at (1.5, 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,-o] ++(2,0)
edge[dashed, red] ++(1,0)
++(1,0) to [R] ++(2,0);
\end{circuitikz}
\end{document}