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

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

\pgfplotsset{every x tick label/.append style={font=\scriptsize, yshift=0ex}}
\pgfplotsset{every y tick label/.append style={font=\scriptsize, xshift=0ex}}
\pgfplotsset{
    jitter/.style={
        y filter/.code={\pgfmathparse{\pgfmathresult+0.5*rand*#1}}
    },
    jitter/.default=0.1
}
\pgfplotsset{tick scale binop=\times}

\begin{axis}[
    ymajorgrids,
    xmajorgrids,
    ylabel={log-marginal probability of MEC},
    xlabel={BGe score},
    height=8cm,
    width=18cm,
    legend style={font=\small},
    scaled x ticks=false,
    scaled y ticks=false,
    yticklabel style = {
       /pgf/number format/fixed,
       /pgf/number format/precision=2,
    },
    legend pos=north west,
    legend cell align={left},
    legend style={column sep=5pt, inner xsep=5pt},
    minor x tick num=4,
    minor y tick num=4,
    enlarge y limits,
    ymode=log
]

\addplot[
    scatter=true,
    mark=*,
    only marks,
    opacity=0.5,
    point meta=explicit symbolic,
    scatter/@pre marker code/.style={/tikz/mark size=\pgfplotspointmeta/5},
    scatter/@post marker code/.style={},
    color=Blue,
] table[col sep=comma, x=score, y=marginal, meta=unique_dags] {figures/sachs-comparison/mc3.csv};
\addlegendentry{MC\textsuperscript{3}}

\addplot[
    scatter=true,
    mark=*,
    only marks,
    opacity=0.5,
    point meta=explicit symbolic,
    scatter/@pre marker code/.style={/tikz/mark size=\pgfplotspointmeta/5},
    scatter/@post marker code/.style={},
    color=ForestGreen,
] table[col sep=comma, x=score, y=marginal, meta=unique_dags] {figures/sachs-comparison/gadget.csv};
\addlegendentry{Gadget}

\addplot[
    scatter=true,
    mark=*,
    only marks,
    opacity=0.5,
    point meta=explicit symbolic,
    scatter/@pre marker code/.style={/tikz/mark size=\pgfplotspointmeta/5},
    scatter/@post marker code/.style={},
    color=YellowOrange,
] table[col sep=comma, x=score, y=marginal, meta=unique_dags] {figures/sachs-comparison/dibs.csv};
\addlegendentry{DiBS}

\addplot[
    scatter=true,
    mark=*,
    only marks,
    opacity=0.5,
    point meta=explicit symbolic,
    scatter/@pre marker code/.style={/tikz/mark size=\pgfplotspointmeta/5},
    scatter/@post marker code/.style={},
    color=Purple,
] table[col sep=comma, x=score, y=marginal, meta=unique_dags] {figures/sachs-comparison/bcdnets.csv};
\addlegendentry{BCD Nets}

\addplot[
    scatter=true,
    mark=*,
    only marks,
    opacity=0.5,
    point meta=explicit symbolic,
    scatter/@pre marker code/.style={/tikz/mark size=\pgfplotspointmeta/5},
    scatter/@post marker code/.style={},
    color=BrickRed,
] table[col sep=comma, x=score, y=marginal, meta=unique_dags] {figures/sachs-comparison/gflownet.csv};
\addlegendentry{DAG-GFlowNet}

\end{axis}

\end{tikzpicture}
\end{document}
