How do I show logarithmically spaced grid lines at all ticks on a log-log plot using Matplotlib?
Basically, you just need to put in the parameter which=”both” in the grid command so that it becomes: matplotlib.pyplot.grid(True, which=”both”) Other options for which are ‘minor’ and ‘major’ which are the major ticks (which are shown in your graph) and the minor ticks which you are missing. If you want solid lines then you can … Read more