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

\begin{document}
\begin{tikzpicture}[baseline=-2pt, vertex/.style={fill,circle,inner sep=2pt}, emptyvertex/.style={draw,circle,inner sep=2pt}]
\node[vertex, label=above:$0$] (0) at (0,0) {}; 
\node[vertex, label=above:$1$] (1) at (1,0) {}; 
\node[vertex, label=above:$2$] (2) at (2,0) {}; 
\node[vertex, label=above:$3$] (3) at (3,0) {}; 
\node[vertex, label=above:$P$] (P) at (4,1) {}; 
\node[vertex, label=above:$Q$] (Q) at (4,-1) {}; 
\node[emptyvertex, label=above:$P'$] (P') at (5,1) {}; 
\node[emptyvertex, label=above:$Q'$] (Q') at (5,-1) {}; 
\draw (0) -- (3) -- (P) -- (P') (3) -- (Q) -- (Q');
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}
  \node (n1) {};
  \node (n2) [right=of n1] {};
  \draw[black] (n1.east) -- node[sloped,above]{$\scriptscriptstyle p$} (n2.west);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{automata,arrows}

\begin{document}
\begin{tikzpicture}
\node (k1) at (0, 0) {$\{ f_1, \delta_1 \}$};
\node (k2) at (2, 0) {$\{ f_2, \delta_2 \}$};
\node (k3) at (4, 0) {$\{ f_3, \delta_3 \}$};
\draw[->,bend right] (k1) to node {} (k2);
\draw[->,bend left] (k1) to node {} (k3);
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage{amsmath, amsfonts, amssymb, amsthm, braket, bbm, xcolor}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
	[a/.style ={fill=white},
	b/.style ={fill=black!90!white},
	c/.style ={fill=black!20!white}]
	\def\xx{6.4/5}
	\def\yy{4/3}
	\draw[shift={(.5,-.5)}] (-.1*\xx,-.1*\yy) rectangle (6.4+.1*\xx,4+.1*\yy);
	\draw[a] (-.1*\xx,-.1*\yy) rectangle (6.4+.1*\xx,4+.1*\yy);
	\foreach \x in {0,...,4} {
	\foreach \y in {0,1,2}
		\draw[shift={(\x*\xx,\y*\yy)},c] (.1*\xx,+.1*\yy) rectangle (.9*\xx,.9*\yy);
	}
	\node at (\xx/2,5*\yy/2) {$X$};
	\node[below right] at (6.4+.1*\xx,-.1*\yy) {$R$};
\end{tikzpicture}

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

\begin{document}

\begin{tikzpicture}
\useasboundingbox (-1.2, -.5) rectangle (7.2, 3.2);
\draw[ultra thick, ->] (-1,0) -- (7,0);
\foreach \x in {0, 1, 2, 3, 4, 5}{
   \draw (\x,.2) -- (\x,0) node[anchor=north] {$\x$};
   \foreach \xx in {0, 1/6, 2/6, 3/6, 4/6, 5/6}
      \draw (\x+\xx,.1) -- (\x+\xx,0);
}
\draw (6,.2) -- (6,0) node[anchor=north] {$6$};
\draw[ultra thick] (0, 0.5) node [left] {$a$} -- (1, 0.5); 
\draw[ultra thick] (1/6, 1.0) node [left] {$c$} -- (2, 1.0); 
\draw[ultra thick] (1+2/6, 1.5) node [left] {$e$} -- (3, 1.5); 
\draw[ultra thick] (3+3/6, 2.0) node [left] {$f$} -- (4, 2.0); 
\draw[ultra thick] (3+4/6, 2.5) node [left] {$b$} -- (5, 2.5); 
\draw[ultra thick] (5+5/6, 3.0) node [left] {$d$} -- (6, 3.0); 
\end{tikzpicture}

\end{document}
\documentclass{standalone}
\usepackage{amsfonts, amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.pathreplacing,decorations.markings,shapes,calc}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing,backgrounds,decorations.markings,positioning}
\tikzset{2cell/.style={-implies,double,double equal sign distance,shorten >=2pt, shorten <=3pt}}
\tikzset{2cellshort/.style={-implies,double,double equal sign distance,shorten >=4pt, shorten <=5pt}}
\tikzset{2cellr/.style={implies-,double,double equal sign distance,shorten >=3pt, shorten <=2pt}}
\tikzset{3cell/.style={-implies,double,double distance=2.5pt,shorten >=2pt, shorten <=3pt}}
\tikzset{labelsize/.style={font=\scriptsize}}
\tikzset{string/.style={very thick}}
\tikzset{
  pto/.style={->,postaction={decorate},
    decoration={
        markings,
        mark=at position 0.5 with {\arrow{|}}}
  },
}

