据此-http://matplotlib.1069221.n5.nabble.com/axis-elements-and-zorder-
td5346.html-您可以使用
Axis.set_axisbelow(True)
(我目前是第一次安装matplotlib,所以不知道这是否正确-我只是通过谷歌搜索“ matplotlib z顺序网格”找到它的-通常使用“
z顺序”来描述这种情况(z为轴“页面外”))

据此-http://matplotlib.1069221.n5.nabble.com/axis-elements-and-zorder-
td5346.html-您可以使用
Axis.set_axisbelow(True)
(我目前是第一次安装matplotlib,所以不知道这是否正确-我只是通过谷歌搜索“ matplotlib z顺序网格”找到它的-通常使用“
z顺序”来描述这种情况(z为轴“页面外”))