[Tex/LaTex] How to get a tight fit around a node when using tikz shapes.geometric

bounding boxshapestikz-pgf

I would like the two nodes below to be roughly the same size, but one is much larger than the other. Is there a way to force tikz to reconsider its bounding box calculation?

\documentclass[tikz]{standalone}
\usetikzlibrary{
  positioning,
  shapes.geometric
}
\begin{document}
\newcommand{\gpi}{\mathrm{GPi}}
\newcommand{\gpep}{\mathrm{GPe_{+}}}
\begin{tikzpicture}
    \node[draw, inner sep=0pt, minimum size=9mm, shape=regular polygon, regular polygon sides=6] (gpi)  {$\gpi$};
    \node[draw, inner sep=0pt, minimum size=9mm, shape=regular polygon, regular polygon sides=6] (gpep) [left=40mm of gpi] {$\gpep$};
\end{tikzpicture}
\end{document}

enter image description here

Best Answer

I enclose an example where text in the left hexagon is not affecting the width of node. The width can be set by other means.

%! *latex mal-shapes.tex
\documentclass[tikz]{standalone}
\usetikzlibrary{positioning,shapes.geometric}
\begin{document}
\newcommand{\gpi}{\mathrm{GPi}}
\newcommand{\gpep}{\makebox[0pt][c]{$\mathrm{GPe_{+}}$}}
\begin{tikzpicture}
    \node[draw, inner sep=0pt, minimum size=10mm, shape=regular polygon, regular polygon sides=6] (gpi)  {$\gpi$};
    \node[draw, inner sep=0pt, minimum size=10mm, shape=regular polygon, regular polygon sides=6] (gpep) [left=5mm of gpi] {\gpep};
\end{tikzpicture}
\end{document}

mwe