I would like to render a plot (created using subplots() withot edges on the top and on the right side like this:
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
This in fact disables the border edges, only to reveal, that on the top I can see a major gridline, and on the right side I do not:

I would be fine on having the gridlines on both sides or neither sides, but this is just sloppy. I also do not want to change the axis limits. Is it possible to make the shown gridlines consistent on the edges?
