Graph TeX格式的条形图格式不正确

Graph TeX格式的条形图格式不正确,graph,tex,Graph,Tex,出于某种原因,两个非常简单的条形图在用tex编译后看起来非常不同。更准确地说,在右边的图形上,有一个从柱到正方形下边界的距离。在左图中,列与正方形的下边框相邻。我想更改左图,以获得正方形底部和左图上蓝色列之间的距离,因为它是在右侧实现的。你知道如何更改左边图表的代码吗 请制作一个代替此代码片段请制作一个代替此代码片段 \begin{figure}[H] \begin{minipage}[h]{0.49\linewidth} \begin{tikzpicture} \begin{axis}[

出于某种原因,两个非常简单的条形图在用tex编译后看起来非常不同。更准确地说,在右边的图形上,有一个从柱到正方形下边界的距离。在左图中,列与正方形的下边框相邻。我想更改左图,以获得正方形底部和左图上蓝色列之间的距离,因为它是在右侧实现的。你知道如何更改左边图表的代码吗

请制作一个代替此代码片段请制作一个代替此代码片段
\begin{figure}[H]
\begin{minipage}[h]{0.49\linewidth}
\begin{tikzpicture}
\begin{axis}[
    ybar,
    enlargelimits=0.15,
    legend style={at={(0.75,-1)},
      anchor=north,legend columns=-1},
    symbolic x coords={1,2,3,4,5,6},
    xtick=data,
    nodes near coords,
    nodes near coords align={vertical}
    ]
\addplot coordinates {(1, 179) (2, 122) (3, 79) (4, 59) (5, 49) (6, 205) };
\end{axis}
\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}[h]{0.49\linewidth}
\begin{tikzpicture}
\begin{axis}[
    ybar,
    enlargelimits=0.15,
    legend style={at={(0.75,-1)},
      anchor=north,legend columns=-1},
    symbolic x coords={1,2,3,4,5,6},
    xtick=data,
    nodes near coords,
    nodes near coords align={vertical}
    ]
\addplot coordinates {(1, 125) (2, 106) (3, 27) (4, 49) (5, 12) (6, 5) };
\end{axis}
\end{tikzpicture}
\end{minipage}
\end{figure}