\newcommand{\tzsquare}[3]{
\draw[2cell] (#1,#2)++(0,0.25) to node[auto,labelsize]{#3} ++(0,-0.5);}

\begin{document}

\begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax ]
      \node (TL) at (0,1.5)  {$A$};
      \node (TR) at (2,1.5)  {$B$};
      \node (BL) at (0,0) {$A''$};
      \node (BR) at (2,0) {$B''$;};
      %
      \draw[pto] (TL) to node[auto,labelsize](T) {$X$} (TR);
      \draw[->]  (TR) to node[auto,labelsize] {$g'\circ g$} (BR);
      \draw[->]  (TL) to node[auto,swap,labelsize] {$f'\circ f$} (BL);
      \draw[pto] (BL) to node[auto,swap,labelsize](B) {$X''$} (BR);
      %
      \tzsquare{1}{0.75}{$\alpha'\circ \alpha$}
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro{\shadow}{0.0}
\pgfmathsetmacro{\przesuniecieX}{0}
\pgfmathsetmacro{\x}{\przesuniecieX}
\pgfmathsetmacro{\y}{0}

\draw[-] (\x,\y) -- (\x+1,\y);
\draw[fill=white] (\x,\y) circle (0.1);
\draw[fill=black] (\x+1,\y) circle (0.1);
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{amsmath,amsfonts,bm}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
\pgfplotsset{
    dirac/.style={
        mark=triangle*,
        mark options={scale=2},
        ycomb,
        scatter,
        visualization depends on={y/abs(y)-1 \as \sign},
        scatter/@pre marker code/.code={\scope[rotate=90*\sign,yshift=-2pt]}
    }
}
\pgfplotsset{
    axis line style={gray}
}

\begin{document}

\begin{tikzpicture}[scale=0.4]
    \begin{axis}[
        axis lines=middle,
        ylabel={$\delta(x)$},
        ylabel style={font=\Huge, yshift=3pt},
        xmin=-3, xmax=3,
        ymin=-2, ymax=2,
        xtick=\empty,
        ytick=\empty,
        extra y ticks={1},
        extra y tick style={
          tick label style={anchor=west, yshift=5pt},
        },
        function line/.style={
          black,
          thick,
          samples=2,
        },
        single dot/.style={
          red,
          mark=*,
        },
        empty point/.style={
          only marks,
          mark=*,
          mark options={fill=white, draw=black},
        },
      ]
      \draw (0,0) -- (0,1);
      \draw (0,0) -- (2,0);
      \draw (0,0) -- (-2,0);
    \end{axis}
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{amsmath,amssymb}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.pathreplacing,decorations.markings,shapes,calc}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing,backgrounds,decorations.markings,positioning}

\tikzset{
  2cell/.style={-implies,double,double equal sign distance,shorten >=2pt, shorten <=3pt},
  2cellshort/.style={-implies,double,double equal sign distance,shorten >=4pt, shorten <=5pt},
  2cellr/.style={implies-,double,double equal sign distance,shorten >=3pt, shorten <=2pt},
  3cell/.style={-implies,double,double distance=2.5pt,shorten >=2pt, shorten <=3pt},
  labelsize/.style={font=\scriptsize},
  string/.style={very thick},
  pto/.style={->,postaction={decorate},
    decoration={
        markings,
        mark=at position 0.5 with {\arrow{|}}
    }
  },
}

\newcommand{\enrich}[2]{{\langle #1, #2\rangle}}

\begin{document}

\begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax]
      \node (TL) at (0,2)  {$T\otimes T$};
      \node (TR) at (4,2)  {$T$};
      \node (BL) at (0,0) {$\enrich{C}{C}\otimes\enrich{C}{C}$};
      \node (BR) at (4,0) {$\enrich{C}{C}.$};
      %
      \draw[->]  (TL) to node[auto,swap,labelsize] {$\chi\otimes\chi$} (BL);
      \draw[->]  (TL) to node[auto,labelsize] {$m$} (TR);
      \draw[->]  (BL) to node[auto,labelsize] {$M_{C,C,C}$} (BR);
      \draw[->]  (TR) to node[auto,labelsize] {$\chi$} (BR);
      %
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,decorations.pathreplacing,decorations.markings,shapes,calc}
\usetikzlibrary{matrix,arrows,decorations.pathmorphing,backgrounds,decorations.markings,positioning}

\tikzset{
  2cell/.style={-implies,double,double equal sign distance,shorten >=2pt, shorten <=3pt},
  2cellshort/.style={-implies,double,double equal sign distance,shorten >=4pt, shorten <=5pt},
  2cellr/.style={implies-,double,double equal sign distance,shorten >=3pt, shorten <=2pt},
  3cell/.style={-implies,double,double distance=2.5pt,shorten >=2pt, shorten <=3pt},
  labelsize/.style={font=\scriptsize},
  string/.style={very thick},
  pto/.style={->,postaction={decorate},
    decoration={
        markings,
        mark=at position 0.5 with {\arrow{|}}
    }
  },
}

\begin{document}
\begin{tikzpicture}[baseline=-\the\dimexpr\fontdimen22\textfont2\relax]
  \node(0) at (0,1) {$A_j$};
  \node(1) at (2,1) {$C$};
  \node(2) at (0,-1) {$B_j$};
  \node(3) at (2,-1) {$D$};
  
  \draw[->] (0) to node[auto,labelsize] {$h$} (1);
  \draw[->] (1) to node[auto,labelsize] {$g$} (3);
  \draw[->] (0) to node[auto,swap,labelsize] {$f_j$} (2);
  \draw[->] (2) to node[auto,swap,labelsize] {$k$} (3);  
  \draw[->] (2) to node[midway,fill=white,labelsize] {$\kappa_j(h,k)$} (1);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{
  matrix,
  arrows,
  shapes,
  decorations.markings,
  decorations.pathreplacing,
  patterns,
  decorations.pathmorphing
}

\tikzset{
  cd/.style={
    ->,
    scale=6,
    >=angle 90,
    font=\scriptsize
  },
  graph/.style={
    ->,
    scale=2,
    >=triangle 45,
    font=\scriptsize
  },
  ob/.style={
    shape=circle,
    draw,
    thick,
    inner sep=2.75pt
  },
  -|->/.style={
    decoration={
      markings,
      mark=at position .5 with {\arrow{|}},
      mark=at position 1 with {\arrow{>}}
    },
    postaction={decorate}
  },
  every loop/.style={
    in=60,
    out=120,
    looseness=10
  },
  zxgreen/.style={
    shape=circle,
    draw,
    thick,
    fill=green
  },
  zxred/.style={
    shape=circle,
    draw,
    thick,
    fill=red
  },
  zxyellow/.style={
    shape=rectangle,
    draw,
    thick,
    fill=yellow
  },
  zxblack/.style={
    shape=diamond,
    fill=black,
    inner sep=2.75pt
  },
  zxwhite/.style={
    shape=circle,
    draw,
    thick
  }
}

\begin{document}
\begin{tikzpicture}
  \begin{scope}
    \node [zxwhite] (a) at (0,0) {};
    \draw [rounded corners] (-0.5,-0.5) rectangle (0.5,0.5);
    \node (l) at (0.6,0) {};
  \end{scope}
  %
  \begin{scope}[shift={(2,0)}]
    \node [zxwhite] (a) at (0,0) {};
    \node [zxwhite] (b) at (2,0) {};
    \draw [graph] (a) to (b);
    \draw [rounded corners] (-0.5,-0.5) rectangle (2.5,0.5);
    \node (cr) at (2.6,0) {};
    \node (cl) at (-0.6,0) {};  
    \node () at (1,-1) {\textsc{Wire}};  
  \end{scope}
  %
  \begin{scope}[shift={(6,0)}]
    \node [zxwhite] (a) at (0,0) {};
    \draw [rounded corners] (-0.5,-0.5) rectangle (0.5,0.5);
    \node (r) at (-0.6,0) {};
  \end{scope}
  %
  \draw[cd]
    (l) edge (cl)
    (r) edge (cr);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}
\draw[->, thin] (-0.4,-2) -- (0.1,-2);
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{arrows}

\tikzset{
    treenode/.style = {
        align=center,
        inner sep=0pt,
        text centered,
        font=\sffamily,
        rectangle,
        rounded corners=3mm,
        draw=black,
        minimum width=2em,
        minimum height=2em,
        inner sep=1mm,
        outer sep=0mm
    }
}

\begin{document}
\begin{tikzpicture}[
    level/.style={
        sibling distance = (3-#1)*0.3cm + 1cm,
        level distance = 1.5cm
    }
]
\node [treenode] {$\Lambda_{RT} \sqcup \Lambda_{P_0}$}
    child{ node [treenode] {$\Lambda_{RT}$} }
    child{ node [treenode] {$\Lambda_{P_0}$} };
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns,intersections}

\begin{document}
\begin{tikzpicture}[scale=.5]
  \coordinate (a) at (0,0);
  \coordinate (ac) at (2,0);
  \coordinate (b) at (4,0);
  \draw (a) -- (ac) -- (b) --++ (120:2) coordinate(bc) --++ (120:2) coordinate(c) --++ (240:2) coordinate(cc) -- cycle;
  \draw[name path=a--bc] (a) -- (bc);
  \draw[name path=b--cc] (b) -- (cc);
  \draw[name path=ac--c] (ac) -- (c);
  \path [name intersections={of=a--bc and ac--c, by=e}];
  \fill (a) circle (2pt);
  \fill (b) circle (2pt);
  \fill (c) circle (2pt);
  \fill (ac) circle (2pt);
  \fill (bc) circle (2pt);
  \fill (cc) circle (2pt);
  \path[pattern=north west lines, pattern color=black] (b) -- (c) -- (cc) -- cycle;
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usepackage{amsmath}
\usetikzlibrary{calc,positioning,arrows}

\begin{document}
\begin{tikzpicture}[scale=0.15]
    \coordinate (tc) at (2, 0, 0);
    \coordinate (bc) at (-2, 0, 0);
    \coordinate (mn) at (0, -2, 0);
    \coordinate (ms) at (0.8, 1.2, 0);
    \coordinate (bs) at (-0.8, 1.2, 0);

    \draw[fill=blue!90, opacity=0.4] (tc) -- (ms) -- (bs) -- (bc) -- (mn) -- cycle;

    \coordinate (xp) at (3.5, 0, 0);
    \coordinate (xn) at (-2.5, 0, 0);
    \coordinate (yp) at (0, 3.5, 0);
    \coordinate (yn) at (0, -2.5, 0);

    \draw[->,opacity=0.5] (xn) -- (xp);
    \draw[->,opacity=0.5] (yn) -- (yp);

    \node [font=\scriptsize, align=center, scale=0.8] at (3.5,0.8,0) {$x_1$};
    \node [font=\scriptsize, align=center, scale=0.8] at (1.0,3.5,0) {$x_2$};
\end{tikzpicture}
\end{document}
\documentclass[tikz,border=5pt]{standalone}
\usetikzlibrary{calc,positioning,arrows}

\begin{document}
\begin{tikzpicture}[scale=0.7]
    \coordinate (n) at (-0.3, 1.2);
    \coordinate (nw) at (-1.0, 0.5);
    \coordinate (e) at (0.5, 0.0);
    \coordinate (sw) at (-1.0, -0.5);
    \coordinate (s) at (-0.3, -1.2);
    \coordinate (w) at (-1.1, 0);

    \draw[fill=blue!90, opacity=0.3] (nw) -- (n) -- (e) -- (s) -- (sw) -- (w) -- cycle;

    \node[circle, black, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt] at (n) {};
    \node[circle, black, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt] at (e) {};
    \node[circle, black, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt] at (w) {};
    \node[circle, black, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt] at (s) {};
    \node[circle, black, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt] at (sw) {};
    \node[circle, black, fill, minimum size=3pt, inner sep=0pt, outer sep=0pt] at (nw) {};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,arrows}

