I am trying to make my column density plot axes look like the ones on the image presented so that I can present my work alongside a previous work using similar format. I am struggling to format my ticks in the same way you can see in the image. Firstly, I need a way to make my tick marks and axis grid be white while my ticks numbers are still black and secondly, I want every second tick to be larger than the others. Can anyone help me with these two issues?
I am aware of plt.xticks or the equivalent ax.tick_params, as well as how to change the colour of the axis grid, but from my understanding I can only change the colour of the numbers AND the tick marks on the plot using these, not just the second. What if I just want to change the marks?

I took an example from here that I adapted:
Seems you'll be able to change the mark size, the color, and the direction, while keeping the text black: