In Matplotlib, I draw dotted grid lines as follows:
fig = pylab.figure() ax = fig.add_subplot(1,1,1) ax.yaxis.grid(color='gray', linestyle='dashed')
however, I cannot find out how (or even if it is possible) to draw grid lines drawn behind other elements of the graph, such as bars. Changing the order of adding a grid and adding other elements does not matter.
Is it possible to make the grid lines appear after everything else?
python matplotlib grid
Andrew Nov 13 '09 at 0:30 2009-11-13 00:30
source share