JackieLin0123/SciTikZ-Bench huggingface dataset:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, positioning, trees}

\begin{document}
\tikzset{
  base/.style = {rounded corners,
                 text=white, font=\sffamily,
                 minimum width=20ex,
                 align=center},
    L1/.style = {base, fill=teal},
    L2/.style = {base, fill=cyan!80!black},
    L3/.style = {base, fill=cyan!60!black},
   grow=east,
   edge from parent fork right,
   level distance = 37mm,
   level 1/.style = {sibling distance=16mm},
   level 2/.style = {sibling distance = 8mm},
    edge from parent/.style = {draw, semithick, -{Latex}}
}

\begin{tikzpicture}
\node[L1] {Erwartungswert $\mu$}
    child {node[L2] {Merkmal\\ normalverteilt}
        child {node[L3] {Varianz bekannt}}
        child {node[L3] {Varianz unbekannt}}
          }
    child {node[L2] {Merkmal beliebig\\ verteilt}}
;
\end{tikzpicture}

\begin{tikzpicture}
\node[L1] {Varianz $\sigma^2$}
    child {node[L2] {Merkmal\\ normalverteilt}}
;
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw[fill=black!20] (140:1) coordinate (beta) arc (140:-70:1) coordinate (alpha) -- (-70:2) arc (-70:140:2) -- cycle;
\draw (-2.5,0)--(2.5,0) coordinate (x);
\draw (0,-2.5)--(0,2.5);
\fill (1,0) circle (1pt) node[below right] {$c^a$} (2,0) circle (1pt) node[below right] {$c^b$};
\coordinate (o) at (0,0);
\draw[->] (0.4,0) arc (0:-70:0.4) node[midway,below right,inner sep=1pt] {$\alpha$};
\draw[->] (0.6,0) arc (0:140:0.6) node[below right,inner sep=0pt] {$\beta$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{tikz-3dplot}
\usetikzlibrary{intersections}
\begin{document}
\tdplotsetmaincoords{90}{-30}
\begin{tikzpicture}[tdplot_main_coords,bullet/.style={circle,fill,inner sep=1pt}]
 \pgfmathsetmacro{\Radius}{2.5}
 \pgfmathsetmacro{\Angle}{120}
 \begin{scope}[shift={(-4,0,0)},local bounding box=L]
  \draw plot[variable=\x,domain=0:360,smooth] (0,{\Radius*cos(\x)},{\Radius*sin(\x)});
  \draw[top color=gray!20,bottom color=gray!30,middle color=white] 
  plot[variable=\x,domain=90:-90,smooth] (-0.2,{\Radius*cos(\x)},{\Radius*sin(\x)})
  -- plot[variable=\x,domain=-90:90,smooth] (0,{\Radius*cos(\x)},{\Radius*sin(\x)})
  --cycle;
  \foreach \X in {90,140}
  {\draw plot[variable=\x,domain=90:-90,smooth]
  ({-0.1*\Radius*cos(\x)},{cos(\X)*\Radius*sin(\x)},{sin(\X)*\Radius*sin(\x)});}
  \draw plot[variable=\x,domain=0:60,smooth]
  ({-0.1*\Radius*cos(\x)},{cos(\Angle)*\Radius*sin(\x)},{sin(\Angle)*\Radius*sin(\x)})
  node[bullet] (P1){};
  \path ({-0.1*\Radius*cos(-40)},{cos(\Angle)*\Radius*sin(-40)},{sin(\Angle)*\Radius*sin(-40)})
  node[bullet] (P0){};
  \draw (0,0,-1.02*\Radius) -- (0,0,-1.2*\Radius) coordinate (l);
 \end{scope} 
 \begin{scope}[shift={(4,0,0)},local bounding box=R]
  \foreach \X in {90,140}
  {\draw[dashed] plot[variable=\x,domain=90:-90,smooth]
  ({-0.2+0.1*\Radius*cos(\x)},{cos(\X)*\Radius*sin(\x)},{sin(\X)*\Radius*sin(\x)});}
  \draw[dashed] plot[variable=\x,domain=90:270,smooth]
    (-0.2,{\Radius*cos(\x)},{\Radius*sin(\x)});
  \draw[top color=gray!20,bottom color=gray!30,middle color=white] 
  plot[variable=\x,domain=90:-90,smooth] (-0.2,{\Radius*cos(\x)},{\Radius*sin(\x)})
  -- plot[variable=\x,domain=-90:90,smooth] (0,{\Radius*cos(\x)},{\Radius*sin(\x)})
  --cycle;
  \path[name path=left boundary]  plot[variable=\x,domain=90:-90,smooth]
  (-0.2,{\Radius*cos(\x)},{\Radius*sin(\x)});
  \path   ({-0.2+0.1*\Radius*cos(30)},{0},{\Radius*sin(30)}) 
  node[bullet,label=above:$P_2$] (P2){}
  ({-0.2+0.1*\Radius*cos(-30)},{0},{\Radius*sin(-30)}) node[bullet] (P3){};
  \path[name path=ray 1] (P1) -- (P2) coordinate[pos=0.5] (A);
  \path[name path=ray 2] (P2) -- (P0);
  \path[name path=ray 3] (P0) -- (P3);
  \path[name path=ray 4] (P3) -- (P1);
  \path[name intersections={of=left boundary and ray 1,by=i1},
    name intersections={of=left boundary and ray 2,by=i2},
    name intersections={of=left boundary and ray 3,by=i3},
    name intersections={of=left boundary and ray 4,by=i4}];
  \draw[thick,-stealth] (i2) -- (P0) -- (i3) (P1) -- (i1) (P1) -- (A);
  \draw[thick,-stealth,shorten >=1.5cm] (i4) -- (P1);
  \draw[dashed] (i1) -- (P2) -- (i2) (i3) -- (P3) -- (i4);
  \draw plot[variable=\x,domain=0:360,smooth] (0,{\Radius*cos(\x)},{\Radius*sin(\x)});
  \draw (0,0,-1.02*\Radius) -- (0,0,-1.2*\Radius) coordinate (r);
 \end{scope} 
 \draw[stealth-stealth] (l) -- (r) node[midway,fill=white]{$r+\varepsilon$};
\end{tikzpicture} 
\end{document}
\documentclass[border=1mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{backgrounds,positioning,calc}

\begin{document}
\begin{tikzpicture}[>=latex, text height=1.5ex, text depth=0.5ex]
\tikzset{
  c/.style={
    circle,
    thick,
    scale=0.2,
    draw=gray!100,
    fill=white!50
  },
  d/.style={
    rectangle,
    rounded corners=5pt,
    thick,
    text centered,
    text height=0.9em,
    minimum size=1cm,
    draw=gray!100,
    fill=gray!80
  }
}

\matrix[row sep=0.1cm, column sep=0.1cm] {
  \node(A1)[d]{XYZ}; & \node(cA1)[c]{}; & \node(A2)[d]{XYZ}; \\
  \node(cc1)[c]{}; & \node(c)[c]{}; & \node(cc2)[c]{}; \\
  \node(B1)[d]{XYZ}; & \node(cB1)[c]{}; & \node(B2)[d]{XYZ}; \\
};

\begin{scope}[on background layer]
  \path[-, thick] (A1) edge (A2);
  \path[-, thick] (cc1) edge (cc2);
  \path[-, thick] (B1) edge (B2);
  \path[-, thick] (A1) edge (B1);
  \path[-, thick] (cA1) edge (cB1);
  \path[-, thick] (A2) edge (B2);
\end{scope}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.16}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    x tick label style={
        /pgf/number format/1000 sep=},
    ylabel=Year,
    enlargelimits=0.05,
    legend style={at={(0.5,-0.2)},
    anchor=north,legend columns=-1},
    ybar interval=.7,
]
\addplot 
    coordinates {(2012,408184) (2011,408348)
         (2010,414870) (2009,412156) (2008,415838)};
