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?
By default it seems to do 4 minor lines but how do I increase that?
Assuming every week starts on Monday, is it possible to label the minor lines with 'T', 'W', 'T', 'F', 'S', 'S'?
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("cm")
pyplot.xlabel("weeks")
pyplot.plot(weeks, cm, 'go')
pyplot.grid(True, 'both')
pyplot.show()
