AIGrounding/Diagram-MMU huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
arrows.meta,
positioning,
automata
}
\tikzset{
state/.style={draw,circle,minimum size=0.6cm},
initial text={},
}
\begin{document}
\begin{tikzpicture}[->,>={Stealth[round]},shorten >=1pt,
auto,node distance=2cm,on grid,semithick,
inner sep=2pt,bend angle=45]
\node[initial,state] (A) {$q_a$};
\node[state] (B) [above right=of A] {$q_b$};
\node[state] (D) [below right=of A] {$q_d$};
\node[state] (C) [below right=of B] {$q_c$};
\node[state] (E) [below=of D] {$q_e$};
\path [every node/.style={font=\footnotesize}]
(A) edge node {0,1,L} (B)
edge node {1,1,R} (C)
(B) edge [loop above] node {1,1,L} (B)
edge node {0,1,L} (C)
(C) edge node {0,1,L} (D)
edge [bend left] node {1,0,R} (E)
(D) edge [loop below] node {1,1,R} (D)
edge node {0,1,R} (A)
(E) edge [bend left] node {1,0,R} (A);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[samples=8]
\addplot+ [
jump mark left,
domain=-5:0,
] {4*x^2 - 5};
\addplot+ [
jump mark right,
domain=-5:0,
] {0.7*x^3 + 50};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\tkzSetUpCompass[delta=10]\tkzSetUpLine[line width=.2pt]
\begin{document}
\begin{tikzpicture}[rotate=25,scale=.75,line width=.2pt,new/.style={color=orange,line width=.2pt}]
\tkzDefPoints{0/0/C,2/-3/A,4/0/B}\tkzDefLine[bisector,normed](B,A,C)\tkzGetPoint{a}\tkzDrawLines[add=0 and .5](A,B A,C)\tkzShowLine[bisector,gap=4,size=2,color=red](B,A,C)\tkzDrawLines[new,dashed,add=0 and 3](A,a)
\end{tikzpicture}
\end{document}
\documentclass[tikz, border=2pt]{standalone}
\usetikzlibrary{calc}
\tikzset{
pics/circle vertically split/.style 2 args = {
code = {
\node[inner sep=3pt,left] (-left) {#1};
\node[inner sep=3pt,right] (-right) {#2};
\path let
\p1 = ($(-left.north west) - (-left.east)$),
\p2 = ($(-right.west) - (-right.south east)$),
\n1 = {max(veclen(\p1), veclen(\p2))*2}
in node[minimum size=\n1, circle, draw] (-shape) at (0,0) {};
\draw (-shape.north) -- (-shape.south);
}
}
}
\begin{document}
\begin{tikzpicture}
\draw (0,0) pic (A) {circle vertically split={$a$}{$b$}}
(2,2) pic (B) {circle vertically split={Hello}{World}}
(2,-1) pic (C) {circle vertically split={Hello}{$b$}};
\draw[->, blue] (A-shape) -- (B-shape);
\draw[blue, dotted] (C-shape.north east) -- (B-shape.south east);
\draw[->, red] (A-right) to[out=0,in=90] (C-right.north);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usepackage{tkz-euclide}
\usepackage{pgfplots}
\usepgfplotslibrary{polar}
\usepgflibrary{shapes.geometric}\usetikzlibrary{calc}
\usetikzlibrary{quotes,angles}
\usepackage{amssymb}
\pgfplotsset{my style/.append style={axis x line=middle, axis y line= middle, xlabel={$x$}
, ylabel={$y$}, axis equal }}
\begin{document}
\begin{tikzpicture}
[scale=0.85]\draw[<->, gray, thick] (-4, 0) -- (4, 0);
\draw[->, gray, thick] (0, 0) -- (0, 3.2);
\draw[gray, thick] (0, 0) -- (0, 3.2);
\draw[blue, thick] (-2, 0) -- (3, 3);
\draw[blue, thick] (3, 3) -- (4, 3.6);
\draw[blue, thick] (2, 0) -- (3.5, 3.1);
\draw[blue, thick] (3.5, 3.1) -- (4, 4.13333);
\filldraw[black] (3,3) circle (2pt) node[anchor=north] {(x,y)};
\filldraw[red] (3.5,3.1) circle (2pt) node[anchor=west] {(x1,y1)};
\filldraw[green] (3.636,3.382) circle (2pt) node[anchor=east] {(x2,y2)};
\draw[<->, red, thick] (-2, -0.2) -- (0, -0.2);
\draw (-2, -0.4) node {A};
\draw (2, -0.4) node {B};
\draw (0, -0.4) node {O};
\draw (4, -0.2) node {X axis};
\draw (0, 2.8) node {Y axis};
\draw (-1, -0.2) node {d};
\draw[<->, red, thick] (2, -0.2) -- (0, -0.2);
\draw (1, -0.2) node {d};
\draw (1, 2) node {$r_1$};
\draw (2.3, 1.5) node {$r_2$};
\draw (-1.5, 0.15) node {$\alpha_1$};
\draw (-1.3, 0) arc [start angle=0, end angle=5, x radius=5, y radius =5] ;
\draw (2.5, 0.15) node {$\alpha_2'$};
\draw (2.7, 0) arc [start angle=0, end angle=50, x radius=1, y radius =1] ;
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}
\ctikzset{tripoles/mos style=arrows}
\ctikzset{transistors/arrow pos=end}
\draw (0,0) node[npn, ](npn){};
\draw (2,0) node[pnp, ](npn){};
\draw (0,-2) node[nmos, ](npn){};
\draw (2,-2) node[pmos, ](npn){};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tkz-euclide}
\tkzSetUpLine[line width=.2pt,color=black]\tikzset{every picture/.style={line width=.2pt}
}
\begin{document}
\begin{tikzpicture}[scale=.6]
\tkzDefPoint(0,0){A}\tkzDefPoint(8,0){B}\tkzDefGoldRectangle(A,B)\tkzGetPoints{C}{D}\tkzDefGoldRectangle(B,C)\tkzGetPoints{E}{F}\tkzDefGoldRectangle(C,E)\tkzGetPoints{G}{H}\tkzDrawPolygon(A,B,C,D)\tkzDrawSegments(E,F G,H)
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsfonts,amssymb,amsthm,tikz}
\begin{document}
\begin{tikzpicture}[scale=0.85,samples=200,>=latex]
\draw[->](-8,0)--(-4,0);
\draw[->](-7.5,-1.5)--(-7.5,1.5);
\node[below]at(-3.7,0){$Z_-$};
\node[left]at(-7.5,1.5){$\dot{Z}_-$};
\draw[->,domain=-1.6:1]plot(-6.6+\x*\x,{rad(atan(\x))/1.5});
\draw[domain=1:1.6]plot(-6.6+\x*\x,{rad(atan(\x))/1.5});
\node[right]at(-4,0.75){$h_0$};
\draw[->,blue,domain=-1.75:1]plot(-7.1+\x*\x,{rad(atan(\x))*1.2});
\draw[blue,domain=1:1.75]plot(-7.1+\x*\x,{rad(atan(\x))*1.2});
\node[right]at(-4,1.25){$h$};
\draw[->,domain=-1.85:1]plot(-7.4+\x*\x,{rad(atan(\x))*1.5});
\draw[domain=1:1.85]plot(-7.4+\x*\x,{rad(atan(\x))*1.5});
\node[right]at(-4,1.75){$h_1$};
\draw[red,domain=1.2:1.75]plot(-7.25+\x*\x,{rad(atan(\x))*(1+\x*sin(\x*1200)/15)});
\draw[->](-2,0)--(2,0);
\draw[->](-1.5,-1.5)--(-1.5,1.5);
\node[below]at(2.3,0){$Z$};
\node[left]at(-1.5,1.5){$\dot{Z}$};
\draw[->,domain=-1.5:1]plot(-0.3+\x*\x,{rad(atan(\x))/2});
\draw[domain=1:1.5]plot(-0.3+\x*\x,{rad(atan(\x))/2});
\node[right]at(2,0.5){$h_0$};
\draw[->,domain=-1.65:1]plot(-0.75+\x*\x,{rad(atan(\x))});
\draw[domain=1:1.65]plot(-0.75+\x*\x,{rad(atan(\x))});
\node[right]at(2,1){$h$};
\draw[->,domain=-1.75:1]plot(-1.1+\x*\x,{rad(atan(\x))*1.4});
\draw[domain=1:1.75]plot(-1.1+\x*\x,{rad(atan(\x))*1.4});
\node[right]at(2,1.5){$h_1$};
\draw[red,domain=1.2:1.75]plot(-1.25+\x*\x,{rad(atan(\x))*(1+\x*sin(\x*1200)/15)});
\draw[->](4,0)--(8,0);
\draw[->](4.5,-1.5)--(4.5,1.5);
\node[below]at(8.5,0){$Z_+$};
\node[left]at(4.5,1.5){$\dot{Z}_+$};
\draw[->,domain=-1.45:1]plot(5.9+\x*\x,{rad(atan(\x))/2.5});
\draw[domain=1:1.45]plot(5.9+\x*\x,{rad(atan(\x))/2.5});
\node[right]at(8,0.25){$h_0$};
\draw[->,blue,domain=-1.6:1]plot(5.5+\x*\x,{rad(atan(\x))*0.8});
\draw[blue,domain=1:1.6]plot(5.5+\x*\x,{rad(atan(\x))*0.8});
\node[right]at(8,0.75){$h$};
\draw[->,domain=-1.75:1]plot(5+\x*\x,{rad(atan(\x))*1.3});
\draw[domain=1:1.75]plot(5+\x*\x,{rad(atan(\x))*1.3});
\node[right]at(8,1.25){$h_1$};
\draw[red,domain=1.2:1.75]plot(4.75+\x*\x,{rad(atan(\x))*(1+\x*sin(\x*1200)/15)});
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,calc}
\begin{document}
\begin{tikzpicture}
\coordinate (a1) at (3,-0.5,0);
\coordinate (a2) at (2,2,0);
\coordinate (a3) at (1,0,-1);
\draw[dashed,fill opacity=0.5,fill=green!10] (0,0,0) -- (a1) -- ($(a1) + (a2)$) -- (a2) -- cycle;
\draw[dashed,fill opacity=0.5,fill=green!10] (a3) -- ($(a3) + (a1)$) -- ($(a3) + (a1) + (a2)$) -- ($(a3) + (a2)$) -- cycle;
\draw[dashed,fill opacity=0.5,fill=green!10] (0,0,0) -- (a2) -- ($(a2) + (a3)$) -- (a3) -- cycle;
\draw[dashed,fill opacity=0.5,fill=green!10] (a1) -- ($(a1) + (a2)$) -- ($(a1) + (a2) + (a3)$) -- ($(a1) + (a3)$) -- cycle;
\draw[thick,->] (0,0,0)--(a1) node[right]{$a^1$};
\draw[thick,->] (0,0,0)--(a2) node[above]{$a^2$};
\draw[thick,->] (0,0,0)--(a3) node[above left=-0.1cm]{$a^3$};
\draw (0,0,0) node[below]{0};
\draw (3.15,1,0.5) node[]{$\mathcal{P}(a^1,a^2,a^3)$};
\draw[->] (7,0,0) -- +(1,0,0) node[right]{$x$};
\draw[->] (7,0,0) -- +(0,1,0) node[right]{$y$};
\draw[->] (7,0,0) -- +(0,0,1) node[right]{$z$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
\begin{tikzpicture}
\begin{axis}[y=2cm]
\addplot [
blue,
mark color=blue!50!white,
mark=halfcircle*
] coordinates {
(-2,0) (-1,1) (0,0) (1,1) (2,0)
};
\addplot [
red,
mark color=red!50!white,
mark=halfsquare*,
] coordinates {
(-2,-0.1) (-1,0.9) (0,-0.1) (1,0.9) (2,-0.1)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\tikzset{>=stealth}
\begin{document}
\tikz\datavisualization data group{lines}={data point[x=0,y=0,set=normal]data point[x=2,y=2,set=normal]data point[x=0,y=1,set=heated]data point[x=2,y=1,set=heated]data point[x=0.5,y=1.5,set=critical]data point[x=2.25,y=1.75,set=critical]};
\tikzdvdeclarestylesheetcolorseries{greens}{hsb}{0.3,1.3,0.8}{0,-.4,-.1}\tikz\datavisualization[school book axes,visualize as line=normal,visualize as line=heated,visualize as line=critical,style sheet=greens]data group{lines};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{xfp}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tkz-base}
\usepackage{tkz-euclide}
\usetikzlibrary{calc,patterns,patterns.meta,arrows.meta,decorations.pathreplacing,decorations.markings,backgrounds,shapes.geometric,positioning,intersections,through,angles,quotes}
\providecolor{teal}{rgb}{0.0, 0.5, 0.5}\tkzSetUpColors[background=white,text=black]\tkzSetUpPoint[size=2,color=black,fill=black]\tkzSetUpLine[line width=.2pt,color=teal]\tikzset{every picture/.style={line width=.2pt}
,new/.style={color=orange,line width=.2pt},label style/.append style={below,color=teal,font=\scriptsize}}
\begin{document}
\begin{tikzpicture}
\tkzDefPoints{0/0/O_1,0/1/O_2,0/3/A}\tkzDefPoint(15:3){F}\tkzDefPointBy[symmetry=center O_1](F)\tkzGetPoint{E}\tkzDefLine[parallel=through O_2](E,F)\tkzGetPoint{x}\tkzInterLC(x,O_2)(O_2,A)\tkzGetPoints{D}{C}\tkzDrawCircles(O_1,A O_2,A)\tkzDrawSegments[new](O_1,A E,F C,D)\tkzDrawSegments[purple](A,E A,F)\tkzDrawPoints(A,O_1,O_2,E,F,C,D)\tkzLabelPoints(A,O_1,O_2,E,F,C,D)
\end{tikzpicture}
\end{document}
\documentclass[border=0pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds,arrows.meta,fit}
\begin{document}
\begin{tikzpicture}[
>={Stealth[inset=0pt,length=7pt]},
background rectangle/.style={
fill=brown!50!orange!50,
},
show background rectangle,
]
\def\Dyckpath(#1)(#2)[#3][#4](#5)#6{
\begin{scope}[shift={(#1)}]
\draw[black!80,step=1,line width=0.5pt] (0,0) grid (#3,#4);
\coordinate (temp) at (0,0); \node(a) at (0,0){}; \node(b) at (#3,#4){};
\node[fit=(a)(b),label={[anchor=west]north west:#2},inner ysep=10pt](#2){};
\foreach \dir in {#6}{
\draw[->,line width=1.5pt] (temp) -- ++(90*\dir:1) coordinate (temp);}
\foreach \value [count=\j] in {0,1,...,#5}{
\ifnum\value>#3 \draw[fill](\value,-0.5) node(#2-\j) {\j} ++(0,0.5) circle (1pt);
\else \draw[fill](\value,-0.5) node(#2-\j) {\j}; \fi
}
\end{scope}
}
\Dyckpath(0,0)(Graph1)[4][4](4){1,1,1,1,0,0,0,0}
\Dyckpath(6,0)(Graph2)[4][4](4){1,1,1,0,1,0,0,0}
\Dyckpath(12,0)(Graph3)[4][4](4){1,1,0,1,1,0,0,0}
\draw[->] (Graph1) -- (Graph2);
\draw[->] (Graph2) -- (Graph3);
\Dyckpath(0,-6)(Graph1-b)[3][3](4){1,1,1,0,0,0}
\Dyckpath(0,-10)(Graph1-c)[2][2](4){1,1,0,0}
\draw[->] (Graph1-3) -- ++(0,-1) -| (Graph1-b);
\draw[->] (Graph1-b-2) |- ++(1.7,-0.5) |- (Graph1-c.0);
\draw[->,shorten >=15pt] (Graph1-5) -- (Graph1-b-5);
\draw[->,shorten >=15pt] (Graph1-b-4) -- (Graph1-c-4);
\Dyckpath(6,-6)(Graph2-b)[4][3](5){1,1,0,1,0,0,0}
\Dyckpath(12,-10)(Graph3-b)[3][7](5){1,1,1,1,0,1,1,0,1,0}
\draw[->] (Graph3-b) -| (Graph3-5);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\tikzset{font=\small,
point/.style={fill, circle, inner sep=1.2pt},
>={Straight Barb[round,angle=60:1.2mm 1]}
}
\begin{document}
\begin{tikzpicture}[scale=1.8]
\def\ang{-10}
\def\th{.4}
\draw[->] (-2,0) -- (3.5,0) node[below, font=\normalsize] {$x_1$};
\draw[->] (0,-2) -- (0,3) node[right, font=\normalsize] {$x_2$};
\begin{scope}[rotate=\ang]
\foreach \x in {-2,-1,...,2} {
\draw (\x,-1.5) -- (\x,0) node[point]{} -- (\x,2.5)
(\x+\th,-1.5) -- (\x+\th,0) node[point]{} -- (\x+\th,2.5);
\path (\x+\th/2,1) node{$tF_-$} (\x+1/2+\th/2,1) node{$tF_+$};
\path[every node/.style={below, fill=white, inner sep=2pt, outer sep=3pt, fill opacity=.85, text opacity=1.}]
(\x,0) node[rotate=\ang]{\x\mathstrut}
(\x+\th,0) node[rotate=\ang]{\ifnum \x=0 $\theta\mathstrut$ \else $\x{+}\theta\mathstrut$ \fi};
};
\draw (3,-1.5) -- (3,0) node[point]{}
node[below, fill=white, inner sep=2pt, outer sep=3pt, fill opacity=.85, text opacity=1., rotate=\ang]{$3\mathstrut$} -- (3,2.5);
\path[above]
(0,2.5) node[yshift=1mm]{$x\cdot\nu=0$}
(\th,2.5) node{$x\cdot\nu=\theta$}
(1,2.5) node{$x\cdot\nu=1$}
(2,2.5) node{$x\cdot\nu=2$};
\draw[->, very thick] (0,0) -- (1,0) node[above left]{$\nu$};
\draw[dashed] (-2.25,0) -- (3.5,0);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[european]
\fill[color=blue] (-1,-1) rectangle (4,1);
\draw[color=white] (0,0) to[R, o-o] ++(3,0);
\end{circuitikz}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[siunitx, RPvoltages]{circuitikz}
\begin{document}
\begin{circuitikz}[scale=0.8, transform shape]
\draw (0,0) node [nigfetebulk](T1){T1}
(T1.S) node[ground]{}
(T1.bulk) -- ++(0.5, 0) node[vee]{};
\draw (2,0) node [nigfetebulk, legacy transistors text](T2){T2}
(T2.S) node[ground]{}
(T2.bulk) -- ++(0.5, 0) node[vee]{};
\end{circuitikz}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xbar, enlargelimits=0.15]
\addplot [draw=blue,
pattern=horizontal lines light blue,
] coordinates {
(10,5) (15,10) (5,15) (24,20) (30,25)
};
\addplot [draw=black,
pattern=horizontal lines dark blue,
] coordinates {
(3,5) (5,10) (15,15) (20,20) (35,25)
};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath,amsthm,amsfonts,amssymb,amscd,amsxtra,mathrsfs,amstext}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{width=18em,every axis/.append style={axis lines=center,ylabel style={at={(ticklabel cs:0.5)},rotate=90,anchor=south},xlabel style={at={(ticklabel cs:0.5)},anchor=north}}}
\usepackage{mathrsfs,threeparttable,color,soul,colortbl,hhline,rotating,array,multirow,makecell}
\begin{document}
\begin{tikzpicture}[every mark/.append style={scale=0.6}]
\begin{axis}[xlabel={\small Iteration (\(k\))},ylabel={\small $\|y_A^k-y_B^k\|$},width=0.3\textwidth]
\addplot coordinates {(1,3.0317506015237115) (2,0.6190891105945319) (3,0.14441323236024872) (4,0.06254912707212242) (5,0.05041523783196307) (6,0.048989409031250465) (7,0.0488303725771877) (8,0.048812972513414536) (9,0.04881112139095212) (10,0.04881093080408765) (11,0.04881091180188092) (12,0.048810909961900996) (13,0.048810909788748066) (14,0.04881090977278441) (15,0.048810909771329125) (16,0.04881090977754143) (17,0.04881090978754908) (18,0.0488109097716184) (19,0.048810909771186954) (20,0.04881090977123197) (21,0.048810909781918425) (22,0.048810909771187516) (23,0.038389842802694626) (24,0.0)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning,shapes,snakes}
\begin{document}
\begin{tikzpicture}
\node[anchor=west] at (-1.0,4.0) {Neuron B};
\node[anchor=mid] at (2.0,3.5) {Input};
\draw (0.000,-0.5)--(-0.125,-0.5);
\node[anchor=mid east] at (-0.180,-0.5) {-0.2};
\draw (0.000,0.0)--(-0.125,0.0);
\node[anchor=mid east] at (-0.180,0.0) {0.0};
\draw (0.000,0.5)--(-0.125,0.5);
\node[anchor=mid east] at (-0.180,0.5) {0.2};
\draw (0.000,1.0)--(-0.125,1.0);
\node[anchor=mid east] at (-0.180,1.0) {0.4};
\draw (0.000,1.5)--(-0.125,1.5);
\node[anchor=mid east] at (-0.180,1.5) {0.6};
\draw (0.000,2.0)--(-0.125,2.0);
\node[anchor=mid east] at (-0.180,2.0) {0.8};
\draw (0.000,2.5)--(-0.125,2.5);
\node[anchor=mid east] at (-0.180,2.5) {1.0};
\draw (0.5,-0.5)--(0.5,-0.6);
\node[anchor=mid] at (0.5,-0.798) {2};
\draw (1.1,-0.5)--(1.1,-0.6);
\node[anchor=mid] at (1.1,-0.798) {4};
\draw (1.7,-0.5)--(1.7,-0.6);
\node[anchor=mid] at (1.7,-0.798) {6};
\draw (2.3,-0.5)--(2.3,-0.6);
\node[anchor=mid] at (2.3,-0.798) {8};
\draw (2.9,-0.5)--(2.9,-0.6);
\node[anchor=mid] at (2.9,-0.798) {10};
\draw (3.5,-0.5)--(3.5,-0.6);
\node[anchor=mid] at (3.5,-0.798) {12};
\draw (0.0,3.0)--(0.0,-0.5)--(4.0,-0.5);
\draw [red] (0.0,0.0)--(0.1,0.0)--(0.1,0.4)--(0.3,0.4)--(0.3,0.0)--(0.4,0.0)--(0.4,0.4)--(0.6,0.4)--(0.6,0.0)--(0.7,0.0)--(0.7,0.4)--(0.9,0.4)--(0.9,0.0)--(1.0,0.0)--(1.0,0.4)--(1.2,0.4)--(1.2,0.0)--(1.3,0.0)--(1.3,0.4)--(1.5,0.4)--(1.5,0.0)--(1.6,0.0)--(1.6,-0.2)--(1.8,-0.2)--(1.8,0.0)--(1.9,0.0)--(1.9,-0.2)--(2.1,-0.2)--(2.1,0.0)--(2.2,0.0)--(2.2,-0.2)--(2.4,-0.2)--(2.4,0.0)--(2.5,0.0)--(2.5,-0.2)--(2.7,-0.2)--(2.7,0.0)--(2.8,0.0)--(2.8,-0.2)--(3.0,-0.2)--(3.0,0.0)--(3.1,0.0)--(3.1,-0.2)--(3.3,-0.2)--(3.3,0.0)--(3.4,0.0)--(3.4,-0.2)--(3.6,-0.2)--(3.6,0.0)--(3.7,0.0)--(3.7,-0.2)--(3.9,-0.2)--(3.9,0.0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\tikzset{
background grid/.style={thick,draw=red,step=.5cm},
background rectangle/.style={rounded corners,fill=yellow}
}
\begin{document}
\begin{tikzpicture}[framed,gridded]
\draw (0,0) ellipse (10mm and 5mm);
\end{tikzpicture}
\end{document}
\documentclass[margin=2mm,tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.14}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
axis line style={draw=none},
tick style={draw=none},
ylabel = {Exabytes\\ per month},
ylabel style={align=center,rotate=-90},
]
\addplot+[ybar] plot coordinates {(0,3) (1,2) (2,4) (3,1) (4,2)};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.18}
\usetikzlibrary{spy,intersections,decorations.markings,decorations.pathmorphing,decorations.pathreplacing,decorations.footprints,shapes.arrows,shapes.geometric,matrix,positioning,calc,patterns,arrows.meta,backgrounds,fit,fadings}
\usepgfplotslibrary{fillbetween,ternary,smithchart,patchplots,polar,colormaps,colorbrewer,dateplot,units,groupplots,statistics,decorations.softclip}
\usepackage{amsmath,amssymb}
\pgfplotsset{table/search path={.,plotdata}
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[y=1.5cm, ymax=2]\addplot+[boxplot]table[row sep=\\,y index=0] {data\\1\\ 2\\ 1\\ 5\\ 4\\ 10\\7\\ 10\\ 9\\ 8\\ 9\\ 9\\}[above]node at (boxplot box cs: \boxplotvalue{lower whisker},1) {\pgfmathprintnumber{\boxplotvalue{lower whisker}}}node at (boxplot box cs: \boxplotvalue{lower quartile},1) {\pgfmathprintnumber{\boxplotvalue{lower quartile}}}node[left] at (boxplot box cs: \boxplotvalue{median},0.5) {\pgfmathprintnumber{\boxplotvalue{median}}}node at (boxplot box cs: \boxplotvalue{upper quartile},1) {\pgfmathprintnumber{\boxplotvalue{upper quartile}}}node at (boxplot box cs: \boxplotvalue{upper whisker},1) {\pgfmathprintnumber{\boxplotvalue{upper whisker}}};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\begin{axis}\addplot {x*x};
\newcommand*{\VerticalPos}{12}\coordinate (Left) at ($(current axis.left of origin) +(axis direction cs: 0,\VerticalPos)$);
\coordinate (Right) at ($(current axis.right of origin)+(axis direction cs: 0,\VerticalPos)$);
\draw [ultra thick, dotted, draw=red] (Left) -- (Right) node[pos=0.5, above] {$y=\VerticalPos$};
\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}
\definesubmol\xx{C(-[::+90]H)(-[::-90]H)}
\chemfig{[:15]H-!\xx-!\xx-!\xx-!\xx-H}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{
datavisualization,
datavisualization.formats.functions
}
\begin{document}
\begin{tikzpicture}
\datavisualization [scientific axes=outer ticks,
visualize as smooth line]
data [format=function] {
var x : interval [-12:12];
func y = \value x*\value x*\value x;
};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{tikz}
\usetikzlibrary{datavisualization}
\begin{document}
\tikz \datavisualization [
scientific axes=clean,
x axis={attribute=time, ticks={tick unit=ms},
label={elapsed time}},
y axis={attribute=v, ticks={tick unit=m/s},
label={speed of disc}},
all axes=grid,
visualize as line]
data {
time, v
0, 0
1, 0.001
2, 0.002
3, 0.004
4, 0.0035
5, 0.0085
6, 0.0135
};
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage[utf8]{inputenc}
\usepackage{amsfonts,amsmath,amsthm,amssymb}
\usepackage{xcolor}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node (0) at (0,-1) {};
\node (1) at (-3, 0) {};
\node (2) at (-2, 0) {};
\node (3) at (-1, 0) {};
\node (4) at (1, 0) {};
\node (5) at (2, 0) {};
\node (6) at (3, 0) {};
\node (l1) at (-3,.5) {$s_1$};
\node (l0) at (0,-.5) {$s_0$};
\node (l2) at (-2,.5) {$s_2$};
\node (l3) at (-1,.5) {$s_3$};
\node (l4) at (1, .5) {$s_{n-2}$};
\node (l5) at (2, .5) {$s_{n-1}$};
\node (l6) at (3, .5) {$s_n$};
\draw[-] (1) -- (2);
\draw[-] (2) -- (3);
\draw[loosely dotted, ultra thick] (3) -- (4);
\draw[-] (4) -- (5);
\draw[-] (5) -- (6);
\draw[-] (0) -- (1);
\draw[-] (0) -- (6);
\draw[color = black ] (1) circle (3pt);
\draw[color = black ] (2) circle (3pt);
\draw[color = black ] (3) circle (3pt);
\draw[color = black ] (4) circle (3pt);
\draw[color = black] (5) circle (3pt);
\draw[color = black] (6) circle (3pt);
\draw[color = black] (0) circle (3pt);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\draw (0,0) circle [radius=1cm];
\end{tikzpicture}
\end{document}