Tikz x 标签为图像会产生不对称间距

Tikz x 标签为图像会产生不对称间距

我在一篇论文中偶然想到使用图片作为图表的 x 轴标签。但是,我遇到了最后一个标签与其他标签距离较远(不对称)的问题,我觉得这很奇怪。具体来说,我谈论的是针对 IBM 的最后一个观察结果。我首先确保所有图片的宽度都差不多,但最初并不是这样。然而,这并没有解决问题,所以我现在有点不知所措。我使用以下代码:

    \usepackage{tikz}
    \usepackage{pgfplot}

    \begin{figure}[h]
    \centering
    \caption{AMD top 8 search based peers (2016)}
    \label{FigAMDtop10SBPpeers}
    \begin{tikzpicture}
    \begin{axis}[width=15cm,height=8cm,
        ymin=0, ymax=8,
        xtick pos=lower,ytick pos=left,
        xtick style={draw=none},
        ylabel = Annual Search Fraction,
        yticklabel=\pgfkeys{/pgf/number format/.cd,fixed,precision=0,zerofill}\pgfmathprintnumber{\tick}\%,
        axis background/.style={fill=gray!5},
        symbolic x coords={\includegraphics[scale=0.02]{Logo/intellogo.png},\includegraphics[scale=0.0175]{Logo/HPlogo.png},\includegraphics[scale=0.0175]{Logo/nvidialogo.png},\includegraphics[scale=0.0175]{Logo/broadcomlogo.png},\includegraphics[scale=0.0175]{Logo/texasinstrumentslogo.png},\includegraphics[scale=0.05]{Logo/googlelogo.png},\includegraphics[scale=0.02]{Logo/microsoftlogo.png}),\includegraphics[scale=0.007]{Logo/ibmlogo.png}
},
        xtick=data,
        nodes near coords={\pgfmathprintnumber\pgfplotspointmeta\%},
        nodes near coords style={/pgf/number format/fixed},
        ]
        \addplot[ybar,fill={rgb:red,0;green,47;blue,135}] coordinates {
            (\includegraphics[scale=0.02]{Logo/intellogo.png},6.1529271206690564)
            (\includegraphics[scale=0.0175]{Logo/HPlogo.png},1.3888888888888888)
            (\includegraphics[scale=0.0175]{Logo/nvidialogo.png},1.045400238948626)
            (\includegraphics[scale=0.0175]{Logo/broadcomlogo.png},0.9557945041816009)
            (\includegraphics[scale=0.0175]{Logo/texasinstrumentslogo.png},0.9109916367980884)
            (\includegraphics[scale=0.05]{Logo/googlelogo.png},0.6869772998805257)
            (\includegraphics[scale=0.02]{Logo/microsoftlogo.png},0.6571087216248507)
            (\includegraphics[scale=0.007]{Logo/ibmlogo.png},0.6571087216248507),0.6421744324970132)

        };
    \end{axis}
    \end{tikzpicture}
    \end{figure}

然后产生以下内容:

在此处输入图片描述

有人知道为什么它不再对称,以及如何修复它吗?

相关内容