\addplot 
    coordinates {(2012,388950) (2011,393007) 
        (2010,398449) (2009,395972) (2008,398866)};
\legend{Men,Women}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz, margin=3pt]{standalone}
\usetikzlibrary{arrows.meta, positioning, quotes}

\begin{document}
    \begin{tikzpicture}[
        dot/.style = {circle, fill, inner sep=1.6pt, outer sep=0pt, node contents={}},
        every edge/.style = {draw, line width=1pt, -{Stealth[angle=60:3pt 3]}}
    ]
    \node (d) [dot, label=below:$D$];
    \node (c) [dot, label=below:$C$, right=5 of d];
    \node (b) [dot, label=$B$, above=5.4 of c];
    \node (a) [dot, label=$A$, above=5.4 of d];
    %
    \draw   (a) edge ["$e_1$"]  (b)
            (b) edge ["$e_2$"]  (c)
            (c) edge ["$e_3$"]  (d)
            (d) edge ["$e_4$"]  (a);
    \end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\path[->] (1,0) edge[bend left=20] node[above] {$30$} (2,0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[
  circ/.style={circle,draw,inner sep=1pt,minimum size=3.4ex},
  math/.style={execute at begin node=$,execute at end node=$}
]
  \path[nodes={circ,math}]
    (0,0) node(c){c}
    (4,0) node(f){f}
    (4,4) node(e){e}
    (7,2) node(g){g}
    (0,4) node(b){b}
    (-3,2) node(a){a}
    (2,2) node(d){d};
  \draw[line width=0.5pt,nodes={auto,math}]
    (c) -- node{2} (f)
    (f) -- node{3} (e)
    (e) -- node{10} (g)
    (g) -- node{12} (f)
    (f) -- node{9} (d)
    (d) -- node{8} (b)
    (b) -- node{1} (a)
    (a) -- node{5} (c)
    (c) -- node{4} (b)
    (b) -- node{7} (e)
    (e) -- node{11} (d)
    (d) -- node{6} (c);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\usetikzlibrary{arrows.meta,calc}
\pgfplotsset{
    xtick placement tolerance=-1mm,
    ytick placement tolerance=-1mm,
    no marks,
    minor x tick num=1,
    enlarge x limits=false,
    every x tick/.style={thick},
    every y tick/.style={thick},
    tick align=outside,
    axis lines=middle,
    inner axis line style={-},
    clip mode=individual,
    execute at end axis={
        \path[tips=proper] let \p1=($(rel axis cs:1,1)-(axis cs:0,0)$),
         \p2=($(axis cs:0,0)-(rel axis cs:0,0)$)
         in
         \ifdim\x1>0pt
          (axis cs:0,0) edge[-{Latex[length=1.5mm]}]
          ($({rel axis cs:1,0} |- {axis cs:0,0})+($(1.5mm,0)-(0,0)$)$)
         \fi
         \ifdim\x2>0pt
          (axis cs:0,0) edge[-{Latex[length=1.5mm]}]
          ($({rel axis cs:0,0} |- {axis cs:0,0})+($(-1.5mm,0)-(0,0)$)$)
         \fi
         \ifdim\y1>0pt
          (axis cs:0,0) edge[-{Latex[length=1.5mm]}]
          ($({rel axis cs:0,1} -| {axis cs:0,0})+($(0,1.5mm)-(0,0)$)$)
         \fi
         \ifdim\y2>0pt
          (axis cs:0,0) edge[-{Latex[length=1.5mm]}]
          ($({rel axis cs:0,0} -| {axis cs:0,0})+($(0,-1.5mm)-(0,0)$)$)
         \fi;
    }
}

\begin{document}
\begin{tikzpicture}
    \begin{axis}[domain=0:1]
        \addplot+[]{x};
    \end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=3mm]{standalone}