\begin{document}

\begin{tikzpicture}[baseline=(current bounding box.center)]
    \def \w {7.5}
    \def \scal {0.85}
    \fill [gray!20] (4*\w/6,0)--(5*\w/6,0)--(5*\w/6,-\w/6)--(2*\w/6,-4*\w/6)--(\w/6,-4*\w/6)--(\w/6,-3*\w/6);
    \foreach \x in {0,1,5,6}{
        \draw (\x*\w/6,0)--(\x*\w/6,-4*\w/6);
    }
    \foreach \x in {0,1,3,4}{
        \draw [>>-] (-\w/30,-\x*\w/6)--(\w/6,-\x*\w/6);
        \draw [->>] (5*\w/6,-\x*\w/6)--(\w+\w/30,-\x*\w/6);
    }
    \draw (0,-2*\w/6)--(\w/6,-2*\w/6);
    \draw (5*\w/6,-2*\w/6)--(\w,-2*\w/6);
    \draw (0,0)--(\w,0);
    \draw (0,-4*\w/6)--(\w,-4*\w/6);
    \draw (4*\w/6,0)--(4*\w/6,-\w/6)--(5*\w/6,-\w/6);
    \draw (\w/6,-3*\w/6)--(2*\w/6,-3*\w/6)--(2*\w/6,-4*\w/6);
    % spectral parameters
    \draw [dotted,thick] (1*\w/6,-1*\w/6)--(2*\w/6,0*\w/6);
    \draw [dotted,thick] (1*\w/6,-2*\w/6)--(3*\w/6,0*\w/6);
    \draw [dotted,thick] (1*\w/6,-3*\w/6)--(4*\w/6,0*\w/6);
    \draw [dotted,thick] (2*\w/6,-3*\w/6)--(4*\w/6,-1*\w/6);
    \draw [dotted,thick] (2*\w/6,-4*\w/6)--(5*\w/6,-1*\w/6);
    \draw [dotted,thick] (3*\w/6,-4*\w/6)--(5*\w/6,-2*\w/6);
    \draw [dotted,thick] (4*\w/6,-4*\w/6)--(5*\w/6,-3*\w/6);
    \node[scale=\scal] at (1*0.5*\w/6,-1*0.5*\w/6) {\dots};
    \node[scale=\scal] at (9*0.5*\w/6,-1*0.5*\w/6) {$u_{n-1,n+2}$};
    \node[scale=\scal] at (11*0.5*\w/6,-1*0.5*\w/6) {\dots};
    \node[scale=\scal] at (1*0.5*\w/6,-3*0.5*\w/6) {\dots};
    \node[scale=\scal] at (11*0.5*\w/6,-3*0.5*\w/6) {\dots};
    \node[scale=\scal] at (1*0.5*\w/6,-5*0.5*\w/6) {\dots};
    \node[scale=\scal] at (11*0.5*\w/6,-5*0.5*\w/6) {\dots};
    \node[scale=\scal] at (1*0.5*\w/6,-7*0.5*\w/6) {\dots};
    \node[scale=\scal] at (3*0.5*\w/6,-7*0.5*\w/6) {$u_{n+2,n-1}$};
    \node[scale=\scal] at (11*0.5*\w/6,-7*0.5*\w/6) {\dots};
    \node[left] at (0,-2*\w/6) {$\alpha$};
    \node[right] at (\w,-2*\w/6) {$\beta$};
    \foreach \x in {0,1,2,3,4,5,6}{
        \node[draw,circle,inner sep=1pt,fill] at (\x*\w/6,0) {};
    }
    \foreach \x in {0,1,4,5,6}{
        \node[draw,circle,inner sep=1pt,fill] at (\x*\w/6,-1*\w/6) {};
    }
    \foreach \x in {1,5}{
        \node[draw,circle,inner sep=1pt,fill] at (\x*\w/6,-2*\w/6) {};
    }
    \foreach \x in {0,1,2,5,6}{
        \node[draw,circle,inner sep=1pt,fill] at (\x*\w/6,-3*\w/6) {};
    }
    \foreach \x in {0,1,2,3,4,5,6}{
        \node[draw,circle,inner sep=1pt,fill] at (\x*\w/6,-4*\w/6) {};
    }
