I am trying to set different colors for both major and minor gridlines. In essence, I want the major gridlines
to be slightly darker than the minor ones.
However, using the syntax below, I can only seem to set the properties of one of the sets of gridlines at a
time. If I comment out the ax.xaxis.grid() call for the minor grid, the major grid color gets set correctly.
However, if I try to set both, as shown below, only the color for the minor grid is set.
Is the minor grid overriding the major grid somehow? If so, is there another property I need to set somewhere?
Many thanks if anyone can help
minor_grid_color = '#E6E6E6'
major_grid_color = '#DCDCDC'
figure(figsize=(pagewidth, pageheight), frameon=frameon, facecolor=facecolor, edgecolor=edgecolor)
minor_multiple = 900
major_multiple = 3600
axes([0.05, 0.05, 0.90, 0.90])
ax.xaxis.grid(True, which="major", linestyle='-', color=major_grid_color)
ax.xaxis.grid(True, which="minor", linestyle='-', color=minor_grid_color)