\begin{tikzpicture}

\begin{groupplot}[group style={columns=1, horizontal sep=1.1cm, vertical sep=0.0cm}]
\nextgroupplot[
            % Figure size
            width=5.8cm,
            height=3.4cm,
            % Plot style
            every axis plot/.append style={thick},
            % Grid
            grid=major,
            xmajorgrids=true,
            ymajorgrids=true,
            major grid style={dotted, black},
            % Label
            xlabel={KV cache budget ratio},
            ylabel={Accuracy (\%)},
            xlabel shift=-0.15cm,         
            ylabel shift=-0.1cm,
            xlabel near ticks,
            ylabel near ticks,
            label style={font=\footnotesize},
            % Tick
            tick label style={font=\scriptsize},
            tick pos=left,
            % Tick and Range
            xtick={0.2, 0.4, 0.6, 0.8, 1.0},
            x tick label style={/pgf/number format/.cd, fixed, fixed zerofill, precision=1},
            y tick label style={/pgf/number format/.cd, fixed, fixed zerofill, precision=0},
            extra x ticks={0.3, 0.5, 0.7, 0.9},   
            extra x tick labels={,,,},
            extra x tick style={
                grid=none,
                tick style={thin},
                major tick length=2.8pt,
            },    
            xmin=0.1,
            xmax=1.0,
            ymax=100.0,
            % ymin=30.0,
            % Legend
            legend image post style={scale=0.8},
            legend style={legend columns=1, font=\scriptsize, at={(0.98,0.06)}, anchor=south east, inner sep=1pt, row sep=-2pt},
            legend cell align={left},
            ]

\addplot[gr, mark=*, mark size=1pt] table [y=qa-comp, col sep=comma]{data/snap_problem.csv};\addlegendentry{SnapKV-prefill}
\addplot[bl, mark=x, mark size=1.8pt] table [y=qa-other, col sep=comma]{data/snap_problem.csv};\addlegendentry{SnapKV-reuse}

\addplot[red, mark=+, mark size=1.8pt, opacity=0.8] table [y=ours, col sep=comma]{data/snap_problem.csv};\addlegendentry{KVzip (ours)}


\end{groupplot}
\end{tikzpicture}
