Data Science, Artificial Intelligence, Machine Learning, Programming, Mathematics.
plt.ylim(-1.5, 1) from matplotlib import ticker # Assure that ticks are displayed with a specific step ax = plt.gca() ax.xaxis.set_major_locator(ticker.MultipleLocator(0.5)) ax.yaxis.set_major_locator(ticker.MultipleLocator(0.5)) # draw axes plt.axhline(0, c='#d6d6d6', zorder=0) plt.axvline(0,