\documentclass[margin=2pt]{standalone}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{amsmath,amsfonts}
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\pgfplotsset{compat=1.16}
\usepgfplotslibrary{statistics}

\begin{document}
\begin{tikzpicture}[]

\pgfplotsset{every y tick label/.append style={font=\scriptsize, xshift=0ex}}
\pgfplotsset{every x tick label/.append style={font=\scriptsize, yshift=0ex}}

\definecolor{color_mc3}{RGB}{114,158,206}
\definecolor{color_gadget}{RGB}{174,199,232}
\definecolor{color_bpc}{RGB}{255,158,74}
\definecolor{color_bges}{RGB}{255,187,120}
\definecolor{color_dibs}{RGB}{103,191,92}
\definecolor{color_bcdnets}{RGB}{152,223,138}
\definecolor{color_gflownet}{RGB}{237,102,93}

\begin{groupplot}[
    group style={group size=3 by 1, horizontal sep=3em}
]

%%%%%%%
% E-SHD
%%%%%%%

\nextgroupplot[
    ymajorgrids,
    xmajorgrids,
    % ymode=log,
    % xmode=log,
    % axis equal,
    % title={Conv-4},
    % title style={yshift=1.2em},
    title={$\mathbb{E}$-SHD},
    xlabel={},
    height=6cm,
    width=8cm,
    legend style={font=\small},
    scaled x ticks=false,
    scaled y ticks=false,
    boxplot/draw direction=y,
    enlarge x limits=0.02,
    x tick label style={rotate=0},
    % ytick={20, 40, 60, 80, 100},
    minor y tick num=1,
    enlarge x limits=0.1,
    xmin=1, xmax=7,
    xtick={1, 2, 3, 4, 5, 6, 7},
    xticklabels={
        MC\textsuperscript{3},
        Gadget\vphantom{\textsuperscript{3}},
        B-PC\vphantom{\textsuperscript{3}},
        B-GES\vphantom{\textsuperscript{3}},
        DiBS\vphantom{\textsuperscript{3}},
        BCD\vphantom{\textsuperscript{3}},
        GFN\vphantom{\textsuperscript{3}}
    },
]

\addplot+ [boxplot prepared={
    lower whisker=146.29,
    lower quartile=163.55,
    median=166.71,
    upper quartile=175.41,
    upper whisker=189.17
},
thick, solid, mark=x, black, fill=color_mc3,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 201.16\\ 144.09\\ };

\addplot+ [boxplot prepared={
    lower whisker=167.05,
    lower quartile=172.70,
    median=176.96,
    upper quartile=183.37,
    upper whisker=188.17
},
thick, solid, mark=x, black, fill=color_gadget,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 155.80\\ };

\addplot+ [boxplot prepared={
    lower whisker=80.76,
    lower quartile=82.46,
    median=84.89,
    upper quartile=91.64,
    upper whisker=95.20
},
thick, solid, mark=x, black, fill=color_bpc,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 60.95\\ };

\addplot+ [boxplot prepared={
    lower whisker=179.42,
    lower quartile=182.56,
    median=197.20,
    upper quartile=201.90,
    upper whisker=207.95
},
thick, solid, mark=x, black, fill=color_bges,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=96.42,
    lower quartile=97.18,
    median=100.39,
    upper quartile=102.71,
    upper whisker=108.76
},
thick, solid, mark=x, black, fill=color_dibs,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 74.83\\ };

\addplot+ [boxplot prepared={
    lower whisker=41.80,
    lower quartile=55.77,
    median=69.19,
    upper quartile=83.66,
    upper whisker=94.00
},
thick, solid, mark=x, black, fill=color_bcdnets,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=80.60,
    lower quartile=97.44,
    median=148.34,
    upper quartile=164.23,
    upper whisker=218.21
},
thick, solid, mark=x, black, fill=color_gflownet,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

%%%%%%%
% AUC
%%%%%%%

\nextgroupplot[
    ymajorgrids,
    xmajorgrids,
    % ymode=log,
    % xmode=log,
    % axis equal,
    % title={Conv-4},
    % title style={yshift=1.2em},
    title={AUROC},
    xlabel={},
    height=6cm,
    width=8cm,
    legend style={font=\small},
    scaled x ticks=false,
    scaled y ticks=false,
    boxplot/draw direction=y,
    enlarge x limits=0.02,
    x tick label style={rotate=0},
    enlarge x limits=0.1,
    minor y tick num=1,
    xmin=1, xmax=7,
    xtick={1, 2, 3, 4, 5, 6, 7},
    xticklabels={
        MC\textsuperscript{3},
        Gadget\vphantom{\textsuperscript{3}},
        B-PC\vphantom{\textsuperscript{3}},
        B-GES\vphantom{\textsuperscript{3}},
        DiBS\vphantom{\textsuperscript{3}},
        BCD\vphantom{\textsuperscript{3}},
        GFN\vphantom{\textsuperscript{3}}
    },
]

\addplot+ [boxplot prepared={
    lower whisker=0.660,
    lower quartile=0.695,
    median=0.750,
    upper quartile=0.778,
    upper whisker=0.822
},
thick, solid, mark=x, black, fill=color_mc3,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=0.509,
    lower quartile=0.520,
    median=0.537,
    upper quartile=0.555,
    upper whisker=0.561
},
thick, solid, mark=x, black, fill=color_gadget,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=0.674,
    lower quartile=0.714,
    median=0.749,
    upper quartile=0.771,
    upper whisker=0.807
},
thick, solid, mark=x, black, fill=color_bpc,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=0.905,
    lower quartile=0.918,
    median=0.926,
    upper quartile=0.942,
    upper whisker=0.957
},
thick, solid, mark=x, black, fill=color_bges,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=0.525,
    lower quartile=0.540,
    median=0.551,
    upper quartile=0.563,
    upper whisker=0.577
},
thick, solid, mark=x, black, fill=color_dibs,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=0.681,
    lower quartile=0.743,
    median=0.753,
    upper quartile=0.797,
    upper whisker=0.813
},
thick, solid, mark=x, black, fill=color_bcdnets,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=0.593,
    lower quartile=0.670,
    median=0.704,
    upper quartile=0.798,
    upper whisker=0.847
},
thick, solid, mark=x, black, fill=color_gflownet,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

%%%%%%%
% BGe Score
%%%%%%%

\nextgroupplot[
    ymajorgrids,
    xmajorgrids,
    % ymode=log,
    % xmode=log,
    % axis equal,
    % title={Conv-4},
    title style={yshift=-2pt},
    title={$\log P(G, \mathcal{D}' \mid \mathcal{D})$},
    xlabel={},
    height=6cm,
    width=8cm,
    legend style={font=\small},
    scaled x ticks=false,
    scaled y ticks=false,
    boxplot/draw direction=y,
    x tick label style={rotate=0},
    xtick={1, 2, 3, 4, 5, 6, 7},
    % ytick={700, 750, 800, 850, 900},
    minor y tick num=4,
    enlarge x limits=0.1,
    xmin=1, xmax=7,
    xticklabels={
        MC\textsuperscript{3},
        Gadget\vphantom{\textsuperscript{3}},
        B-PC\vphantom{\textsuperscript{3}},
        B-GES\vphantom{\textsuperscript{3}},
        DiBS\vphantom{\textsuperscript{3}},
        BCD\vphantom{\textsuperscript{3}},
        GFN\vphantom{\textsuperscript{3}}
    },
]

gflownet


\addplot[mark=none, gray, thick, densely dashed, samples=2, domain=0:8] {2193.16};

\addplot+ [boxplot prepared={
    lower whisker=1934.19,
    lower quartile=1965.15,
    median=1981.20,
    upper quartile=1994.65,
    upper whisker=2016.55
},
thick, solid, mark=x, black, fill=color_mc3,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { \\ };

\addplot+ [boxplot prepared={
    lower whisker=1413.86,
    lower quartile=1487.87,
    median=1512.71,
    upper quartile=1537.39,
    upper whisker=1606.23
},
thick, solid, mark=x, black, fill=color_gadget,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 1394.90\\ 1378.50\\ 1413.37\\ 1392.24\\ 1403.23\\ 1410.25\\ 1393.81\\ 1614.12\\ 1399.34\\ 1410.62\\ 1413.06\\ 1404.08\\ 1384.40\\ 1404.75\\ 1615.05\\ 1413.57\\ 1413.22\\ };

\addplot+ [boxplot prepared={
    lower whisker=1456.68,
    lower quartile=1604.15,
    median=1660.43,
    upper quartile=1707.97,
    upper whisker=1858.77
},
thick, solid, mark=x, black, fill=color_bpc,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 1347.51\\ 1908.33\\ 1885.49\\ };

\addplot+ [boxplot prepared={
    lower whisker=1794.46,
    lower quartile=1884.95,
    median=1917.24,
    upper quartile=1945.30,
    upper whisker=2021.39
},
thick, solid, mark=x, black, fill=color_bges,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 2039.98\\ 2040.16\\ 1726.83\\ 1789.30\\ 1793.91\\ 1763.53\\ 1758.07\\ 1782.82\\ 1785.83\\ };

\addplot+ [boxplot prepared={
    lower whisker=476.35,
    lower quartile=607.75,
    median=651.01,
    upper quartile=756.06,
    upper whisker=964.88
},
thick, solid, mark=x, black, fill=color_dibs,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 982.24\\ 979.21\\ };

\addplot+ [boxplot prepared={
    lower whisker=2071.86,
    lower quartile=2085.18,
    median=2098.85,
    upper quartile=2109.07,
    upper whisker=2128.67
},
thick, solid, mark=x, black, fill=color_bcdnets,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 1961.40\\ };

\addplot+ [boxplot prepared={
    lower whisker=1876.98,
    lower quartile=1924.32,
    median=1941.08,
    upper quartile=1956.49,
    upper whisker=2002.61
},
thick, solid, mark=x, black, fill=color_gflownet,
mark options={fill=black, draw=black}] table [row sep=\\, y index=0] { 1824.41\\ 1874.94\\ 1867.71\\ 1863.43\\ 1864.00\\ 1872.93\\ 1869.34\\ 1867.63\\ 1856.97\\ 1862.78\\ 1874.79\\ 1876.00\\ 1873.10\\ };

\end{groupplot}

\end{tikzpicture}
\end{document}
