fig = plt.figure()
ax = fig.add_subplot(1, 1, 1)
ax.set_yscale('symlog')
ax.yaxis.set_major_formatter(ticker.FormatStrFormatter('%d'))
plt.plot(b, a)
plt.grid(True)
plt.show()
Matplotlib - logarithmic scale, but require non-logarithmic labels