JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc, shapes.geometric}

\newcommand{\tenS}{\ensuremath{\mathcal{S}}}
\newcommand{\tenP}{\ensuremath{\mathcal{P}}}
\newcommand{\tenQ}{\ensuremath{\mathcal{Q}}}
\newcommand{\tenN}{\ensuremath{\mathcal{N}}}

\begin{document}

\begin{tikzpicture}
    \draw plot [smooth, tension=1.5] coordinates {(-0,-1.5) (-1.5/2,0) (-0,1.5)};
    \node[] at (-1.5/2 - 0.25, 0) {$d$};

    \node[draw, circle, fill=white] (S) at (-4,0) {$\tenS$};
    \node[draw, circle, fill=white] (P) at (0,-1.5) {$\tenP$};
    \node[draw, circle, fill=white] (Q) at (0,1.5) {$\tenQ$};
    \node[draw, circle, fill=white] (N) at (0,0) {$\tenN$};

    \draw[-] (P) -- (N) node[midway, right] {$D$};
    \draw[-] (N) -- (Q) node[midway, right] {$D$};

    \draw[-] (P) -- ++(1,0) node[right] {$p$};
    \draw[-] (Q) -- ++(1,0) node[right] {$q$};
    \draw[-] (N) -- ++(1,0) node[right] {$n(n+1)/2$};

    \draw[-] (S) -- ++(0,-1) node[below] {$p$};
    \draw[-] (S) -- ++(0,1) node[above] {$q$};
    \draw[-] (S) -- ++(-1,0) node[left] {$n(n+1)/2$};

    \draw[->, very thick] (-3.25,0) -- (-1.5,0);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows.meta}

\newcommand{\rectanglepath}{-- +(1cm,0cm) -- +(1cm,1cm) -- +(0cm,1cm) -- cycle}

\begin{document}
\begin{tikzpicture}
  \begin{scope}
    \node[draw,minimum size=4cm,regular polygon,regular polygon sides=5] (a) {};
    \draw (a.corner 2) -- node[above] {$1$} (a.corner 5);
    \draw (a.corner 2) -- node[below=2pt] {$2$} (a.corner 4);
    \draw[color=red, very thick] (a.corner 1) -- node[right=.1pt,scale=1.2] {$\gamma$} (a.corner 3);
    \draw (a.corner 2) node[left=4pt]{$1$};
    \draw (a.corner 4) node[below]{$3$};
    \draw (a.corner 5) node[right]{$4$};
    \draw (a.corner 1) node[above,red]{$s=0$};
    \draw (a.corner 3) node[below,red]{$t=2$};
    \draw (a.side 3) node[below]{$e$};
    \draw (a.side 2) node[left]{$a$};
    \draw (a.side 1) node[above]{$b$};
    \draw (a.side 4) node[right]{$d$};
    \draw (a.side 5) node[above]{$c$};
    \draw (a.side 3) node[above=5pt]{\tiny $\theta_3$};
    \draw (a.side 5) node[left=8pt]{\tiny $\theta_1$};
    \draw (a.side 4) node[left=8pt]{\tiny $\theta_2$};
  \end{scope}
  \begin{scope}[scale=1.3, xshift=3.8cm, yshift=-1cm]
    \draw (0,0) \rectanglepath;
    \draw (1,0) \rectanglepath;
    \draw (-0.2,0.5) node{$b$};
    \draw (0.5,-0.2) node{$c$};
    \draw (1.5,-0.2) node{$1$};
    \draw (2.2,0.5) node{$a$};
    \draw (1.2,0.5) node{$d$};
    \draw (0.5,1.2) node{$2$};
    \draw (1.5,1.2) node{$e$};
    \draw (0.2,0.2) node{\tiny $\theta_1$};
    \draw (0.8,0.8) node{\tiny $\theta_2$};
    \draw (1.2,0.2) node{\tiny $\theta_2$};
    \draw (1.8,0.8) node{\tiny $\theta_3$};
    \draw (0.5,0.5) node{\Large $1$};
    \draw (1.5,0.5) node{\Large $2$};
  \end{scope}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    xlabel={Response length, in tokens.},
    ylabel={Hidden payload length, in bits.},
    xmin=0, xmax=120,
    ymin=0, ymax=25,
    xtick={20,40,60,80,100},
    ytick={0,5,10,15,20},
    ymajorgrids=true,
    grid style=dashed,
    nodes near coords,
    nodes near coords align={vertical},
    every node near coord/.append style={anchor=south, xshift=-8pt},
]

