plt.subplot(311)
plt.plot(x, y)
plt.xscale("symlog")
plt.ylabel("symlogx")
plt.grid(True)
plt.gca().xaxis.grid(True, which="minor") // minor grid on too
plt.subplot(312)
After Change
x = np.arange(-50.0, 50.0, dt)
y = np.arange(0, 100.0, dt)
fig, (ax0, ax1, ax2) = plt.subplots(nrows=3)
ax0.plot(x, y)
ax0.set_xscale("symlog")
ax0.set_ylabel("symlogx")
ax0.grid()
ax0.xaxis.grid(which="minor") // minor grid on too
ax1.plot(y, x)
ax1.set_yscale("symlog")