I have one question about matplotlib grid lines. I'm not sure if this is possible or not. I draw the following graph as shown.
I will not give all the code, since it includes reading files.
However, the important part of the code here is
X, Y = np.meshgrid(smallX, smallY) Z = np.zeros((len(X),len(X[0]))) plt.contourf(X, Y, Z, levels, cmap=cm.gray_r, zorder = 1) plt.colorbar() ...

Now my questions are:
If I put the grid lines below the path, they disappear as they are below it. If I put a grid line over the path, they look like they are now. However, what I would like to have is the grid lines, which should be visible, but should be below the black part of the outline. I am not sure if this is possible.
Thanks!
source share