\begin{document}
\begin{tikzpicture}[bullet/.style={fill=cyan,draw,circle,inner sep=2pt},
every label/.style={align=left,font=\small\sffamily}]
 \path (0,4) node[bullet,label={[anchor=south]:{1\\ 12.20}}] (p1){}
 (4,4.4) node[bullet,label={[anchor=south west]:{3\\ 12.20}}] (p2){}
 (2.5,0) node[bullet,label={[anchor=north]:{2\\ 9.80}}] (p3){};
 \draw[orange,thick] (p1) -- (p2) -- (p3);
\end{tikzpicture}
\end{document}
\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usepackage[edges]{forest}
\usetikzlibrary{fit,shadows,backgrounds}
\usepackage{xcolor-material}

\colorlet{cinza}{MaterialGrey600}
\colorlet{vermelho}{MaterialRed400}

\begin{document}

\begin{forest}
for tree={
    anchor=center,
    fill=cinza,
    rounded corners,
    align=center,
    rectangle,
    drop shadow,
    text=white,
    inner sep=6pt,
    l sep=.6cm,
    fork sep=.3cm,
    edge={thick, draw=cinza, rounded corners=1pt},
},
for 1={fork sep = .6cm},
for 3={fork sep = .6cm},
forked edges,
[Presidente, l sep+=2em, fill=MaterialOrange600, alias=pres
    [Departamento\\Comercial
        [Ger. Marketing]
        [Ger. Vendas]
    ]
    [Departamento\\de Produção, alias=dep
        [Ger. Produção]
        [Ger. Compras]
    ]
    [Departamento\\Financeiro, before drawing tree={x+=2.5cm}]
]
\begin{scope}[on background layer]
    \fill[top color=MaterialGreen400, bottom color=MaterialGrey200, inner ysep=1em, inner xsep=1em, outer sep=1pt, rounded corners]
    (current bounding box.north west) rectangle ([yshift=-0.5ex,xshift=0.5ex]current bounding box.south east);