\end{tikzpicture}

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

\begin{document}
\begin{tikzpicture}[scale=0.05]
  \tikzstyle{terminal}=[circle,draw,thick,scale=0.15mm]
  \tikzstyle{cercle}=[circle,draw,thick,fill=black,scale=0.15mm]
  \node[terminal] (T) at (1,10) {};
  \draw[-] (1,0) -- (1,10);
  \path (1,10) node[above] { $\begin{matrix} x \\ 0 \end{matrix}$ };
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,shapes}

\begin{document}

\begin{tikzpicture}[round/.style={circle,fill=white,inner sep=1}]
\fill[fill=gray!25!white] (4,0) -- (4,2) -- (5.71,1) -- cycle;
\fill[fill=gray!25!white] (0.29,1) -- (2,0) -- (2,2) -- cycle;
\node[round] (b1) at (.29,1) {$1_c$};
\node[round] (b0r) at (5.71,1) {$1_c$};
\node[round] (c1) at (2,2) {$1_b$};
\node[round] (c1r) at (4,2) {$1_a$};
\node[round] (a0) at (2,0) {$1_a$};
\node[round] (a0r) at (4,0) {$1_b$};
\draw[-] (b1) -- (a0);
\draw[-] (b1) -- (c1);
\draw[-] (a0r) -- (b0r);
\draw[-] (b0r) -- (c1r);
\draw[-] (a0) -- (c1);
\draw[-] (a0r) -- (c1r);
\draw[-] (a0) -- (a0r);
\draw[-] (c1) -- (c1r);
\node (b1a) at (-.2,1.4) {\scriptsize$(\{1_a1_b1_c\},c)$};
\node (b0ra) at (6.2,1.4) {\scriptsize$(\{1_a1_b1_c\},c)$};
\node (c1a) at (1.3,2.4) {\scriptsize$(\{1_a1_b0_c,1_a1_b1_c\}, b)$};
\node (c1ra) at (4.7,2.4) {\scriptsize$(\{1_a1_b0_c,1_a1_b1_c\},a)$};
\node (a0a) at (1.3,-.4) {\scriptsize$(\{1_a1_b0_c,1_a1_b1_c\}, a)$};
\node (a0ra) at (4.7,-.4) {\scriptsize$(\{1_a1_b0_c,1_a1_b1_c\}, b)$};
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}[xscale=0.85,yscale=0.85]
  \begin{axis}[
    xlabel={\# positive samples},
    ylabel={F1},
    ymax=0.8,
    xmax=1650,
    legend pos=south east,
    ylabel style={rotate=-90},
  ]
    \addplot[
      color=black,
      dash pattern=on 1pt off 3pt on 3pt off 3pt,
      mark=*,
      mark options={solid},
      smooth
    ]
    coordinates {
      (50, 0.38)
      (250, 0.42)
      (500, 0.55)
      (1000, 0.63)
      (1453, 0.70)
    };
    \addlegendentry{Balanced Bagging}

    \addplot[
      color=black,
      mark=*,
      mark options={solid},
    ]
    coordinates {
      (50, 0.47)
      (250, 0.53)
      (500, 0.62)
      (1000, 0.68)
      (1453, 0.73)
    };
    \addlegendentry{DARE}
  \end{axis}
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[scale=0.45]
    \draw (0,0) -- (2,2) -- (4,0);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric}

