\documentclass[crop,tikz]{standalone}% 'crop' is the default for v1.0, before it was 'preview'
\usepackage{pgfplots}
\usepackage{pgfplotstable}
\usepgfplotslibrary{groupplots}

\input{setup.tex}

\begin{document}
\pgfplotstableread[col sep=comma]{quantize/SYN-ReLU/8/quantized_layer_8_bits.csv}\iplane

\begin{tikzpicture}
	\begin{groupplot}[group style={group size= 2 by 1, horizontal sep=2cm,vertical sep=0cm}]
		\nextgroupplot[IB axis]
			\addplot[IB plot] table[x=x,y=y]{\iplane};

      % Labels
      \node at (axis cs:1.3,0.1){$\hat Y=T_6$};
      \node at (axis cs:3.7,0.05){$T_5$};
      \node at (axis cs:5.6,0.08){$T_4$};
      \node at (axis cs:8.2,0.23){$T_3$};
      \node at (axis cs:11.75,0.78){$T_2$};
		\nextgroupplot[IB axis,xmin=7.8,xmax=12.2,ymin=0.8,ymax=1.01,xticklabels={, ,8,9,10,11,12},yticklabels={, ,0.8, ,0.9, ,1.0},IB colorbar single]
			\addplot[IB plot] table[x=x,y=y]{\iplane};
      
      % Labels
      \node at (axis cs:8.4,0.82){$T_5$};
      \node at (axis cs:10.5,0.82){$T_4$};
      \node at (axis cs:11.1,0.82){$T_3$};
      \node at (axis cs:11.6,0.82){$T_2$};
  \end{groupplot}
\end{tikzpicture}

\end{document}