\end{scope}
\end{forest}

\end{document}
\documentclass[tikz]{standalone}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}[
    declare function = { factor = 2; }
]
    \begin{axis}[
        xtickmin = -2*factor,
        xtickmax = 2*factor,
    ]
        \addplot+[blue, no marks, domain = -6:6] {x^2};
    \end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=20pt,tikz]{standalone}
\usepackage[edges]{forest}

\forestset{
  orgchart/.style={
    for tree={edge+=thick, align=center, minimum width=15em, rounded corners},
    where level>=1{if n=3{folder'}{folder}, grow'=0}{for children=forked edge},
    where level=3{}{draw}
  },
}

\forestset{
  folder'/.style={
    parent anchor=-children last, anchor=parent first, calign=child,
    calign primary child=1,
    for children={
      child anchor=-parent,
      xshift={-(n()>1)*isodd(n())*16.5em},
      anchor=parent first,
      edge={rotate/.option=!parent.grow},
      edge path'/.expanded={
        ([xshift={\forestregister{folder indent}}]!u.parent anchor) |- ()
      },
    },
    after packing node={
      if n children=0{}{
        tempdiml=l_sep()-l("!1"),
        tempdims={-abs(max_s("","")-min_s("",""))-s_sep()},
        for children={
          l+=tempdiml,
          s+=tempdims()*(reversed()-0.5)*2,
        },
      },
    },
  },
}

\newcommand{\chartname}[1]{\textbf{#1}}

\begin{document}

\begin{forest}
  orgchart
  [{\chartname{The Boss}\\Provost and \\ Senior Vice President for Academic Affairs}, fill=red!30
    [\chartname{Colleges}, for tree={fill=green!20}, for descendants={minimum height=4em}, thick
      [{Dean,\\College of Business}]
      [{Dean,\\College of Journalism}]
      [{Dean,\\College of Arts and Sciences}]
      [{Dean, College of Engineering}]
    ]
    [\chartname{Library}, for tree={fill=cyan!20}, for descendants={minimum height=4em}, thick
      [{Dean,\\University Libraries}]
    ]
    [\chartname{Provost Office}, for tree={fill=black!20},
        for tree={if={isodd(s())}{grow'=180}{grow'=0}},
        for descendants={minimum height=4em}, thick,
      [{Vice Provost for\\ Faculty Affairs}]
      [{Vice Provost for\\Global Affairs}]
      [{Vice Provost for\\Undergraduate Education}]
      [{Vice Provost for\\Graduate Education}]
      [{Associate Provost\\ for Enrollment Management }, fill=black!12]
      [{Assistant Provost for\\Academic Personnel}, fill=black!7]
    ]
  ]
\end{forest}

\end{document}
\documentclass[margin=3mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}

\begin{document}
\begin{tikzpicture}
\begin{semilogxaxis}[
    axis lines=left,
    xmin=460.46, xmax=4604600,
    ymin=0, ymax=1.15,
    ylabel={\textit{Ganancia} [\textit{Veces}]},
    xlabel={\textit{Frecuencia} [Hz]},
    ylabel style={at={(-0.1,1)}, anchor=south east},
    xlabel style={at={(1,-0.1)}, anchor=north east},
    ytick={1,0.9,...,0.1},
    xtick={460.46,4604.6,46046,460460,4604600},
    xticklabels={$460.46$,$4604.6$,$46046$,$460460$,$4604600$},
    grid=both
]
\addplot [blue, domain=1:4604600, samples=100]
    {1/(2*pi*x*0.000001)/(sqrt((3.456)^2+(1/(2*pi*x*0.000001))^2))};
\end{semilogxaxis}
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usepgfplotslibrary{colorbrewer}
\pgfplotsset{colormap/BuGn-9}

\makeatletter
\def\plotnum{0}
\def\numplots{9}
\pgfplotsset{
    color according to numplots/.style={
        every axis plot/.style={
            /utils/exec={
                \pgfmathsetmacro\safenumberofplot{max(\numplots,2)}
                \pgfmathsetmacro\metavalue{1000*(\plotnum+1)/\safenumberofplot}
            },
            color of colormap=\metavalue of BuGn-9,
        }
    }
}
\makeatother

\begin{document}

\begin{tikzpicture}
    \begin{axis}[color according to numplots]
        \addplot[very thick] coordinates {(0,0)(1,1)};
        \addplot[very thick] coordinates {(1,0)(2,1)};
        \addplot[very thick] coordinates {(2,0)(3,1)};
        \addplot[very thick] coordinates {(3,0)(4,1)};
        \addplot[very thick] coordinates {(4,0)(5,1)};
        \addplot[very thick] coordinates {(5,0)(6,1)};
        \addplot[very thick] coordinates {(6,0)(7,1)};
    \end{axis}
\end{tikzpicture}

\end{document}
\documentclass[border=3mm]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.17}
\usetikzlibrary{arrows.meta}

\begin{document}
\begin{tikzpicture}[>=Stealth]
\begin{axis}[
    axis lines=middle,
    xlabel={$x$}, ylabel={$y$},
    xtick={-3,-2,...,3},
    ytick={0,...,9},
    xmin=-3.5, xmax=3.5,
    ymin=-0.5, ymax=9.5,
    domain=-3:3
]
\addplot [very thick, red, <->] {x*x};
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=2mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{babel}

\begin{document}
\begin{tikzpicture}[line cap=round, line join=round]
  \def\lb{2.5}
  \def\lh{1}
  \def\bb{6}
  \def\bh{3}
  \coordinate (O)   at (0,0);
  \coordinate (Ar1) at (\lb+1,-0.5*\lh-0.5*\bh);
  \coordinate (Ar2) at (\lb+1,0);
  \coordinate (Ar3) at (\lb+1,0.5*\lh+0.5*\bh);
  \draw (0,-\lh) -| (\lb,\lh) -- (0,\lh);
  \draw (0,-\bh) -| (\bb,\bh) -- (0,\bh);
  \draw[dotted] (\lb,-\lh) to[bend left]  (Ar1);
  \draw[dotted] (\lb, \lh) to[bend right] (Ar3);
  \fill (Ar1) circle (1pt) node [right] {$\underline{A}_r$};
  \fill (Ar2) circle (1pt) node [right] {$A_r$};
  \fill (Ar3) circle (1pt) node [right] {$\overline{A}_r$};
  \fill (O)   circle (1pt) node [below left] {$(0,0)$};
  \pgfmathsetseed{3}
  \draw        plot[domain=-\bh:-\lh,samples=6,smooth] ({-0.25*(rand+1)*(\bh+\x)*(\lh+\x)},\x);
  \draw[thick] plot[domain=-\lh:0   ,samples=6,smooth] ({-(rand+1)*\x*(\lh+\x)},\x);
  \draw[thick] plot[domain=0:\lh    ,samples=6,smooth] ({(rand+1)*\x*(\lh-\x)},\x);
  \draw        plot[domain=\lh:\bh  ,samples=6,smooth] ({-0.25*(rand+1)*(\bh-\x)*(\lh-\x)},\x);
  \node (xn) at (-2,\bh)               {$x_n=f(x',t)$};
  \node (dr) at (-2,0.5*\lh)           {$\Delta r$};
  \node      at (0.75,0.5)             {$\Psi_r$};
  \node      at (\bb,\bh) [below left] {$D$};
  \draw[-latex] (xn.south) to [bend right] ++ (2,-0.5);
  \draw[-latex] (dr.north) to [bend left]  ++ (2,0);
  \def\sep{0.1}
  \draw[red,<->] (\lb-\sep,-\lh+\sep) -- (\lb-\sep,\lh-\sep)  node [midway,left]  {$2r^2$};
  \draw[red,<->] (\sep,-\lh-\sep)     -- (\lb-\sep,-\lh-\sep) node [midway,below] {$\sim r$};
  \begin{scope}[shift={(\bb+3,\bh-1)}]
    \draw[-latex] (0,0) -- ( 1  , 0  ) node [right]      {$x_n$};
    \draw[-latex] (0,0) -- ( 0  , 1  ) node [above]      {$t$};
    \draw[-latex] (0,0) -- (-0.7,-0.7) node [below left] {$x'$};
  \end{scope}
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\begin{document}
\begin{tikzpicture}
  \begin{axis}[
      xlabel = $T$,
      smooth, thick,
      domain=0:1.1,
      ymax=2.8,
      axis lines = center,
      every tick/.style = {thick},
      legend cell align=left,
      legend style={font=\tiny}]
    \def\Tc{1}
    \addplot[color=blue, samples=75]{sqrt(3)*(\Tc/x - 1)^(1/2)};
    \addplot[color=red]{sqrt(3)*(x/\Tc)^(3/2)};
    \addplot[color=orange, samples=75]{sqrt(3)*(x/\Tc)^(3/2)*(\Tc/x - 1)^(1/2)};
    \legend{$\sqrt{3} \left(T_c/T - 1\right)^{1/2}$,
      $\sqrt{3} \left(T/T_c\right)^{3/2}$,
      $m_c(T)$}
  \end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usepackage{tkz-berge}

\begin{document}

\begin{tikzpicture}
    \renewcommand*{\VertexBallColor}{green!80!black}
    \GraphInit[vstyle=Shade]
    \grComplete[RA=5]{6}
\end{tikzpicture}

\begin{tikzpicture}
    \renewcommand*{\VertexBallColor}{green!80!black}
    \GraphInit[vstyle=Shade]

    \grPath[Math,prefix=p,RA=2,RS=0]{2}
    \grPath[Math,prefix=q,RA=2,RS=3]{2}

    \begin{scope}[xshift=4cm, yshift=-1cm]
        \grPath[Math,prefix=r,RA=2,RS=0]{1}
    \end{scope}

    \begin{scope}[xshift=4cm, yshift=4cm]
        \grPath[Math,prefix=s,RA=2,RS=0]{1}
    \end{scope}

    \foreach \from in {0,...,1} {
        \EdgeFromOneToAll{p}{q}{\from}{2}
    }
    \EdgeFromOneToAll{r}{q}{0}{2}
    \EdgeFromOneToAll{r}{p}{0}{2}
    \EdgeFromOneToAll{s}{q}{0}{2}
    \EdgeFromOneToAll{s}{p}{0}{2}
    \EdgeFromOneToAll{s}{r}{0}{1}
\end{tikzpicture}

\end{document}
\documentclass[tikz,border=10pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=.9, transform shape]
	\tikzstyle{every node} = [circle, fill=red!30]
	\node (a) at (0, 0) {A};
	\node (b) at +(0: 1.5) {B};
	\node (c) at +(60: 1.5) {C};
	\foreach \from / \to in {a/b, b/c, c/a}
		\draw [->] (\from) -- (\to);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\begin{document}
\tikz{
  \begin{scope}[name prefix = top-]
    \node (A) at (0,1) {A};
    \node (B) at (1,1) {B};
    \draw (A) -- (B);
  \end{scope}
  \begin{scope}[name prefix = bottom-]
    \node (A) at (0,0) {A};
    \node (B) at (1,0) {B};
    \draw (A) -- (B);
  \end{scope}
  \draw[red] (top-A) -- (bottom-B);
}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{datavisualization}

\begin{document}
\tikz \datavisualization[
  visualize as line/.list={a,b},
  visualize as smooth line=c,
  style sheet=cross marks,
  a={label in legend={text=good example a}},
  b={label in legend={text=good example b}},
  c={gap line, label in legend={text=good example c}}
];
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{circuits.logic.CDH}

\begin{document}
\begin{tikzpicture}[circuit logic CDH,
                    tiny circuit symbols,
                    every circuit symbol/.style={
                      fill=white,draw}]
  \matrix[column sep=7mm]{
    \node (i0) {0}; &                            & \\
                    & \node[and gate] (a1) {};  & \\
    \node (i1) {0}; &                            & \node[or gate] (o) {};\\
                    & \node[nand gate] (a2) {}; & \\
    \node (i2) {1}; &                            & \\
  };
  \draw (i0.east) -- ++(right:3mm) |- (a1.input 1);
  \draw (i1.east) -- ++(right:3mm) |- (a1.input 2);
  \draw (i1.east) -- ++(right:3mm) |- (a2.input 1);
  \draw (i2.east) -- ++(right:3mm) |- (a2.input 2);
  \draw (a1.output) -- ++(right:3mm) |- (o.input 1);
  \draw (a2.output) -- ++(right:3mm) |- (o.input 2);
  \draw (o.output) -- ++(right:3mm);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{datavisualization}

\begin{document}

\tikz \datavisualization[scientific axes,
                          all axes={ticks=few, unit length=1mm},
                          visualize as line]
    data {
      x, y
      10, 10
      40, 20
      15, 30
      13, 20
    };

\end{document}
\documentclass[tikz]{standalone}
\usetikzlibrary{graphs}

\begin{document}
\tikz \graph[grow right=7mm]{ a -> b -> c};
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
  \draw[thick] (0,0) -- (0,5);
  \draw[thick] (-2,4) -- (2,4);
  \draw[thick] (-1.5,4) -- (-1.5,3);
  \draw[thick] (1.5,4) -- (1.5,3);
  \draw[thick] (-1,4) -- (-1,2);
  \draw[thick] (1,4) -- (1,2);
  \draw[fill=white] (-1.5,3) circle (0.2);
  \draw[fill=white] (1.5,3) circle (0.2);
  \draw[fill=white] (-1,2) circle (0.2);
  \draw[fill=white] (1,2) circle (0.2);
\end{tikzpicture}
\end{document}