\begin{document}
\begin{tikzpicture}[baseline={([yshift=-3pt]current bounding box.center)},scale=1]
\node[diamond,scale=0.35,draw,black] at (0,0) {\huge $2$};
\end{tikzpicture}
\end{document}
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}
\begin{tikzpicture}[scale=1.5]
    \node (A) at (0,0) {$A$};
    \node (B) at (2,0) {$B$};
    \node (C) at (0,-1) {$C$};
    \node (D) at (1,-1) {$D$};
    \node (E) at (2,-1) {$E$};
    \draw[->] (A) to node [above] {\small $f$} (B);
    \draw[->] (B) to node [right] {\small $g$} (E);
    \draw[->] (A) to node [left] {\small $h$} (C);
    \draw[->] (C) to node [below] {\small $i$} (D);
    \draw[->] (D) to node [below] {\small $j$} (E);
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning,decorations.markings,arrows}

\tikzset{
  ->-/.style={
    decoration={
      markings,
      mark=at position .6 with {\arrow[>=stealth]{>}}
    },
    postaction={decorate}
  }
}

\begin{document}
\begin{tikzpicture}[scale=1]
  \draw[->-] (0,0) -- (90:1);
  \draw[->-] (330:0.5) to node[above,pos=0.3] {\small $\beta$} (330:0);
  \draw[->-] (330:1.5) -- (330:1);
  \draw[->-] (330:1) to[bend left=80] node[below] {\small $\alpha_\mathbf{r}$} (330:0.5);
  \draw[->-] (330:0.5) to[bend left=80] node[above,pos=0.7] {\small $\alpha_\mathbf{q}$} (330:1);
  \node at (330:1.75) {\small $k_\mathbf{r}$};
  \draw[->-] (210:1) -- (210:0);
  \node at (210:1.25) {\small $j_\mathbf{p}$};
  \node at (90:1.25) {\small $i_\mathbf{p}$};
