import matplotlib.pyplot as plt import numpy as np
dt = 0.01 x = np.arange(-50.0, 50.0, dt) y = np.arange(0, 100.0, dt)
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