\addplot[
    color=blue,
    mark=square,
    ]
    coordinates{
    (20,4.19)(40,8.01)(60,11.65)(80,14.75)(100,17.87)
    };

\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[font=\small]
    \foreach \line in {1,2,...,4} {
        \begin{scope}[yshift=-\line cm]
            \node at (0,0) {\normalsize\textbf{\line}};
            \foreach \count/\desc in {1/A, 2/B, 3/C, 4/D, 5/E} { 
                \node at ({\count * 0.5}, 0.4) {\desc};
                \node[draw,circle,inner sep=1pt] at ({\count * 0.5},0) {\count};
            }
        \end{scope}
    }
\end{tikzpicture}
\end{document}
\documentclass[border=5em]{standalone}
\usepackage{tikz}
\usepackage[version=3]{mhchem}
\usetikzlibrary{calc,positioning}
\begin{document}
\begin{tikzpicture}
  \node (firstleft) {\ce{2Na}};
  \node [right =of firstleft] (secondleft) {\ce{Cl2}};
  \node [right =of secondleft] (firstright) {\ce{2Na^+}};
  \node [right =of firstright] (secondright) {\ce{2Cl^-}};
  \node at ($(firstleft)!.5!(secondleft)$) {$+$};
  \node at ($(secondleft)!.5!(firstright)$) {\ce{->}};
  \node at ($(firstright)!.5!(secondright)$) {$+$};
  \node [above =of firstleft] (startox) {};
  \node [above =of firstright] (endox) {};
  \node [below =of secondleft] (startred) {};
  \node [below =of secondright] (endred) {};
  \draw [->] (firstleft.north) -- (startox.south) -- node[above] {Oxidation} (endox.south) -- (firstright.north);
  \draw [->] (secondleft.south) -- (startred.north) -- node[below] {Reduction} (endred.north) -- (secondright.south);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{pgfplotstable}

\pgfplotstableread[col sep=comma,header=false]{
Category 1,6,0,0
Category 2,2,2,0
Category 3,3.5,2.5,4
}\data

\pgfplotstablecreatecol[
    create col/expr={
        \thisrow{1} + \thisrow{2} + \thisrow{3}
    }
]{sum}{\data}

\pgfplotsset{
    percentage plot/.style={
        point meta=explicit,
        every node near coord/.append style={
            align=center,
            text width=1cm
        },
        nodes near coords={
            \pgfmathtruncatemacro\iszero{\originalvalue==0}
            \ifnum\iszero=0
                \pgfmathprintnumber{\originalvalue}$\,\%$\\ \pgfmathprintnumber[fixed zerofill,precision=1]{\pgfplotspointmeta}
            \fi
        },
        nodes near coords align=vertical,
        yticklabel=\pgfmathprintnumber{\tick}\,$\%$,
        ymin=0,
        ymax=100,
        enlarge y limits={upper,value=0.18},
        visualization depends on={y \as \originalvalue}
    },
    percentage series/.style={
        table/y expr=\thisrow{#1}/\thisrow{sum}*100,table/meta=#1
    }
}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    axis on top,
    width=10cm,
    percentage plot,ybar,bar width=0.75cm,
    enlarge x limits=0.25,
    symbolic x coords={Category 1,Category 2,Category 3},
    xtick=data
]
\addplot table [percentage series=1] {\data};
\addplot table [percentage series=2] {\data};
\addplot table [percentage series=3] {\data};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,trees,arrows}

\begin{document}