\end{tikzpicture}
\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    xlabel={\bf Fraction of Retrieved Documents (Recall)},
    ylabel={\bf Precision@Recall},
    xmin=-0.3, xmax=6.3,
    ymin=0.50, ymax=0.80,
    ytick={0.5,0.55,...,0.80},
    xtick={0,1,2,3,4,5,6},
    xticklabels={0.002, 0.005, 0.01, 0.02, 0.05, 0.1, 0.2},
    legend pos=north east,
    ymajorgrids=true, xmajorgrids=true,
    grid style=dashed,
]

\addplot[
    color=blue,
    mark=square,
    ]
    plot coordinates {
    (0, 0.782)
    (1, 0.748)
    (2, 0.719)
    (3, 0.685)
    (4, 0.636)
    (5, 0.591)
    (6, 0.531)
    };
\addlegendentry{MST+MVT}

\addplot[
    color=red,
    mark=triangle,
    ]
    plot coordinates {
    (0, 0.77)
    (1, 0.735)
    (2, 0.70)
    (3, 0.663)
    (4, 0.60)
    (5, 0.55)
    (6, 0.502)
    };
\addlegendentry{DocNADEe}

\addplot[
    color=green,
    mark=*,
    ]
    plot coordinates {
    (0, 0.731)
    (1, 0.683)
    (2, 0.642)
    (3, 0.597)
    (4, 0.537)
    (5, 0.491)
    (6, 0.442)
    };
