Actually, it is as simple as installing major and minor separately:
In [9]: plot([23, 456, 676, 89, 906, 34, 2345]) Out[9]: [<matplotlib.lines.Line2D at 0x6112f90>] In [10]: yscale('log') In [11]: grid(b=True, which='major', color='b', linestyle='-') In [12]: grid(b=True, which='minor', color='r', linestyle='--')
The information obtained with small grids is that you should also include minor marks. In the above code, this is done using yscale('log') , but it can also be done using plt.minorticks_on() .

joaquin Feb 05 2018-12-12T00: 00Z
source share