Let us say I have code as follows:
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(0.2,0.3,0.01)
y = np.arange(10)
plt.plot(x,y,)
plt.grid()
plt.show()
How could I change my code so the x axis has a less visible grid every given interval, say 0.02?