\begin{tikzpicture}[->,>=stealth',shorten <=0.5pt,
    main/.style={draw,thick,rounded corners, top color=blue!20, bottom color=white,
        minimum width=1cm},
    child/.style={draw,thick,rounded corners, top color=red!20, bottom color=white}]

    \tikzstyle{level 1}=[sibling angle=22.5]

    \node[main] (a) {A} [counterclockwise from=0]
        child { node[child] {1}}
        child { node[child] {2}}
        child { node[child] {3}}
        child { node[child] {4}}
        child { node[child] {5}}
        child { node[child] {6}}
        child { node[child] {7}}
        child { node[child] {8}}
        child { node[child] {9}}
    ;

    \node[main] (ba) [below=of a] {belowA};

    \path (ba) edge (a);

\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\tikzstyle{block} = [inner sep=2mm, rectangle, draw, fill=blue!20]

\node [block] (api) {API};
\node [block, right=1cm of api] (workflow) {Workflow};
\node [block, left=1cm of api] (user) {User};

\draw [->] (user) to (api);
\draw [->] (api) to (workflow);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz,tkz-euclide}
\usepackage{amsmath}
\begin{document}
\begin{tikzpicture}[scale=4]
\def \a{5}
\tkzDefPoint(0,0){O} \tkzDefPoint(1,0){A} \tkzDefPoint(1,1){B}
\tkzDrawSegments(O,A A,B) 
\tkzLabelSegment[below](O,A){1} \tkzLabelSegment[right](A,B){1}
\tkzLabelPoints[below left](O) \tkzLabelPoints[below right](A) \tkzLabelPoints[above right](B)
\pgfmathsetmacro{\endl}{\a-1}
\foreach \i in {0,...,\endl}{ 
\begin{scope}[shift={(\i/\a,\i/\a)}]
    \tkzDrawSegment({0,0},{0,1/5}) 
    \tkzDrawSegment({0,1/5},{1/5,1/5})
    \tkzLabelSegment[left]({0,0},{0,1/5}){$\frac{1}{\a}$} 
\end{scope}
}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows, positioning, matrix}

\begin{document}

\tikzset{
  line/.style = {draw, -triangle 45},
  list/.style = {rectangle, draw, minimum width=6em},
  ptr-box/.style = {rectangle, text width=30em, font=\tiny}
}

\begin{tikzpicture}[align=flush center, font=\small]
  % Place nodes
  \matrix [matrix of nodes, row sep=0em] (age) {
    |[list] (free)| Free Page \\
    |[list] (free2)| Free Page \\
    |[list] (pg6)| Page 6 \\
    |[list] (pg12)| Page 12 \\
    |[list] (pg4)| Page 4 \\
    |[list] (pg8)| Page 8 \\
  };

  \begin{scope}[
    mytext/.style={
      align=center, font=\tiny, xshift=-1em, anchor=north east, inner ysep=-1ex
    }
  ]
    \node [left=of free, mytext] (oldest) {%
      {\small\bfseries oldest\_ptr} \\ Points to pool of \\ free pages.};
    \node [left=of pg6, mytext] (oldest-valid) {%
      {\small\bfseries oldest\_valid\_ptr} \\ Points to oldest valid \\ cache page, else NULL if \\ cache is empty.};
    \node [left=of pg8, mytext] (newest) {%
      {\small\bfseries newest\_ptr} \\ Points to newest valid \\ cache page.};
  \end{scope}

  % Draw edges
  \path [line] (oldest.north east) -- (free);
  \path [line] (oldest-valid.north east) -- (pg6);
  \path [line] (newest.north east) -- (pg8);
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc}

\begin{document}
\begin{tikzpicture}
\node (x) [draw,minimum size=1 cm] at (0,0) {x};
\node (y) [draw,minimum size=1 cm] at (2 cm,2 cm) {y};
\draw[->] (x) -- (y.west);
\end{tikzpicture}
\begin{tikzpicture}
\node (x) [draw,minimum size=1 cm] at (0,0) {x};
\node (y) [draw,minimum size=1 cm] at (2 cm,2 cm) {y};
\draw[->,shorten >=10pt] (x) -- ($ (y.west)!0.5!(y) $);
\end{tikzpicture}
\end{document}
\documentclass[border=5]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\begin{document}
\begin{tikzpicture}
\draw [help lines] (-2, -2) grid (2, 2);
\draw[rotate=45,color=blue,very thick] (0, 0) ellipse (0.82cm and 1.4cm);

\foreach \x/\y in {0/0, 0/1, 1/0, -1/0, 0/-1, 1/-1, -1/1}
\filldraw[black] (\x, \y) circle(1.5pt);

\draw[<->] (-2.0, 0) -- (2.0, 0) node[right]{\footnotesize $X_{1}$};
\draw[<->] (0, -1.5) -- (0, 1.5) node[above]{\footnotesize $X_{2}$};

\foreach \x/\y/\direction in {0/1/above right, 1/0/above right, -1/0/above left, 0/-1/below left, 1/-1/below right, -1/1/above left}
\node [\direction] at (\x,\y) {\tiny $\left(\x, \y\right)$}; 
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tkz-berge}
\usetikzlibrary{3d}

\newcommand\pgfmathsinandcos[3]{%
  \pgfmathsetmacro#1{sin(#3)}%
  \pgfmathsetmacro#2{cos(#3)}%
}

\begin{document}

\pgfmathsetmacro\angFuite{155}
\pgfmathsetmacro\coeffReduc{1}
\pgfmathsinandcos\sint\cost{\angFuite}

\begin{tikzpicture}[current plane/.estyle={cm={1,0,\coeffReduc*\cost,-\coeffReduc*\sint,(0,#1)}}]

\GraphInit[vstyle=Shade]
\SetGraphShadeColor{white}{teal}{gray}

\begin{scope}[current plane=0 cm]
  \grEmptyCycle[Math,prefix=a]{6}
\end{scope}

\begin{scope}[current plane=6 cm]
  \grEmptyCycle[Math,prefix=b]{6}
\end{scope}

\EdgeIdentity*[style={opacity=.3}]{a}{b}{3,4}
\EdgeInGraphSeq{a}{0}{1}  
\EdgeInGraphSeq[style={opacity=.3}]{a}{1}{4}
\Edge(a0)(a5)
\EdgeInGraphLoop{b}{6}
\EdgeIdentity*{a}{b}{0,1,2,5}

\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}

\newcommand\DrawSquare[3][]{%
  \node[inner sep=0pt,outer sep=0pt,draw,rectangle,minimum size=#2,#1] (#3) {}; 
}

\newcommand\FillSquare[3]{%
  \ifnum#2=1\relax
    \fill[#3] ( $ (#1.north west) + (0.5\pgflinewidth,-0.5\pgflinewidth) $ ) rectangle (#1.center);
  \else
  \ifnum#2=2\relax
    \fill[#3] (#1.center) rectangle ( $ (#1.north east) + (-0.5\pgflinewidth,-0.5\pgflinewidth) $ );
  \else
  \ifnum#2=3\relax
    \fill[#3] ( $ (#1.south west) + (0.5\pgflinewidth,0.5\pgflinewidth) $ ) rectangle (#1.center);
  \else
  \ifnum#2=4\relax
    \fill[#3] (#1.center) rectangle ( $ (#1.south east) + (-0.5\pgflinewidth,0.5\pgflinewidth) $ );
  \fi\fi\fi\fi%
}

\newcommand\LabelRegion[3]{%
  \ifnum#2=1\relax
    \node at ( $ (#1.north west)!0.5!(#1.center) $ ) {#3};
  \else
  \ifnum#2=2\relax
    \node at ( $ (#1.north east)!0.5!(#1.center) $ ) {#3};
  \else
  \ifnum#2=3\relax
    \node at ( $ (#1.south west)!0.5!(#1.center) $ ) {#3};
  \else
  \ifnum#2=4\relax
    \node at ( $ (#1.south east)!0.5!(#1.center) $ ) {#3};
  \fi\fi\fi\fi%
}

\newcommand\DrawLines[1]{%
  \draw (#1.north) -- (#1.south);
  \draw (#1.west) -- (#1.east);
}

\begin{document}
\begin{tikzpicture}
  \DrawSquare{3cm}{A}
  \FillSquare{A}{1}{red!40}
  \FillSquare{A}{2}{blue!40}
  \FillSquare{A}{3}{green!40}
  \FillSquare{A}{4}{yellow!40}
  \DrawLines{A}
  \LabelRegion{A}{1}{I}
  \LabelRegion{A}{2}{II}
  \LabelRegion{A}{3}{III}
  \LabelRegion{A}{4}{IV}
  \DrawSquare[right=of A]{2cm}{B}
  \FillSquare{B}{1}{gray!40}
  \FillSquare{B}{2}{orange!40}
  \FillSquare{B}{3}{cyan!40}
  \FillSquare{B}{4}{magenta!40}
  \DrawLines{B}
  \LabelRegion{B}{1}{a}
  \LabelRegion{B}{2}{b}
  \LabelRegion{B}{3}{c}
  \LabelRegion{B}{4}{d}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
  \begin{axis}
    \addplot[black, smooth] {1/(1+abs(x))^2};
  \end{axis}
\end{tikzpicture}
\begin{tikzpicture}
  \begin{axis}[samples=1001]
    \addplot[black] {1/(1+abs(x))^2};
  \end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[
  ->, thick,
  alive/.style={inner sep=0pt,minimum size=5mm,rectangle,draw}
]
\newcommand*\living{node[alive]{}} 
\node {}
  child {
    child {\living}
    child {node [alive] {}}
  };
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
    xmin=0, xmax=4,
    ymin=0, ymax=10,
    width=9cm, height=6cm,
    legend pos=north east,
    legend style={},
]
\addplot[only marks, color=red] coordinates {
    (0, 10) (0.5, 8.5) (1, 2) (2, 0.5) (3.5, 1.9)
};
\addlegendentry{Experimental Data Point}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,calc}

\begin{document}
\begin{tikzpicture}[scale=2]
  \tikzset{
    box/.style={draw=black,minimum width=3cm,minimum height=.75cm},
    >=latex,
  }
  \node(io2)[box]{SSD System};
  \node(io3)[box,below=.32cm of io2]{Fuzzy Logic ACC};
  \draw[red,thick,dotted] ($(io2.north west)+(-0.1,0.22)$) rectangle ($(io3.south east)+(0.1,-0.22)$);  
  \coordinate(mid left)at($(io2.west)!.5!(io3.west)$);
  \node(io)[box,rotate=90,left=1cm of mid left,anchor=center]{I/O interface};

  % drawing arrows
  \path(io.south west)--(io.south east) coordinate[pos=.33](x1) coordinate[pos=.67](x2);
  \draw[->](x2)--+(.2,0);
  \draw[<-](x1)--+(.2,0);

  \path(io2.south west)--(io2.south east) coordinate[pos=.33](y1) coordinate[pos=.67](y2);
  \draw[->](y1)--+(0,-.15);
  \draw[<-](y2)--+(0,-.15);

  \path(io.north east)--(io.north west) coordinate[pos=.2](z1) coordinate[pos=.4](z2) coordinate[pos=.6](z3) coordinate[pos=.8](z4);
  \draw[<-](z1)--+(-.5,0) node[anchor=east]{Distance Sensor};
  \draw[<-](z2)--+(-.5,0) node[anchor=east]{Video Input};
  \draw[<-](z3)--+(-.5,0) node[anchor=east]{Set Speed Limit};
  \draw[->](z4)--+(-.5,0) node[anchor=east]{Factored Acceleration};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,arrows}

\begin{document}
\begin{tikzpicture}[>=latex]
\coordinate (A) at (2,5);
\coordinate (B) at (2,0);
\coordinate (C) at (6,5);
\coordinate (D) at (6,0);
\draw[thick] (A)--(B) (C)--(D);
\draw (A) node[above]{\Large Initiator};
\draw (C) node[above]{\Large Receiver};

\coordinate (E) at ($(A)!.1!(B)$);
\draw (E) node[left]{\begin{tabular}{r}
\textit{active close}\\
\verb$FIN_WAIT_1$
\end{tabular}};

\coordinate (F) at ($(C)!.25!(D)$);
\draw (F) node[right]{\begin{tabular}{l}
\verb$CLOSE_WAIT$\\
\textit{passive close}
\end{tabular}};
\draw[->] (E) -- (F) node[midway,sloped,above]{\verb$FIN$};

\coordinate (G) at ($(A)!.4!(B)$);
\draw (G) node[left]{\verb$FIN_WAIT_2$};
\draw[->] (F) -- (G) node[midway,sloped,above]{\verb$ACK$};

\coordinate (H) at ($(C)!.5!(D)$);
\draw (H) node[right]{\verb$LAST_ACK$};

\coordinate (I) at ($(A)!.7!(B)$);
\draw (I) node[left]{\verb$TIME_WAIT_2$};
\draw[->] (H) -- (I) node[midway,sloped,above]{\verb$FIN$};

\coordinate (J) at ($(C)!.9!(D)$);
\draw (J) node[right]{\verb$CLOSED$};
\draw[->] (I) -- (J) node[midway,sloped,above]{\verb$ACK$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\clip(-0.5,-0.5) rectangle (10,7.5);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (3,3)-- (0,0);
\draw [line width=1.2pt] (0,0)-- (6,0);
\draw [line width=1.2pt] (6,0)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (9,3)-- (3,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (3,3)-- (1.5,7);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (1.5,7)-- (1.5,1.5);
\draw [line width=1.2pt] (1.5,7)-- (0,0);
\draw [line width=1.2pt] (1.5,7)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,5)-- (9,3);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,5)-- (2.25,2.25);
\draw [line width=1.2pt,dash pattern=on 2pt off 2pt] (2.25,2.25)-- (9,3);
\draw [line width=1.2pt] (1.5,7)-- (6,0);
\draw [fill=black] (0,0) circle (1.5pt);
\draw[color=black] (-0.13,-0.25) node {$B$};
\draw [fill=black] (3,3) circle (1.5pt);
\draw[color=black] (3.21,3.22) node {$A$};
\draw [fill=black] (6,0) circle (1.5pt);
\draw[color=black] (6.08,-0.25) node {$D$};
\draw [fill=black] (9,3) circle (1.5pt);
\draw[color=black] (9.26,3.05) node {$C$};
\draw [fill=black] (1.5,1.5) circle (1.5pt);
\draw[color=black] (1.67,1.34) node {$H$};
\draw [fill=black] (1.5,7) circle (1.5pt);
\draw[color=black] (1.54,7.28) node {$S$};
\draw [fill=black] (2.25,5) circle (1.5pt);
\draw[color=black] (2.01,4.95) node {$F$};
\draw [fill=black] (2.25,2.25) circle (1.5pt);
\draw[color=black] (2.38,2.04) node {$G$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[>=stealth, auto]
\draw (60:3) -- (0,0) -- (0:3);
\draw (0:1) arc (0:60:1) node[midway,right] {$\beta$};
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,calc,positioning}

\tikzset{
    int/.style={draw, fill=white, minimum size=1.5em},
    sum/.style={draw, fill=white, circle, minimum size=1.5em},
    init/.style={pin edge={to-,thin,black}}
}

\begin{document}
\begin{tikzpicture}[node distance=1.5cm, auto, >=latex']
    \node [int] (kakt) {$K_a K_t$};
    \node [coordinate, left of=kakt] (cs) {};
    \node [sum] (s1) [right of=kakt] {};
    \node [coordinate, above of=s1] (fc) {};
    \node [sum] (s2) [right of=s1] {};
    \node [int] (m) [right of=s2] {$\frac{1}{Js+b}$};
    \node [int] (frict) [above of=m, node distance=1cm] {$F_f(v,F)$};
    \node [int] (v2p) [right of=m, node distance=3cm] {$\frac{1}{s}$};
    \node [coordinate, right of=v2p] (end) {};

    \draw[->] (cs) -- node {$u'$} (kakt);
    \draw[->] (kakt) -- node {$F_m$} (s1);
    \draw[->] (fc) -- node[pos=0.95] {$-$} node[pos=0.2, left] {$F_c$} (s1);
    \draw[->] (s1) -- node[pos=0.4] {$F$} (s2);
    \draw[->] (s2) -- (m);
    \draw[->] (m) -- node[pos=0.3] {$\dot{x}=v$} (v2p);
    \draw[->] (v2p) -- node {$x$} (end);

    % Feedback from v and F to friction block
    \coordinate (v) at ($(m.east)!0.7!(v2p.west)$);
    \coordinate (f) at ($(s1.east)!0.6!(s2.west)$);
    \draw[->] (v) |- (frict);
    \draw[->] (f) |- (frict.west);
    \draw[->] (frict.190) -| node[pos=0.95] {$-$} node[near end] {$F_f$} (s2);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=10pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    axis x line=top,
    axis y line=none,
    bar width=16pt,
    xmax=25,
    xmin=-25,
    ymax=3.5,
    ymin=-1,
    width=9cm,
    height=5cm,
    nodes near coords,
    point meta=explicit symbolic,
    every node near coord/.append style={font=\tiny},
    legend columns=2,
    legend style={
        at={(0.5,0)},
        anchor=north
    }
]
    \addplot[xbar,fill=blue!20,nodes near coords align={left}] plot coordinates{
        (10,0) [18 to 24]
        (15,1) [25 to 34]
        (7,2) [35 to 45]
        (17,3) [>45]
    };
    \addlegendentry{Yes};

    \addplot[xbar,fill=red!20,nodes near coords align={right}] plot coordinates{
        (-11,0) [18 to 24]
        (-13,1) [25 to 34]
        (-15,2) [35 to 45]
        (-8,3) [>45]
    };
    \addlegendentry{No};

    \draw (axis cs:0,-0.5) -- (axis cs:0,4);
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.11}

\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=0:1]
  \addplot[red] {x};
  \addplot {x^2};
  \addplot {x^3};
  \addplot {x^4};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{tikz}
\def\myarrows#1;{\myarrowsaux#1--;}
\def\myarrowsaux#1--#2--#3;{%
  \draw[->, shorten >=1pt, shorten <=1pt] #1--#2;
  \def\myarrowstemp{#3}%
  \ifx\myarrowstemp\empty\else
    \myarrowsaux #2--#3;
  \fi}
\begin{document}
\begin{tikzpicture}
  \myarrows (0,0) -- (1,0) -- (2,0) -- (2,1) -- (1,1) -- (0,1) -- (0,0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9}
\usepgfplotslibrary{units}

\begin{document}
\begin{tikzpicture}
  \begin{semilogyaxis}[
      width=10cm,
      height=5cm,
      grid style={dashed,gray!60},
      ylabel=Y Axis $I$,
      y unit=mV,
      legend style={at={(1,1)},anchor=north east},
      xticklabels={,,}
    ]
    \addplot[smooth,color=orange,mark=x,thick] {exp(x)};
    \addplot[smooth,color=blue,mark=*,thick] {exp(2*x)};
    \legend{8-way,16-way}
  \end{semilogyaxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=7mm]{standalone}
\begin{document}
\begin{tikzpicture}
  \path[draw=orange] (0,0) circle(1cm);
  \draw[ultra thick,|->] (0:-1) -- (0:1);
  \draw[ultra thick,stealth-latex] (90:-1) -- (90:1);
  \node {};
  \draw[ultra thick,stealth-latex] (45:-1) -- (45:1);
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5]{standalone}
\tikzset{%
  do path picture/.style={%
    path picture={%
      \pgfpointdiff{\pgfpointanchor{path picture bounding box}{south west}}%
        {\pgfpointanchor{path picture bounding box}{north east}}%
      \pgfgetlastxy\x\y%
      \tikzset{x=\x/2,y=\y/2}%
      #1
    }
  },
  sin wave/.style={do path picture={    
    \draw [line cap=round] (-3/4,0)
      sin (-3/8,1/2) cos (0,0) sin (3/8,-1/2) cos (3/4,0);
  }},
  cross/.style={do path picture={    
    \draw [line cap=round] (-1,-1) -- (1,1) (-1,1) -- (1,-1);
  }},
  plus/.style={do path picture={    
    \draw [line cap=round] (-3/4,0) -- (3/4,0) (0,-3/4) -- (0,3/4);
  }}
}
\begin{document}
\begin{tikzpicture}[minimum size=0.75cm]
\node [circle, draw, sin wave] at (-1, 0) {};
\node [circle, draw, plus]     at ( 0, 0) {};
\node [circle, draw, cross]    at ( 1, 0) {};
\end{tikzpicture}
\end{document}