AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage[RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\draw(0,0)to[battery,bipole/is voltage=false,v>=$u_1$](2,0);
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=6,z=.4cm]
\draw[thick,dotted] (.5,0,.4) node[anchor=north]{$B$} -- (.9,0,.7) node[anchor=south west]{$A$};
\draw[thick,dotted] (.5,0,.4) -- (.5,.5,.4) node[anchor=south]{$C$};
\draw[thick,dotted] (.5,.5,.4) -- (.9,0,.7);
\draw (.5,0.05,.4) -- (0.54, 0.05, 0.43) -- (0.54, 0, 0.43);
\coordinate (arcstart) at (.5,.3,.4);
\draw[thick] (.5,.5,.4) circle[x={(.8,0,.6)},y={(0,1,0)},radius=.2];
\draw[x={(.8,0,.6)},y={(0,1,0)},thick,red] (arcstart) arc[start angle=-90,end angle=-45,radius=.2];
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{upgreek}
\usepackage{fp}
\usepackage{tikz}
\usetikzlibrary{
arrows,
arrows.meta,
arrows.spaced,
bending,
babel,
calc,
fit,
positioning,
scopes,
intersections,
through,
backgrounds,
matrix,
chains,
quotes,
angles,
math,
topaths,
plotmarks,
}
\usetikzlibrary{
decorations,
decorations.pathmorphing,
decorations.markings,
decorations.pathreplacing,
decorations.shapes,
decorations.text,
decorations.footprints,
decorations.fractals,
}
\usetikzlibrary{
shapes,
shapes.geometric,
shapes.symbols,
shapes.arrows,
shapes.multipart,
shapes.callouts,
shapes.misc,
shapes.gates.logic.US,
shapes.gates.logic.IEC,
}
\usetikzlibrary{
patterns,
patterns.meta,
fadings,
shadings,
shadows,
shadows.blur,
}
\usetikzlibrary{
mindmap,
calendar,
folding,
trees,
automata,
petri,
er,
turtle,
lindenmayersystems,
spy,
svg.path,
bbox,
external,
fixedpointarithmetic,
fpu,
}
\usetikzlibrary{
circuits.logic.US,
circuits.logic.IEC,
circuits.logic.CDH,
circuits.ee.IEC,
}
\usetikzlibrary{
datavisualization,
datavisualization.polar,
datavisualization.formats.functions,
}
\usetikzlibrary{
3d,
perspective,
views,
}
\usetikzlibrary{
graphs,
graphs.standard,
}
\usetikzlibrary{rdf}
\usepackage{amsmath,amssymb}
\usepackage{xcolor}
\makeatletter
\tikzset{
help lines/.style={gray,very thin},
important line/.style={thick},
information text/.style={rounded corners,fill=red!10,inner sep=1ex},
}
\tikzset{
Karl's grid/.style={help lines,color=blue!50},
Karl's axes/.style={<->},
}
\tikzset{
place/.style={circle,draw=blue!50,fill=blue!20,thick,minimum size=6mm},
transition/.style={rectangle,draw=black!50,fill=black!20,thick,minimum size=4mm},
pre/.style={<-,shorten <=1pt,>=stealth',semithick},
post/.style={->,shorten >=1pt,>=stealth',semithick},
}
\tikzset{
state/.style={draw,circle,minimum size=0.6cm},
initial text={},
}
\tikzset{
level distance=1cm,
sibling distance=1cm,
}
\tikzset{>=stealth}
\colorlet{anglecolor}{green!50!black}
\colorlet{sincolor}{red}
\colorlet{tancolor}{orange!80!black}
\colorlet{coscolor}{blue}
\tikzset{
dot/.style={circle,fill,inner sep=0pt,minimum size=4pt},
small dot/.style={circle,fill,inner sep=0pt,minimum size=2pt},
}
\colorlet{concept color}{blue!40}
\pgfkeys{/pgf/decoration/.unknown/.code={}}
\makeatother
\begin{document}
\tikz[mindmap,concept color=blue!80]
\node [concept] {Root concept}
child[concept color=red,grow=30] {node[concept] {Child concept}}
child[concept color=orange,grow=0] {node[concept] {Child concept}};
\end{document}
\documentclass[tikz,border=2pt]{standalone}
\begin{document}
\begin{tikzpicture}[scale=.9]
\node (N0) at (0,0) {};
\node[label=$\alpha_{r-1}$] (N1) at (1,0.5) {};
\node[label=$\alpha_{r}$] (N2) at (1,-0.5) {};
\draw (N0.center) -- (N1.center);
\draw (N0.center) -- (N2.center);
\fill (N1) circle (2pt);
\fill (N2) circle (2pt);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=0.7]
\draw[help lines] (-3,-3) grid (4,4);
\draw[thick] (-3,-3) -- (-3,1) -- (-2,1) -- (-2,2) -- (-1,2) -- (-1,3) -- (0,3) -- (0,4)
-- (4,4) -- (4, 0) -- (3,0) -- (3,-1) -- (2,-1) -- (2,-2) -- (1,-2) -- (1,-3)
-- cycle;
\draw[thick,->] (-2.5,-2.5) -- (3.5, 0.5);
\draw[thick,->] (-1.5,-2.5) -- (2.5, -0.5);
\draw[thick,->] (-0.5,-2.5) -- (1.5, -1.5);
\draw[thick,->] (-2.5,0.5) -- (3.5,3.5);
\draw[thick,->] (-1.5,1.5) -- (2.5,3.5);
\draw[thick,->] (-0.5,2.5) -- (1.5,3.5);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\begin{document}
\begin{tikzpicture}[scale=0.9]

\draw[thick] (-4, 0) -- ( 6.5, 0);

\node[thick, right] at ( 6.5, 0) {$q = 0$};

\draw[thick, ->] (6, -2.25) -- ( 7, -2.25);

\node[thick, right] at ( 7, -2.25) {$\theta$};

\draw[thick, ->] (6, -2.25) -- ( 6, -1.25);

\node[thick, right] at ( 6, -1.25) {$q$};

\draw[thick, BrickRed] (-4, -4) -- ( 0, 0);

\draw[thick, BrickRed] ( 0, 0) -- ( 0, 5.5);

\node[thick, above, BrickRed] at ( 0, 5.5) {$b=0$};

\draw[thick, BurntOrange] (-4 , -1 ) -- (-3, 0);

\draw[thick, BurntOrange] (-3 , 0 ) -- (-3, 5.5);

\node[thick, above, BurntOrange] at (-3, 5.5) {$b=-1$};

\draw[thick, BurntOrange] (-2, -5) -- ( 3, 0);

\draw[thick, BurntOrange] ( 3, 0) -- ( 3, 5.5);

\node[thick, above, BurntOrange] at ( 3, 5.5) {$b=1$};

\draw[thick, BurntOrange] ( 1, -5) -- ( 6, 0);

\draw[thick, BurntOrange] ( 6, 0) -- ( 6, 5.5);

\node[thick, above, BurntOrange] at ( 6, 5.5) {$b=2$};

\draw[dashed, thick, Cerulean] ( 3.5, 5.5) -- ( 6.5, 2.5);

\node[thick, Cerulean, below right] at ( 6.5, 2.5) {$M = 3$};

\draw[dashed, thick, Cerulean] ( 0.5, 5.5) -- ( 6.5, -0.5);

\node[thick, Cerulean, below right] at ( 6.5, -0.5) {$M = 2$};

\draw[dashed, thick, Cerulean] (-2.5, 5.5) -- ( 6.5, -3.5);

\node[thick, Cerulean, below right] at ( 6.5, -3.5) {$M = 1$};

\draw[dashed, thick, Cerulean] (-4 , 4 ) -- ( 5 , -5 );

\node[thick, Cerulean, below right] at ( 5 , -5 ) {$M = 0$};

\draw[dashed, thick, Cerulean] (-4 , 1 ) -- ( 2 , -5 );

\node[thick, Cerulean, below right] at ( 2 , -5 ) {$M = -1$};

\draw[dashed, thick, Cerulean] (-4 , -2 ) -- (-1 , -5 );

\node[thick, Cerulean, below right] at (-1 , -5 ) {$M = -2$};

\draw[dashed, thick, ForestGreen, ->] ( 9 , 4 ) -- (10 , 4 );

\node[thick, ForestGreen, right] at (10 , 4 ) {$\widehat{M}_s$};

\draw[thick, ForestGreen, ->] ( 9 , 4 ) -- (10 , 3 );

\node[thick, ForestGreen, below right] at (10 , 3 ) {$\widehat{b}_s$};

\draw[dashed, thick, ForestGreen, ->] ( 9 ,-3.5) -- ( 9.408,-3.092);

\node[thick, ForestGreen, above right] at ( 9.408,-3.092) {$\widehat{M}_u$};

\draw[thick, ForestGreen, ->] ( 9 ,-3.5) -- ( 9.707,-4.207);

\node[thick, ForestGreen, below right] at ( 9.707,-4.297) {$\widehat{b}_u$};

\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,intersections}
\begin{document}
\begin{tikzpicture}
\node[name path= c1] (foo) at (0,0)[circle] {$x$};
\node[name path= c2] (bar) at (2,2)[circle] {$x+1$};
\path[name path=line] (foo.south) -- (bar.center);
\fill [name intersections={of=c1 and line, name=i, total=\t}] [red, opacity=0.5, every node/.style={left=.25cm, black, opacity=1}]
\foreach \s in {1,...,\t}{(i-\s) circle (2pt) node {}};
\fill [name intersections={of=c2 and line, name=j, total=\t}] [red, opacity=0.5, every node/.style={left=.25cm, black, opacity=1}]
\foreach \s in {1,...,\t}{(j-\s) circle (2pt) node {}};
\draw[red] (i-1) -- (j-1);
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=1cm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\edef\mylst{}
\pgfplotsforeachungrouped \i in {0.3,0.4,...,1} {
\ifdim\i pt<0.98pt
\edef\mylst{\mylst (\i,\i)}
\else
\edef\mylst{\mylst (5,5)}
\fi
}
\addplot coordinates {\mylst};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=10pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{chemfig}
\setchemfig{
atom sep=2.5em,
bond offset=1pt,
compound sep=5em,
arrow offset=6pt,
}
\begin{document}
\schemestart
\chemfig{[:-30]*6(=-=(-@{atoc}C([6]=[@{db}]@{atoo1}O)-H)-=-)}
\arrow(start.mid east--.mid west){->[\chemfig{@{atoo2}\chemabove{O}{\scriptstyle\ominus}}H]}
\chemmove[-stealth,shorten >=2pt,dash pattern=on 1pt off 1pt,thin]{
\draw[shorten <=8pt](atoo2) ..controls +(up:10mm) and +(up:10mm)..(atoc);
\draw[shorten <=2pt](db) ..controls +(left:5mm) and +(west:5mm)..(atoo1);}
\chemfig{[:-30]*6(=-=(-C([6]-[@{sb1}]@{atoo1}\chembelow{O}{\scriptstyle\ominus})([2]-OH)-[@{sb2}]H)-=-)}
\hspace{1cm}
\chemfig{[:-30]*6((-@{atoc}C([6]=[@{db}]@{atoo2}O)-[2]H)-=-=-=)}
\chemmove[-stealth,shorten <=2pt,shorten >=2pt,dash pattern=on 1pt off 1pt,thin]{
\draw([yshift=-4pt]atoo1.270) ..controls +(0:5mm) and +(right:10mm)..(sb1);
\draw(sb2) ..controls +(up:10mm) and +(north west:10mm)..(atoc);
\draw(db) ..controls +(right:5mm) and +(east:5mm)..(atoo2);}
\arrow(@start.base west--){0}[-75,2]
{}
\arrow
\chemfig{[:-30]*6(=-=(-C([1]-@{atoo2}O-[@{sb}0]@{atoh}H)([6]=O))-=-)}
\arrow{0}
\chemfig{[:-30]*6((-C(-[5]H)(-[7]H)-[2]@{atoo1}\chemabove{O}{\scriptstyle\ominus})-=-=-=)}
\chemmove[-stealth,shorten >=2pt,dash pattern=on 1pt off 1pt,thin]{
\draw[shorten <=7pt](atoo1.90) ..controls +(+90:8mm) and +(up:10mm)..(atoh);
\draw[shorten <=2pt](sb) ..controls +(up:5mm) and +(up:5mm)..(atoo2);}
\schemestop
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[baseline={([yshift=-0.9ex]
current bounding box.center)},scale=0.8]\draw[thick] (-1.1,0) node[above right]{$\phi^{b}$} -- (0,0) -- (1.1,0) node[above left]{$\phi^{b}$};
\draw[thick] (-1.5,0) -- (-2,1.73/2) node[left]{$2^{+,a_2}$};
\draw[thick] (1.5,0) -- (2,1.73/2) node[right]{$3^{+,a_3}$};
\draw[thick] (-1.5,0) -- (-2,-1.73/2) node[left]{$1^{+,a_1}$};
\draw[thick] (1.5,0) -- (2,-1.73/2) node[right]{$4^{\phi,a_4}$};
\filldraw[thick,fill=white] (-1.5,0) circle (0.4);
\filldraw[thick,fill=white] (1.5,0) circle (0.4);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{multipoles/thickness=4}
\ctikzset{multipoles/external pins thickness=2}
\draw (0,0) node[dipchip,
num pins=12,
hide numbers,
external pins width=0.3,
external pad fraction=4 ](C){IC1};
\draw (C.pin 1) -- ++(-0.5,0) to[R]
++(0,-3) node[ground]{};
\node [right, font=\tiny] at (C.bpin 1) {RST};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{loglogaxis}
\addplot coordinates {
(769, 1.6227e-04)
(1793, 4.4425e-05)
(4097, 1.2071e-05)
(9217, 3.2610e-06)
(2.2e5, 2.1E-6)
(1e6, 0.00003341)
(2.3e7, 0.00131415)
};
\end{loglogaxis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.8}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ybar stacked,nodes near coords,every node near coord/.append style={font=\footnotesize},xbar legend,legend pos=outer north east,enlarge x limits={abs=1},enlarge y limits=false,bar width=.5,xtick={1,2},xticklabels={Dots,Squares},ymin=0,ylabel={Aliens founds}]\addplot coordinates {(1,25) (2,35)};
\addplot coordinates {(1,10) (2,0)};
\addplot coordinates {(1,5) (2,100)};
\legend{First one,Second one,Third}
\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=Single Bicubic Quadrilateral,
]
\addplot3 [
patch,
patch type=bicubic,
shader=interp,
] coordinates {
(0,0,1) (1,0,0) (2,0,0) (3,0,0)
(0,1,0) (1,1,0) (2,1,0) (3,1,0)
(0,2,0) (1,2,0) (2,2,0) (3,2,0)
(0,3,0) (1,3,0) (2,3,0) (3,3,0)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{graphs}
\tikzset{>=stealth}
\begin{document}
\begin{tikzpicture}
\graph [grow right=2cm] {
"Hi, World!" -> "It's \emph{important}!"[red,rotate=-45];
"name"/actual text -> "It's \emph{important}!";
};
\draw (name) circle [radius=3pt];
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{positioning}
\pgfplotsset{compat=1.15}
\begin{document}
\begin{tikzpicture}[scale=0.49]
\begin{axis}[xlabel={Throughput [ktrans/sec]},ylabel={Latency [ms]},xmin=0,xmax=35,ymin=0,ymax=200,xtick={0,10,20,30},ytick={50,100,150},legend style={at={(axis cs:0,200)},anchor=north west},ymajorgrids=true,grid style=dashed]\addplot[color=orange,mark=square,mark size=4pt,line width=0.5mm]coordinates {(0.093,10)(0.863,16)(6.131,27)(12.804,52)(18.876,94)(23.865,144)(23.992,173)};
\addplot[color=teal,mark=o,mark size=4pt,line width=0.5mm]coordinates {(0.095,9)(0.901,14)(6.870,25)(13.701,47)(20.529,84)(26.048,129)(26.313,157)};
\addplot[color=blue,mark=pentagon,mark size=4pt,line width=0.5mm]coordinates {(0.097,8)(0.934,11)(8.119,19)(16.021,36)(23.182,71)(30.034,107)(30.235,141)};
\addplot[color=black,mark=star,mark size=4pt,line width=0.5mm]coordinates {(0.099,8)(0.958,10)(8.432,17)(16.950,32)(24.150,65)(31.114,99)(31.810,121)};
\addlegendentry{$100\%$ Mobile}\addlegendentry{$80\%$ Mobile}\addlegendentry{$20\%$ Mobile}\addlegendentry{$0\%$ Mobile}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}
\addplot {x^2 + 4};
\addplot {-5*x^3 - x^2};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=3mm]{standalone}
\usepackage[spanish]{babel}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16, width=0.98\textwidth}
\decimalpoint
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis line style={black},
xtick={0.00,0.02,...,0.12},
legend cell align={left},
legend style={at={(0.03,0.97)}, anchor=north west, draw=black},
xlabel={$\lambda$},
xmin=0.0055, xmax=0.1045,
ylabel={RMSE},
ymin=0.912938021884183, ymax=1.01339429908853,
xtick align=inside,
ytick align=inside,
grid = none,
y tick label style={
/pgf/number format/.cd,
fixed,
fixed zerofill,
precision=4
},
]
\addplot [mark=*, line width=0.8pt, blue, mark size=1pt] table {
0.01 0.97820029742643
0.02 0.962938632883304
0.03 0.944377590107486
0.04 0.934490513382265
0.05 0.926770707258887
0.09 0.921652885011797
0.1 0.922493653631392
};
\addlegendentry{20 f}
\addplot [mark=*, line width=0.8pt, black, mark size=1pt] table {
0.01 0.992629285376604
0.02 0.970555305088483
0.03 0.950769057081716
0.04 0.937408149963347
0.05 0.92888998569171
0.09 0.919757726792486
0.1 0.922265347358195
};
\addlegendentry{30 f}
\addplot [mark=*, line width=0.8pt, red, mark size=1pt] table {
0.01 1.00429685084556
0.02 0.976819790163343
0.03 0.955650609854943
0.04 0.939869451503815
0.05 0.927933873176105
0.09 0.917634061468206
0.1 0.920597626159782
};
\addlegendentry{50 f}
\addplot [mark=*, line width=0.8pt, yellow, mark size=1pt] table {
0.01 1.00882810467015
0.02 0.972771038904076
0.03 0.955085239938932
0.04 0.941800125612627
0.05 0.930788565993547
0.09 0.917504216302563
0.1 0.920804593468368
};
\addlegendentry{100 f}
\addplot [mark=*, line width=0.8pt, orange, mark size=1pt] table {
0.01 1.00130716487781
0.02 0.97125309142477
0.03 0.952896925523292
0.04 0.940895422722576
0.05 0.931374232049292
0.09 0.920535667968586
0.1 0.920701204441381
};
\addlegendentry{150 f}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,margin=3mm]{standalone}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[scale=2]
\coordinate (A) at (0,0);
\coordinate (B) at ({sqrt(4/3)},0);
\coordinate (C) at ({sqrt(4/3)/2},1);
\filldraw[opacity=.3, blue] (A) -- (B) -- (C) -- cycle;
\node at (A) [below left] {1};
\node at (B) [below right] {2};
\node at (C) [above] {3};
\draw ($(A)!0.375!(B)$) coordinate (X) -- ++(90:0.25) coordinate (P) -- ++(150:0.25) coordinate (Y);
\draw (P) -- ++(30:0.5) coordinate (Z);
\path let \p1=($(X)-(P)$) in (X)--(P) node[midway,below=-1mm,sloped]{\scalebox{0.25}{\pgfmathparse{veclen(\x1,\y1)/28.4}\pgfmathresult cm}};
\path let \p1=($(Y)-(P)$) in (Y)--(P) node[above=-0.8mm,midway,sloped]{\scalebox{0.25}{\pgfmathparse{veclen(\x1,\y1)/28.4}\pgfmathresult cm}};
\path let \p1=($(Z)-(P)$) in (Z)--(P) node[above=-0.8mm,midway,sloped]{\scalebox{0.25}{\pgfmathparse{veclen(\x1,\y1)/28.4}\pgfmathresult cm}};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{upgreek}
\usepackage{amsmath,amssymb}
\usepackage{siunitx}
\usepackage[siunitx, RPvoltages]{circuitikz}
\usetikzlibrary{
calc,
fit,
decorations,
decorations.pathmorphing,
decorations.markings,
decorations.pathreplacing,
shapes.geometric,
shapes.arrows,
positioning,
patterns,
arrows.meta,
backgrounds,
intersections,
tikzmark,
bending
}
\begin{document}
\tikz \draw (0,0) to[C, i=$\imath$] (2,0); \par
\ctikzset{current/distance = .2}
\tikz \draw (0,0) to[C, i=$\imath$] (2,0);
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{amssymb}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.7}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows}
\usepgfplotslibrary{fillbetween}
\begin{document}
\begin{tikzpicture}
\begin{axis}[width=\linewidth,line width=1,tick label style={font=\normalsize},legend style={nodes={scale=1, transform shape}},xlabel={Episode},ylabel={Steps Taken},ymin=0,ymax=31000,xmin=0,xmax=24]\addplot[lime] coordinates{(0,0)};
\addlegendentry{RBQL range};
\addplot[teal] coordinates{(0,0)};
\addlegendentry{RBQL avg.};
\addplot[lime, name path=h] coordinates {(0,30947)(1,19358)(2,9072)(3,6081)(4,2864)(5,3810)(6,2232)(7,1075)(8,1246)(9,626)(10,635)(11,882)(12,584)(13,1023)(14,916)(15,884)(16,446)(17,1160)(18,546)(19,525)(20,596)(21,563)(22,524)(23,468)(24,565)};
\addplot[lime, name path=i] coordinates {(0,8478)(1,295)(2,187)(3,205)(4,204)(5,228)(6,134)(7,130)(8,128)(9,140)(10,120)(11,126)(12,130)(13,134)(14,122)(15,122)(16,130)(17,122)(18,122)(19,122)(20,122)(21,122)(22,114)(23,116)(24,118)};
\addplot[lime, opacity=0.7] fill between[of=h and i];
\addplot[blue] coordinates {(0,98)(24,98)};
\addplot[teal] coordinates {(0,20811.08)(1,3586.98)(2,1777.44)(3,1451.74)(4,1081.0)(5,1145.2)(6,855.68)(7,458.62)(8,742.4)(9,365.42)(10,381.38)(11,416.74)(12,435.14)(13,528.28)(14,787.32)(15,420.3)(16,336.34)(17,444.04)(18,303.8)(19,306.08)(20,296.3)(21,313.06)(22,281.12)(23,300.7)(24,344.9)};
\end{axis}
\begin{axis}[width=\linewidth,line width=1,tick label style={font=\normalsize},legend style={nodes={scale=1, transform shape}},xlabel={Episode},ylabel={Steps Taken},ymin=0,ymax=31000,xmin=0,xmax=24]
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix,arrows}
\begin{document}
\begin{tikzpicture}
\matrix(m)[matrix of math nodes,row sep=3em,column sep=4em,minimum width=2em,nodes={text height=1.75ex,text depth=.25ex}]{A&B&\cdots&C\\D&E&\cdots&F\\};
\path[-stealth](m-1-1)edge node[above]{$f$}(m-1-2)(m-1-2)edge node[above]{$f$}(m-1-3)(m-1-3)edge node[above]{$f$}(m-1-4)(m-2-1)edge node[above]{$f$}(m-2-2)(m-2-2)edge node[above]{$f$}(m-2-3)(m-2-3)edge node[above]{$f$}(m-2-4)(m-2-1)edge node[above]{$g$}(m-1-2)(m-2-2)edge node[above]{$g$}(m-1-3)(m-2-3)edge node[above]{$g$}(m-1-4);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{datavisualization,datavisualization.formats.functions}
\begin{document}
\begin{tikzpicture}[baseline]
\datavisualization[school book axes,visualize as line]data[format=function]{var x : interval [-0.1*pi:2];
func y = sin(\value x r);
}info{\draw[red](visualization cs:x={(.5*pi)},y=1)circle[radius=1pt]node[above,font=\footnotesize]{extremal point};
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.polar,
datavisualization.formats.functions
}
\begin{document}
\tikz \datavisualization [
scientific polar axes={0 to pi, clean},
all axes=grid,
style sheet=vary hue,
legend=below
]
[visualize as smooth line=sin,
sin={label in legend={text=$1+\sin \alpha$}}]
data [format=function] {
var angle : interval [0:pi];
func radius = sin(\value{angle}r) + 1;
}
[visualize as smooth line=cos,
cos={label in legend={text=$1+\cos\alpha$}}]
data [format=function] {
var angle : interval [0:pi];
func radius = cos(\value{angle}r) + 1;
};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{circuitikz}
\ctikzset{logic ports=ieee,logic ports/scale=0.7}
\begin{document}
\begin{circuitikz}[american]
\def\coorda(#1)<#2>{node[circle,red,draw,inner sep=1pt,pin={[red,overlay,inner sep=0.5pt,font=\small,pin distance=0.1cm,pin edge={red,overlay,}]#2:#1}](#1){}}\path(-2,1)--(11,-1);
\draw(0,0)node[american and port,number inputs=3](A){IC1};
\foreach\a/\d in{bin 1/-135,bin 2/-135,bin 3/-135,bout/-45}\path(A.\a)\coorda(\a)<\d>;
\draw(4.5,0)node[american or port,number inputs=3](A){IC1};
\foreach\a/\d in{bin 1/-135,bin 2/-135,bin 3/-135,bout/-45}\path(A.\a)\coorda(\a)<\d>;
\draw(9,0)node[nand port](A){};
\foreach\a/\d in{bin 1/-135,bin 2/-135,bout/-45}\path(A.\a)\coorda(\a)<\d>;
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}[samples=300,axis lines=middle,enlargelimits=true]\addplot[no markers,blue,thick,domain=-10:10]{180+2*deg(x)-4*(asin(sin(deg(x))/1.33))};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[small,minor x tick num=1,
enlarge x limits={abs=1cm},
]
\addplot {5 * x^3 - x^2 + 4*x -2}
coordinate [pos=0] (first)
coordinate [pos=1] (last);
\draw [red,->] (first) -- ++(-1cm,0pt);
\draw [red,->] (last) -- ++( 1cm,0pt);
\end{axis}
\end{tikzpicture}
\end{document}