title: matplotlib - how do I set number of minor grid lines to 6 rather than 4?
body: <p>I have a graph which shows the number of weeks along the x axis; how can I have 6 intermediate minor grid lines to reference the days of the week?</p>
  <p>By default it seems to do 4 minor lines but how do I increase that?</p>
  <p>Assuming every week starts on Monday, is it possible to label the minor lines with 'T', 'W', 'T', 'F', 'S', 'S'?</p>
  <pre><code>from matplotlib import pyplot
  import numpy as np
   
  # x-axis values 
  weeks = np.arange(0,8)
   
  # y-axis values 
  cm = np.flip(np.arange(94,102))
  
  
  pyplot.minorticks_on()
  
  pyplot.grid(which='major', linestyle='-', linewidth='1', color='red')
  pyplot.ylabel(&quot;cm&quot;)
  pyplot.xlabel(&quot;weeks&quot;)
  
  pyplot.plot(weeks, cm, 'go') 
  
  pyplot.grid(True, 'both')
   
  pyplot.show() 
  </code></pre>