\begin{tikzpicture}[baseline]
    \pgfplotstableread[col sep=comma]{./data/ood_label_metrics.csv}{\loadedtable};
    
    \begin{axis}[
        % adjust the `width' a bit by keeping the default `height'
        width=\columnwidth,
        height=0.6\columnwidth,
        title={CE ($\downarrow$) on label shift},
        % ymin=1e-1,
        % ymax=9,
        % there should be no gap between the bars in one group
        ybar=0pt,
        % adjust the size of the bars so they don't overlap
        bar width=0.85/5, % divided by number of columns
        % enlarge the x limits so all of the bars are shown
        enlarge x limits={abs=0.6},
        xtick={0, 1, 2, 3, 4}, % Define the desired y tick positions
        xticklabels={ID, OOD-1, OOD-2, OOD-3, OOD-4},
        legend style={font=\tiny, 
    	% fill opacity=0.6, text opacity =1,
            at={(0.02, 0.98)},anchor=north west,
            row sep=-3pt,
        },
        legend cell align={left},
    ]

        % GP-ARD-Laplace
        \addplot[fill=darkblue,
            error bars/.cd,
            x dir=both,x explicit,
            y dir=both,y explicit,
            error bar style={solid}] table [
                x expr=\coordindex,
                y index=18, % zero based
                y error index=68,
                col sep=comma,
        ] {\loadedtable};

        % GP-RFM-Laplace
        \addplot[fill=black,
            error bars/.cd,
            x dir=both,x explicit,
            y dir=both,y explicit,
            error bar style={solid}] table [
                x expr=\coordindex,
                y index=28,
                y error index=78,
                col sep=comma,
        ] {\loadedtable};

        % GP-RFM-Laplace-diag
        \addplot[fill=blackgray,
            error bars/.cd,
            x dir=both,x explicit,
            y dir=both,y explicit,
            error bar style={solid}] table [
                x expr=\coordindex,
                y index=33,
                y error index=83,
                col sep=comma,
        ] {\loadedtable};


        % NGBoost
        \addplot[fill=orange,
            error bars/.cd,
            x dir=both,x explicit,
            y dir=both,y explicit,
            error bar style={solid}] table [
                x expr=\coordindex,
                y index=38,
                y error index=88,
                col sep=comma,
        ] {\loadedtable};

        % CatBoost-Ensemble
        \addplot[fill=red,
            error bars/.cd,
            x dir=both,x explicit,
            y dir=both,y explicit,
            error bar style={solid}] table [
                x expr=\coordindex,
                y index=43,
                y error index=93,
                col sep=comma,
        ] {\loadedtable};

        \legend{
            % {GP-RBF},
            % {GP-Laplace},
            % {GP-ARD-RBF},
            {GP-ARD-Laplace},
            {\textbf{GP-RFM-Laplace}}, 
            {\textbf{GP-RFM-Laplace-diag}}, 
            {NGBoost},
            {CatBoost-Ensemble}
        }

    \end{axis}
\end{tikzpicture}