0

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()

It will produce this graph: enter image description here

How could I change my code so the x axis has a less visible grid every given interval, say 0.02?

Nikos Tavoularis
  • 2,843
  • 1
  • 30
  • 27
DJA
  • 173
  • 6

0 Answers0