\addlegendentry{EmbSum}

\addplot[
    color=black,
    mark=square,
    ]
    plot coordinates {
    (0, 0.738)
    (1, 0.703)
    (2, 0.674)
    (3, 0.638)
    (4, 0.588)
    (5, 0.543)
    (6, 0.483)
    };
\addlegendentry{zero-shot}

\addplot[
    color=cyan,
    mark=*,
    ]
    plot coordinates {
    (0, 0.740)
    (1, 0.710)
    (2, 0.680)
    (3, 0.645)
    (4, 0.593)
    (5, 0.544)
    (6, 0.487)
    };
\addlegendentry{data-augment}
\end{axis}
\end{tikzpicture}
\end{document}
\documentclass[tikz]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath, amsfonts, amssymb}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{arrows, automata, positioning, shapes}

\newcommand{\goalst}{\mathit{error}}
\newcommand{\failst}{\mathit{safe}}

\begin{document}

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=0.5cm, semithick]
    \node[scale=0.8, state] (s0) {$s_0\mid 1$};
    \node[scale=0.8, state] (t) [right=2 of s0] {$t\mid 0$};
    \node[scale=0.8, state] (u) [below = 0.7 of t] {$u\mid w$};
    \node[scale=0.8, state, accepting] (g) [right =1.92 of t] {$\goalst$};
    \node[scale=0.8, state] (f) [left =2 of u] {$\failst$};

    \draw[<-] (s0) --++(0,0.7);
    \path (s0) edge[loop left] node[scale=0.8] {$1/4$} (s0);
    \draw (s0) -- (t) node[pos=0.5,scale=0.8] {$1/4$};
    \draw (s0) -- (f) node[pos=0.5,scale=0.8] {$1/2$};
    \draw (t) -- (u) node[pos=0.5,scale=0.8] {$1/2$};
    \draw (t) -- (g) node[pos=0.5,scale=0.8] {$1/2$};
    \draw (u) -- (g) node[pos=0.5,scale=0.8] {$3/4$};
    \draw (u) -- (f) node[pos=0.5,scale=0.8] {$1/4$};
\end{tikzpicture}

\end{document}
\documentclass[border=5pt]{standalone}
\usepackage{tkz-graph}
\usetikzlibrary{positioning}
\tikzset{
  LabelStyle/.style = { rectangle, rounded corners, draw,
                        minimum width = 2em, fill = white, font = \bfseries },
  VertexStyle/.append style = { inner sep=5pt,
                                font = \Large\bfseries},
  EdgeStyle/.append style = {bend left} }

\begin{document}

\begin{tikzpicture}
  \SetGraphUnit{4}
  \Vertex{A}
  \Loop[style={}, dist = 3cm, dir = EA, label = $(uv)$](A.north)
\end{tikzpicture}

\end{document}