I am using a semilogy graph but I am struggling to get minor grid to turn on.
I am current using:
plt.grid(b=None, which='major', axis='both', color='k', linestyle='-', linewidth=0.5) plt.grid(b=None, which='minor', axis='both', color='r', linestyle='-', linewidth=0.2) but it isn't producing the minor grid only the major.
Update:
So my current code is:
plt.semilogy(xPS[p-1]/1000, zPS[p-1]) plt.ylim(-1000000, 1000000) plt.xlim(0, 250) plt.grid(b=True, which='major', color='k', linestyle='-') plt.grid(b=True, which='minor', color='r', linestyle='-', alpha=0.2) plt.minorticks_on() plt.show() An I get an output like the image below with still not y-minor grid:

